mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
LdapUserGroupBackend: Set the appropriate base dn when resolving dns
refs #10567
This commit is contained in:
parent
c85bce7211
commit
453aa864cc
@ -507,6 +507,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
|
|||||||
->select()
|
->select()
|
||||||
->from($this->userClass, array())
|
->from($this->userClass, array())
|
||||||
->where($this->userNameAttribute, $name)
|
->where($this->userNameAttribute, $name)
|
||||||
|
->setBase($this->userBaseDn)
|
||||||
->setUsePagedResults(false)
|
->setUsePagedResults(false)
|
||||||
->fetchDn();
|
->fetchDn();
|
||||||
if ($userDn) {
|
if ($userDn) {
|
||||||
@ -517,6 +518,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
|
|||||||
->select()
|
->select()
|
||||||
->from($this->groupClass, array())
|
->from($this->groupClass, array())
|
||||||
->where($this->groupNameAttribute, $name)
|
->where($this->groupNameAttribute, $name)
|
||||||
|
->setBase($this->groupBaseDn)
|
||||||
->setUsePagedResults(false)
|
->setUsePagedResults(false)
|
||||||
->fetchDn();
|
->fetchDn();
|
||||||
if ($groupDn) {
|
if ($groupDn) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user