Skip to content
Snippets Groups Projects
Commit d659d8e1 authored by Arthur Schiwon's avatar Arthur Schiwon
Browse files

LDAP: do not reset UUID attribute setting when guid is detected

parent 51a1f829
Branches
No related tags found
No related merge requests found
......@@ -427,7 +427,9 @@ class Connection {
'No group filter is specified, LDAP group feature will not be used.',
\OCP\Util::INFO);
}
if(!in_array($this->config['ldapUuidAttribute'], array('auto', 'entryuuid', 'nsuniqueid', 'objectguid'))
$uuidAttributes = array(
'auto', 'entryuuid', 'nsuniqueid', 'objectguid', 'guid');
if(!in_array($this->config['ldapUuidAttribute'], $uuidAttributes)
&& (!is_null($this->configID))) {
\OCP\Config::setAppValue($this->configID, $this->configPrefix.'ldap_uuid_attribute', 'auto');
\OCP\Util::writeLog('user_ldap',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment