From 38a8306e32237b6a51541a58ea21ac477ab5503e Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Fri, 18 Oct 2019 18:55:10 +0200 Subject: [PATCH] treat LDAP error 50 as auth issue, prevents lost server connection errors Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Connection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php index 35770f082f..db4362a9eb 100644 --- a/apps/user_ldap/lib/Connection.php +++ b/apps/user_ldap/lib/Connection.php @@ -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; }