ldapjs-no-python
LDAP client and server APIs. No need Python installation. The original version uses a [bunyan] logger which requires Python installation. This version uses a [winston] logger and doesn't require any additional stuff to install
Last updated a year ago by liamray .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ldapjs-no-python 
SYNC missed versions from official npm registry.

LDAPjs No Python version

'Build status'

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

Major changes
No need Python installation. The original version uses a [bunyan] logger which requires Python installation. This version uses a [winston] logger and doesn't require any additional stuff to install

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.

Current Tags

  • 1.0.3                                ...           latest (a year ago)

2 Versions

  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (9)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |