diff --git a/lib/LdapValidator.js b/lib/LdapValidator.js index e84918c..480f6e0 100644 --- a/lib/LdapValidator.js +++ b/lib/LdapValidator.js @@ -17,7 +17,7 @@ LdapValidator.prototype.validate = function (username, password, callback) { if(!up) return callback(); // AD will bind and delay an error till later if no password is given - if(password === '') return callback(); + if(!password) return callback(); var client = this._options.binder || ldap.createClient({ url: this._options.url,