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

microldap

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

microldap

Bind and search for LDAP

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Build Status MicroLDAP

This library provides two simple calls for binding to an LDAP server, and performing a search as a user on an LDAP server.

##Installation

npm install microldap

##Usage

  var microldap = require('microldap')({ url: 'ldap://my.ldap.server' });

  microldap.bind(username, password).then(function () {
    //bind succeeded
  }, function (err) {
    //bind failed
  });

  microldap.search(base, filter, attributes, scope, username, password).then(function (results) {
    //search succeeded
  }, function (err) {
    //search failed
  });

##API

###bind(username, password) Takes a username and password and attempts to bind to an LDAP server. Returns a Promise. The Promise resolves if the bind succeeds.

###search(base, filter, attributes, scope, username, password) Takes a base, filter, attribute list, scope, username and password and searches an LDAP directory as that user. Returns a Promise. The Promise resolves with an array of search results if the search succeeds.

##Other functions This library provides only bind and search.

Keywords

FAQs

Package last updated on 26 Aug 2016

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