mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-08-26 17:56:29 +00:00
Apparently an attempt to bind with an empty password will return TRUE!
Signed-off-by: Andrew McMillan <andrew@morphoss.com>
This commit is contained in:
parent
f1c8da702b
commit
ad061af4ed
@ -209,7 +209,12 @@ class ldapDrivers
|
||||
if ($username != $_SERVER["REMOTE_USER"]) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
}
|
||||
else if ( empty($passwd) ) {
|
||||
dbg_error_log( 'LDAP', 'drivers_ldap : user %s did not supply a password: login rejected', $dnUser );
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
if ( !@ldap_bind($this->connect, $dnUser, $passwd) ) {
|
||||
dbg_error_log( "LDAP", "drivers_ldap : Failed to bind to user %s using password %s", $dnUser, $passwd );
|
||||
return false;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user