fae31a40b5
Bumps [tap](https://github.com/tapjs/node-tap) from 15.1.2 to 15.1.5. - [Release notes](https://github.com/tapjs/node-tap/releases) - [Commits](https://github.com/tapjs/node-tap/compare/v15.1.2...v15.1.5) --- updated-dependencies: - dependency-name: tap dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> |
||
---|---|---|
.github | ||
docs | ||
examples | ||
lib | ||
scripts | ||
test | ||
test-integration | ||
.eslintignore | ||
.eslintrc.js | ||
.gitignore | ||
.taprc | ||
CHANGES.md | ||
LICENSE | ||
README.md | ||
docker-compose.yml | ||
package.json |
README.md
LDAPjs
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
DTrace support is included in ldapjs. To enable it, npm install dtrace-provider
.
License
MIT.