Avoid including domain users in a group not belonging to a domain
Signed-off-by: Alexander A. Klimov <alexander.klimov@icinga.com> refs #3250
This commit is contained in:
parent
7e5f5405aa
commit
c806099e1b
1
AUTHORS
1
AUTHORS
|
@ -48,6 +48,7 @@ Mikko Peltokangas <mikko@peltokangas.org>
|
|||
Munzir Taha <munzirtaha@gmail.com>
|
||||
Nicolai Buchwitz <nicolai.buchwitz@enda.eu>
|
||||
Noah Hilverling <noah.hilverling@icinga.com>
|
||||
Paolo Schiro <paolo.schiro@kpnqwest.it>
|
||||
Paul Richards <paul@minimoo.org>
|
||||
Pavlos Daoglou <pdaoglou@gmail.com>
|
||||
Pieter Lexis <pieter.lexis@powerdns.com>
|
||||
|
|
|
@ -689,6 +689,9 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
|
|||
|
||||
$username = $user->getLocalUsername();
|
||||
} else {
|
||||
if ($user->hasDomain()) {
|
||||
return array();
|
||||
}
|
||||
$username = $user->getUsername();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue