From 916c4176667b17629d4b784836ad18674f0f7eba Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 24 Nov 2015 09:45:36 +0100 Subject: [PATCH] LdapUserGroupBackend: Avoid inspecting a group with no members fixes #10659 --- library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php index 122453990..64b2fcf63 100644 --- a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php +++ b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php @@ -388,6 +388,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt $sampleValue = $this->ds ->select() ->from($this->groupClass, array($this->groupMemberAttribute)) + ->where($this->groupMemberAttribute, '*') ->setUnfoldAttribute($this->groupMemberAttribute) ->setBase($this->groupBaseDn) ->fetchOne();