mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-23 22:04:25 +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()) {
|
if ($this->isAd()) {
|
||||||
return array(
|
return array(
|
||||||
|
'backend' => 'msldap',
|
||||||
'base_dn' => $this->connection->getCapabilities()->getDefaultNamingContext(),
|
'base_dn' => $this->connection->getCapabilities()->getDefaultNamingContext(),
|
||||||
'user_class' => 'user',
|
'user_class' => 'user',
|
||||||
'user_name_attribute' => 'sAMAccountName'
|
'user_name_attribute' => 'sAMAccountName'
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return array(
|
return array(
|
||||||
|
'backend' => 'ldap',
|
||||||
'base_dn' => $this->connection->getCapabilities()->getDefaultNamingContext(),
|
'base_dn' => $this->connection->getCapabilities()->getDefaultNamingContext(),
|
||||||
'user_class' => 'inetOrgPerson',
|
'user_class' => 'inetOrgPerson',
|
||||||
'user_name_attribute' => 'uid'
|
'user_name_attribute' => 'uid'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user