summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-03-19 19:42:46 +0100
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2020-03-20 10:09:07 +0000
commit1fd3ebdd09924192289708c8cfbf7a3f81c971e3 (patch)
treea0031d2b6942297a48feaa8e4621fe0e4f5dc8cd
parenta216694e6605dac05cc7ae91de637b0e6198323a (diff)
downloadnextcloud-server-1fd3ebdd09924192289708c8cfbf7a3f81c971e3.tar.gz
nextcloud-server-1fd3ebdd09924192289708c8cfbf7a3f81c971e3.zip
fixes auto-detecting UUID attributes
the continue (and later the early return) avoided proper looping over the attribute candidates. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/Access.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php
index 0cf3e4a91e3..e7d34b16fa9 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -1730,7 +1730,6 @@ class Access extends LDAPUtility {
$this->connection->$uuidAttr = $attribute;
return true;
}
- continue;
}
$value = $this->readAttribute($dn, $attribute);
@@ -1746,9 +1745,6 @@ class Access extends LDAPUtility {
$this->connection->$uuidAttr = $attribute;
$this->connection->writeToCache($uuidAttr, $attribute);
return true;
- } elseif ($value === false) {
- // record not available
- return false;
}
}
\OC::$server->getLogger()->debug('Could not autodetect the UUID attribute', ['app' => 'user_ldap']);