ldaptive
v0.0.3
Published
ldap client
Downloads
4
Readme
ldaptive
A www.ldaptive.org fork.
$ npm install ldaptive
how to
const Ldaptive = require('ldaptive');
const CONFIG = {
url: 'ldap://ldap.forumsys.com',
baseDN: 'dc=example,dc=com',
attributes: ['uid', 'cn', 'sn', 'mail', 'telephoneNumber'],
};
const client = new Ldaptive(CONFIG);
client.search('(mail=*@ldap.forumsys.com)').then(function (entries) {
console.log(entries);
});
Special Thanks to Online LDAP Test Server from forumsys
fixme
refer
- https://github.com/jeremycx/node-LDAP
- https://github.com/ymyang/node-ldap