Skip to content

ManfredSteiner/node-ldapjs

This branch is 2 commits ahead of, 399 commits behind ldapjs/node-ldapjs:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

45d46a3 · Aug 25, 2019
Oct 16, 2014
Oct 16, 2015
Oct 19, 2016
Jul 6, 2014
May 3, 2017
Aug 25, 2019
Oct 16, 2015
Feb 18, 2012
Oct 28, 2015
Feb 18, 2012
Jan 29, 2013
Oct 19, 2016
Nov 2, 2016
Aug 4, 2011
Oct 16, 2015
Jun 15, 2015
Nov 2, 2016

Repository files navigation

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.

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 https://github.com/mcavage/node-ldapjs/issues.

About

LDAP Client and Server API for node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.4%
  • Makefile 3.6%