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>
This commit is contained in:
Arthur Schiwon 2020-03-19 19:42:46 +01:00 committed by backportbot[bot]
parent a216694e66
commit 1fd3ebdd09
1 changed files with 0 additions and 4 deletions

View File

@ -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']);