# node-ldapjs **Repository Path**: mirrors_FranckFreiburger/node-ldapjs ## Basic Information - **Project Name**: node-ldapjs - **Description**: LDAP Client and Server API for node.js - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-10-22 - **Last Updated**: 2026-03-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # LDAPjs [!['Build status'][travis_image_url]][travis_page_url] [travis_image_url]: https://api.travis-ci.org/joyent/node-ldapjs.svg [travis_page_url]: https://travis-ci.org/joyent/node-ldapjs LDAPjs makes the LDAP protocol a first class citizen in Node.js. ## Usage For full docs, head on over to . ```javascript 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](http://www.openldap.org/) client on your system: ldapsearch -H ldap://localhost:1389 -x -b dc=example objectclass=* ## Installation npm install ldapjs ## License MIT. ## Bugs See .