LdapUserGroupBackend: Use the group_base_dn as user_base_dn..

..if neither the config nor the defaults provide a value.

refs #10402
This commit is contained in:
Johannes Meyer 2015-10-20 11:28:18 +02:00
parent 33956e02f8
commit 0b9a141591
1 changed files with 1 additions and 1 deletions

View File

@ -607,7 +607,7 @@ class LdapUserGroupBackend extends LdapRepository implements UserGroupBackendInt
return $this
->setGroupBaseDn($config->base_dn)
->setUserBaseDn($config->get('user_base_dn', $defaults->user_base_dn))
->setUserBaseDn($config->get('user_base_dn', $defaults->get('user_base_dn', $this->getGroupBaseDn())))
->setGroupClass($config->get('group_class', $defaults->group_class))
->setUserClass($config->get('user_class', $defaults->user_class))
->setGroupNameAttribute($config->get('group_name_attribute', $defaults->group_name_attribute))