LDAP driver should not log password unless password logging is specifically on.

This commit is contained in:
Andrew McMillan 2012-01-14 19:09:53 +13:00
parent 927a98482f
commit 329f8b51dc

View File

@ -222,8 +222,8 @@ class ldapDrivers
}
}
dbg_error_log( "LDAP", "drivers_ldap : Bound to user %s using password %s", $dnUser, $passwd );
dbg_error_log( "LDAP", "drivers_ldap : Bound to user %s using password %s", $dnUser,
(isset($c->dbg['password']) && $c->dbg['password'] ? $passwd : 'another delicious password for the debugging monster!') );
$i = ldap_first_entry($this->connect,$entry);
$arr = ldap_get_attributes($this->connect,$i);