Skip to content

Instantly share code, notes, and snippets.

@occasl
Created August 8, 2012 22:46
Show Gist options
  • Save occasl/3299517 to your computer and use it in GitHub Desktop.
Save occasl/3299517 to your computer and use it in GitHub Desktop.
Example of doing LDAP
ldap = require('ldapjs');
var client = ldap.createClient({
url: 'ldap://ldap.server.com:389/o=base'
});
client.bind('cn=root', 'secret', function(err) {
assert.ifError(err);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment