From 77c63e3b243f4119ee7e100ba4df4f466c419870 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Thu, 19 Mar 2020 19:42:46 +0100 Subject: [PATCH] fixes auto-detecting UUID attributes the continue (and later the early return) avoided proper looping over the attribute candidates. Signed-off-by: Arthur Schiwon --- apps/user_ldap/lib/Access.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/apps/user_ldap/lib/Access.php b/apps/user_ldap/lib/Access.php index de02cbdf86..a16e8f04cb 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']);