The example below is taken from the full docs, available here (GitHub) or here (NPM).
Installation
npm install --save activedirectory
Usage
// Initialize
var ActiveDirectory = require('activedirectory');
var config = {
url: 'ldap://dc.domain.com',
baseDN: 'dc=domain,dc=com'
};
va...