Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-10-21 17:49:33 +0300
committerGitHub <noreply@github.com>2019-10-21 17:49:33 +0300
commita9f1ab83e6af5113f701f17664910ddd10073ff5 (patch)
tree21521bf83ac216b151d2bd4aee3e5dd0e7baad13
parent63479ba72e38092aa5f32450162b022e4b740363 (diff)
parent8ce5346491272c20b0a6082d855b36c887614dbc (diff)
Merge pull request #17618 from nextcloud/backport/17595/stable16
[stable16] treat LDAP error 50 as auth issue, prevents lost server connection errors
-rw-r--r--apps/user_ldap/lib/Connection.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index 4335f8e4397..89318967e02 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -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;
}