#node-ldap2json
![NPM](https://nodei.co/npm/node-ldap2json.png?downloads=true)
LDAP2JSON makes shortcuts LDAP.JS
Test fails,
because of need an online ldap server for testing.
Usage :
var ldap2json = require('node-ldap2json');
var treeOptions = {
host : '10.1.60.5',
username : 'bh\\Administrator',
password : 'Public1234',
base : 'ou=Customers,dc=bh,dc=pvt'
}
ldap2json.getJson(treeOptions,function(e,tree){
...
});
ldap2json.checkUser(treeOptions,'testusername','testpassword',function(e,usr){
...
});
ldap2json.searchUser(treeOptions,testVariables.searchkeyword,function(e,items){
...
});
ldap2json.getSecurityGroups(treeOptions,function(e,grps){
...
});
Installation
npm install node-ldap2json