Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Erik Römmelt 5d28bc36e1 node_modules updated, buefy add to lib folder 5 years ago
..
bin node_modules updated, buefy add to lib folder 5 years ago
examples node_modules updated, buefy add to lib folder 5 years ago
lib node_modules updated, buefy add to lib folder 5 years ago
.dir-locals.el node_modules updated, buefy add to lib folder 5 years ago
.npmignore node_modules updated, buefy add to lib folder 5 years ago
.travis.yml node_modules updated, buefy add to lib folder 5 years ago
CHANGES.md node_modules updated, buefy add to lib folder 5 years ago
LICENSE node_modules updated, buefy add to lib folder 5 years ago
README.md node_modules updated, buefy add to lib folder 5 years ago
ldapjs-1.0.2.tgz node_modules updated, buefy add to lib folder 5 years ago
package.json node_modules updated, buefy add to lib folder 5 years ago

README.md

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.