appc-ldapjs

LDAP client and server APIs

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
appc-ldapjs
1,49660.8.08 years ago8 years agoMinified + gzip package size for appc-ldapjs in KB

Readme

LDAPjs
This is a no code fork to bring in changes necessary by Appcelerator.

!'Build status'travisimageurltravispageurl
LDAPjs makes the LDAP protocol a first class citizen in Node.js.

Usage

For full docs, head on over to .
var ldap = require('ldapjs');

var server = ldap.createServer();

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

  if (req.filter.matches(obj.attributes))
  res.send(obj);

  res.end();
});

server.listen(1389, function() {
  console.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 .