LDAP Auth: Make group loading really optional

fixes #7432
This commit is contained in:
Eric Lippmann 2014-10-23 03:46:49 +02:00
parent ba12d7b46c
commit f68c591a46
1 changed files with 4 additions and 1 deletions

View File

@ -174,7 +174,10 @@ class LdapUserBackend extends UserBackend
$password
);
if ($authenticated) {
$user->setGroups($this->getGroups($userDn));
$groups = $this->getGroups($userDn);
if ($groups !== null) {
$user->setGroups($groups);
}
}
return $authenticated;
} catch (LdapException $e) {