This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LDAP = require('ldapjs'); | |
var protocol = "ldap://"; | |
var host = "..."; | |
var post = 3268; | |
var dn = "cn=Van Nguyen,..."; | |
var password = "some password"; | |
var client = LDAP.createClient({ | |
url: protocol + host + ":" + port |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ldap = require('ldapjs'), | |
mysql = require("mysql"), | |
server = ldap.createServer(), | |
addrbooks = {}, userinfo = {}, | |
ldap_port = 389, | |
basedn = "dc=example, dc=com", | |
company = "Example", | |
db = mysql.createClient({ | |
user: "abook", | |
password: "abook", |