mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
Suggest LDAP backend type based on the discovery (if any) (#2993)
fixes #2991
This commit is contained in:
parent
8de0b80f9e
commit
2510155206
@ -46,12 +46,14 @@ class Discovery
|
||||
{
|
||||
if ($this->isAd()) {
|
||||
return array(
|
||||
'backend' => 'msldap',
|
||||
'base_dn' => $this->connection->getCapabilities()->getDefaultNamingContext(),
|
||||
'user_class' => 'user',
|
||||
'user_name_attribute' => 'sAMAccountName'
|
||||
);
|
||||
} else {
|
||||
return array(
|
||||
'backend' => 'ldap',
|
||||
'base_dn' => $this->connection->getCapabilities()->getDefaultNamingContext(),
|
||||
'user_class' => 'inetOrgPerson',
|
||||
'user_name_attribute' => 'uid'
|
||||
|
Loading…
x
Reference in New Issue
Block a user