0.0.16 • Published 8 years ago

node-ldap2json v0.0.16

Weekly downloads
3
License
BSD
Repository
github
Last release
8 years ago

#node-ldap2json

NPM

LDAP2JSON makes shortcuts LDAP.JS

Build Status Test fails, because of need an online ldap server for testing.

But used on that production suite : over 20.000 users, 4000 ou, 1000 security group

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' 
	}

	
	//Get LDAP Tree in JSON Format
  ldap2json.getJson(treeOptions,function(e,tree){
    ...
  });
	
	//Check User 
  ldap2json.checkUser(treeOptions,'testusername','testpassword',function(e,usr){
    ...
  });
  
  // Search a User
  ldap2json.searchUser(treeOptions,testVariables.searchkeyword,function(e,items){
    ...
  });

  //Get Groups
  ldap2json.getSecurityGroups(treeOptions,function(e,grps){
    ...
  });  

Installation

npm install node-ldap2json
0.0.16

8 years ago

0.0.15

11 years ago

0.0.14

11 years ago

0.0.13

11 years ago

0.0.12

11 years ago

0.0.11

11 years ago

0.0.10

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago