ldapauth-fork
Advanced tools
Comparing version 2.2.17 to 2.2.18
# node-ldapauth-fork Changelog | ||
## 2.2.18 | ||
- [issue #8] Fix options to actually work as documented | ||
## 2.2.17 | ||
@@ -4,0 +8,0 @@ |
@@ -93,3 +93,3 @@ /** | ||
var clientOpts = { | ||
this.clientOpts = { | ||
url: opts.url, | ||
@@ -107,8 +107,8 @@ connectTimeout: opts.connectTimeout, | ||
if (opts.log4js && opts.verbose) { | ||
clientOpts.log4js = opts.log4js; | ||
this.clientOpts.log4js = opts.log4js; | ||
} | ||
this._adminClient = ldap.createClient(clientOpts); | ||
this._adminClient = ldap.createClient(this.clientOpts); | ||
this._adminBound = false; | ||
this._userClient = ldap.createClient(clientOpts); | ||
this._userClient = ldap.createClient(this.clientOpts); | ||
@@ -149,3 +149,3 @@ if (opts.cache) { | ||
// Anonymous binding | ||
if (typeof this.opts.adminDn === 'undefined' || this.opts.adminDn === null) { | ||
if (typeof this.clientOpts.bindDn === 'undefined' || this.clientOpts.bindDn === null) { | ||
return callback(); | ||
@@ -157,3 +157,3 @@ } | ||
var self = this; | ||
this._adminClient.bind(this.opts.adminDn, this.opts.adminPassword, | ||
this._adminClient.bind(this.clientOpts.bindDn, this.clientOpts.bindCredentials, | ||
function (err) { | ||
@@ -160,0 +160,0 @@ if (err) { |
{ | ||
"name": "ldapauth-fork", | ||
"version": "2.2.17", | ||
"version": "2.2.18", | ||
"main": "./lib/ldapauth.js", | ||
@@ -5,0 +5,0 @@ "description": "Authenticate against an LDAP server", |
65127