Merge pull request #20047 from nextcloud/backport/20039/stable17

[stable17] fixes auto-detecting UUID attributes
This commit is contained in:
Roeland Jago Douma 2020-03-22 14:23:27 +01:00 committed by GitHub
commit ea1fb292fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -1730,7 +1730,6 @@ class Access extends LDAPUtility {
$this->connection->$uuidAttr = $attribute; $this->connection->$uuidAttr = $attribute;
return true; return true;
} }
continue;
} }
$value = $this->readAttribute($dn, $attribute); $value = $this->readAttribute($dn, $attribute);
@ -1746,9 +1745,6 @@ class Access extends LDAPUtility {
$this->connection->$uuidAttr = $attribute; $this->connection->$uuidAttr = $attribute;
$this->connection->writeToCache($uuidAttr, $attribute); $this->connection->writeToCache($uuidAttr, $attribute);
return true; return true;
} elseif ($value === false) {
// record not available
return false;
} }
} }
\OC::$server->getLogger()->debug('Could not autodetect the UUID attribute', ['app' => 'user_ldap']); \OC::$server->getLogger()->debug('Could not autodetect the UUID attribute', ['app' => 'user_ldap']);