joyent/node-ldapjs

Name: node-ldapjs

Owner: Joyent

Description: LDAP Client and Server API for node.js

Created: 2011-08-04 20:37:11.0

Updated: 2018-01-18 10:40:01.0

Pushed: 2018-01-11 18:40:18.0

Homepage: http://ldapjs.org

Size: 1711

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

LDAPjs

'Build status'

LDAPjs makes the LDAP protocol a first class citizen in Node.js.

Usage

For full docs, head on over to http://ldapjs.org.

ldap = require('ldapjs');

server = ldap.createServer();

er.search('dc=example', function(req, res, next) {
r obj = {
dn: req.dn.toString(),
attributes: {
  objectclass: ['organization', 'top'],
  o: 'example'
}


 (req.filter.matches(obj.attributes))
s.send(obj);

s.end();


er.listen(1389, function() {
nsole.log('ldapjs listening at ' + server.url);

To run that, assuming you've got the OpenLDAP client on your system:

ldapsearch -H ldap://localhost:1389 -x -b dc=example objectclass=*
Installation
npm install ldapjs
License

MIT.

Bugs

See https://github.com/mcavage/node-ldapjs/issues.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.