ldapauth
Advanced tools
Changelog
2.3.1
Changelog
2.3.0
[pull #19] Update deps for node 0.12 support (by https://github.com/ricardohbin).
Rewrite ldapjs connection handling. We now do retries. We now bind
up front. The connect/bind check to verify a found user's password
(in .authenticate()
) creates a new connection each time. A significant
usage change here is that one should wait for the 'connect' event
from the LdapAuth
instance before using it:
var LdapAuth = require('ldapauth');
var auth = new LdapAuth({url: 'ldaps://ldap.example.com:663', ...});
// If you want to be lazier you can skip waiting for 'connect'. :)
// It just means that a quick `.authenticate()` call will likely fail
// while the LDAP connect and bind is still being done.
auth.once('connect', function () {
...
auth.authenticate(username, password, function (err, user) { ... });
...
auth.close(function (err) { ... })
});
There is a lot new here, so caveat usor.
Drop log4js support in favour of Bunyan.
4-space code indents. Should be no functional change.
Changelog
2.2.4
tlsOptions
, timeout
and connectTimeout
options in LdapAuth
constructor (by github.com/vesse).Changelog
2.2.1
authenticate()
would raise an example on an empty
username.Changelog
2.2.0
Changelog
2.1.0
Changelog
2.0.0
make check
for checking jsstyle.