Conform to coding guidelines
This commit is contained in:
parent
30fa554ad9
commit
b69311165c
|
@ -534,10 +534,10 @@ class LdapUserGroupBackend /*extends LdapRepository*/ implements UserGroupBacken
|
||||||
public function getMemberships(User $user)
|
public function getMemberships(User $user)
|
||||||
{
|
{
|
||||||
if ($this->groupClass === 'posixGroup') {
|
if ($this->groupClass === 'posixGroup') {
|
||||||
# Posix group only uses simple user name
|
// Posix group only uses simple user name
|
||||||
$userDn = $user->getUsername();
|
$userDn = $user->getUsername();
|
||||||
} else {
|
} else {
|
||||||
# LDAP groups use the complete DN
|
// LDAP groups use the complete DN
|
||||||
if (($userDn = $user->getAdditional('ldap_dn')) === null) {
|
if (($userDn = $user->getAdditional('ldap_dn')) === null) {
|
||||||
$userQuery = $this->ds
|
$userQuery = $this->ds
|
||||||
->select()
|
->select()
|
||||||
|
|
Loading…
Reference in New Issue