mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-31 03:34:18 +00:00
Remove password from LDAP log messages.
This commit is contained in:
parent
3929c55c9d
commit
4a934c57b0
@ -212,12 +212,12 @@ class ldapDrivers
|
|||||||
}
|
}
|
||||||
else if ( empty($passwd) || preg_match('/[\x00-\x19]/',$passwd) ) {
|
else if ( empty($passwd) || preg_match('/[\x00-\x19]/',$passwd) ) {
|
||||||
// See http://www.php.net/manual/en/function.ldap-bind.php#73718 for more background
|
// See http://www.php.net/manual/en/function.ldap-bind.php#73718 for more background
|
||||||
dbg_error_log( 'LDAP', 'drivers_ldap : user %s supplied empty or invalid password (%s): login rejected', $dnUser, $passwd );
|
dbg_error_log( 'LDAP', 'drivers_ldap : user %s supplied empty or invalid password: login rejected', $dnUser );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if ( !@ldap_bind($this->connect, $dnUser, $passwd) ) {
|
if ( !@ldap_bind($this->connect, $dnUser, $passwd) ) {
|
||||||
dbg_error_log( "LDAP", "drivers_ldap : Failed to bind to user %s using password %s", $dnUser, $passwd );
|
dbg_error_log( "LDAP", "drivers_ldap : Failed to bind to user %s ", $dnUser );
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user