-
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 theLdapAuth
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.
- [pull #12] Add
tlsOptions
,timeout
andconnectTimeout
options inLdapAuth
constructor (by github.com/vesse).
- [pull #11] Update to latest ldapjs, v0.6.3 (by github.com/Esya).
- [issue #5] update to bcrypt 0.7.5 (0.7.3 fixes potential mem issues)
- Fix a bug where ldapauth
authenticate()
would raise an example on an empty username.
- Update to latest ldapjs (0.5.6) and other deps. Note: This makes ldapauth only work with node >=0.8 (because of internal dep in ldapjs 0.5).
- Update to ldapjs 0.4 (from 0.3). Crossing fingers that this doesn't cause breakage.
- Add
make check
for checking jsstyle. - [issue #1] Update to bcrypt 0.5. This means increasing the base node from 0.4 to 0.6, hence the major version bump.
First working version.