Async/Await ldap wrapper
Goal
Expose our most used ldap functions as async/await for use across projects.
Features
- Authentication
- Get user groups
- Expose raw ldap client
Usage
Installation
npm install 4q-node-ldap --save
const ldap = require('4q-node-ldap');
const ldapConn = await ldap.Connect(
'ldaps://ldaps.example.com',
'DC=example,DC=com',
'service-user@example.com',
'password',
{ },
{ }
);
await ldapConn.authenticate('other-user@example.com', 'password');
await ldapConn.groups('other-user@example.com');
build
npm run build
Whenever this package is updated locally the changes will be available in the projects that are linked
publish
Any changes made must first be built and then version increased
before publishing
-
npm version major|minor|patch
-
npm login
-
npm publish