passport-ldapjs
Advanced tools
Comparing version
@@ -70,4 +70,6 @@ /** | ||
// Bind to LDAP server | ||
var dn = this.options.uidTag + '=' + username + ',' + this.options.base; | ||
client.bind(dn, password, function(err) { | ||
var bindUser = this.options.bindUser || username; | ||
var bindPassword = this.options.bindPassword || password; | ||
var dn = this.options.uidTag + '=' + bindUser + ',' + this.options.base; | ||
client.bind(dn, bindPassword, function(err) { | ||
if (err) { | ||
@@ -74,0 +76,0 @@ // Invalid credentials / user not found are not errors but login failures |
{ | ||
"name": "passport-ldapjs", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "NodeJS Passport LDAP authentication using ldapjs", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
8740
1.4%138
1.47%