Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-ldap2json

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ldap2json

LDAP2JSON makes shortcuts LDAP.JS

  • 0.0.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

#node-ldap2json

NPM

LDAP2JSON makes shortcuts LDAP.JS

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

	
	//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

Keywords

FAQs

Package last updated on 06 Sep 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc