Stop LDAP Auth from succeeding without password

This commit is contained in:
keegan 2017-11-21 19:19:24 -05:00 committed by GitHub
parent 3f06acfa6e
commit f73132e226
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ function ldapAuthCommon(user, bindDN, password, callback) {
}
function simpleLdapAuth(user, password, callback) {
if (!user) {
if (!user || !password) {
return callback(false);
}
@ -41,7 +41,7 @@ function simpleLdapAuth(user, password, callback) {
* LDAP auth using initial DN search (see config comment for ldap.searchDN)
*/
function advancedLdapAuth(user, password, callback) {
if (!user) {
if (!user || !password) {
return callback(false);
}