mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-28 04:02:39 -04:00
Auth: Make sure to set the configured domain on LDAP/MSAD user backends
This commit is contained in:
parent
cbde758fc6
commit
bd23d008ca
1 changed files with 2 additions and 0 deletions
|
|
@ -218,6 +218,7 @@ class UserBackend implements ConfigAwareFactory
|
|||
$backend->setUserClass($backendConfig->get('user_class', 'user'));
|
||||
$backend->setUserNameAttribute($backendConfig->get('user_name_attribute', 'sAMAccountName'));
|
||||
$backend->setFilter($backendConfig->filter);
|
||||
$backend->setDomain($backendConfig->domain);
|
||||
break;
|
||||
case 'ldap':
|
||||
$backend = new LdapUserBackend($resource);
|
||||
|
|
@ -225,6 +226,7 @@ class UserBackend implements ConfigAwareFactory
|
|||
$backend->setUserClass($backendConfig->get('user_class', 'inetOrgPerson'));
|
||||
$backend->setUserNameAttribute($backendConfig->get('user_name_attribute', 'uid'));
|
||||
$backend->setFilter($backendConfig->filter);
|
||||
$backend->setDomain($backendConfig->domain);
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue