LdapUserGroupBackend: Set the appropriate base dn when resolving dns

refs #10567
This commit is contained in:
Johannes Meyer 2015-11-11 11:38:32 +01:00
parent c85bce7211
commit 453aa864cc
1 changed files with 2 additions and 0 deletions

View File

@ -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) {