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:
parent
25ce3c434b
commit
77c63e3b24
|
@ -1734,7 +1734,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);
|
||||||
|
@ -1750,9 +1749,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']);
|
||||||
|
|
Loading…
Reference in New Issue