aboutsummaryrefslogtreecommitdiffstats
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:07:54 +0000
commit29495f0c6d6ebff03a9cd460aa64823fd3f5ed29 (patch)
tree66a88bfbb827dfd2a6c9b3cee4721e43b82b4efc
parentee5ed6a3edf018e88cec38bc4dd9084670f49861 (diff)
downloadnextcloud-server-29495f0c6d6ebff03a9cd460aa64823fd3f5ed29.tar.gz
nextcloud-server-29495f0c6d6ebff03a9cd460aa64823fd3f5ed29.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 de02cbdf869..a16e8f04cb2 100644
--- a/apps/user_ldap/lib/Access.php
+++ b/apps/user_ldap/lib/Access.php
@@ -1734,7 +1734,6 @@ class Access extends LDAPUtility {
$this->connection->$uuidAttr = $attribute;
return true;
}
- continue;
}
$value = $this->readAttribute($dn, $attribute);
@@ -1750,9 +1749,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']);