# node-ldapauth Changelog

## not yet released

(nothing yet)


## 2.3.1

- [#29] Treat "UnwillingToPerformError" (LDAP error code 53) the same as
  "InvalidCredentialsError" as a failure that should stop connection retries.
  (By github.com/melloc).


## 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.


## 2.2.4

- [pull #12] Add `tlsOptions`, `timeout` and `connectTimeout` options in `LdapAuth`
  constructor (by github.com/vesse).

## 2.2.3

- [pull #11] Update to latest ldapjs, v0.6.3 (by github.com/Esya).


## 2.2.2

- [issue #5] update to bcrypt 0.7.5 (0.7.3 fixes potential mem issues)


## 2.2.1

- Fix a bug where ldapauth `authenticate()` would raise an example on an empty
  username.


## 2.2.0

- 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).


## 2.1.0

- Update to ldapjs 0.4 (from 0.3). Crossing fingers that this doesn't cause breakage.


## 2.0.0

- 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.


## 1.0.2

First working version.
