LdapUserGroupBackend: Avoid inspecting a group with no members
fixes #10659
This commit is contained in:
parent
614d7fc30d
commit
916c417666
|
@ -388,6 +388,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
|
||||||
$sampleValue = $this->ds
|
$sampleValue = $this->ds
|
||||||
->select()
|
->select()
|
||||||
->from($this->groupClass, array($this->groupMemberAttribute))
|
->from($this->groupClass, array($this->groupMemberAttribute))
|
||||||
|
->where($this->groupMemberAttribute, '*')
|
||||||
->setUnfoldAttribute($this->groupMemberAttribute)
|
->setUnfoldAttribute($this->groupMemberAttribute)
|
||||||
->setBase($this->groupBaseDn)
|
->setBase($this->groupBaseDn)
|
||||||
->fetchOne();
|
->fetchOne();
|
||||||
|
|
Loading…
Reference in New Issue