treat LDAP error 50 as auth issue, prevents lost server connection errors
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
63479ba72e
commit
8ce5346491
|
@ -674,7 +674,8 @@ class Connection extends LDAPUtility {
|
|||
ILogger::WARN);
|
||||
|
||||
// Set to failure mode, if LDAP error code is not LDAP_SUCCESS or LDAP_INVALID_CREDENTIALS
|
||||
if($errno !== 0x00 && $errno !== 0x31) {
|
||||
// or (needed for Apple Open Directory:) LDAP_INSUFFICIENT_ACCESS
|
||||
if($errno !== 0 && $errno !== 49 && $errno !== 50) {
|
||||
$this->ldapConnectionRes = null;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue