Ver código fonte

treat LDAP error 50 as auth issue, prevents lost server connection errors

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
tags/v18.0.0beta1
Arthur Schiwon 4 anos atrás
pai
commit
38a8306e32
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2
    1
      apps/user_ldap/lib/Connection.php

+ 2
- 1
apps/user_ldap/lib/Connection.php Ver arquivo

@@ -675,7 +675,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;
}


Carregando…
Cancelar
Salvar