From 453aa864cc236b43bbacf10c050aa4caae844cbf Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 11 Nov 2015 11:38:32 +0100 Subject: [PATCH] LdapUserGroupBackend: Set the appropriate base dn when resolving dns refs #10567 --- .../Icinga/Authentication/UserGroup/LdapUserGroupBackend.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php index 8c3fc3c3d..bac2f4525 100644 --- a/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php +++ b/library/Icinga/Authentication/UserGroup/LdapUserGroupBackend.php @@ -507,6 +507,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt ->select() ->from($this->userClass, array()) ->where($this->userNameAttribute, $name) + ->setBase($this->userBaseDn) ->setUsePagedResults(false) ->fetchDn(); if ($userDn) { @@ -517,6 +518,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt ->select() ->from($this->groupClass, array()) ->where($this->groupNameAttribute, $name) + ->setBase($this->groupBaseDn) ->setUsePagedResults(false) ->fetchDn(); if ($groupDn) {