Skip to content
Snippets Groups Projects
Unverified Commit a7193ce7 authored by blizzz's avatar blizzz Committed by GitHub
Browse files

Merge pull request #17595 from nextcloud/fix/noid/wrong-pwd-apple-open-dir

treat LDAP error 50 as auth issue, prevents lost server connection errors
parents 75ecae28 38a8306e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment