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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
LDAPjs makes the LDAP protocol a first class citizen in Node.js.
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=*
npm install ldapjs
MIT.