LdapBackendForm: fill in the base DN if discovered one

refs #2990
This commit is contained in:
Alexander A. Klimov 2017-10-06 13:29:55 +02:00
parent b7b7796e34
commit 6ac0f7fe46
1 changed files with 1 additions and 2 deletions

View File

@ -87,7 +87,6 @@ class LdapBackendForm extends Form
)
);
$baseDn = null;
$hasAdOid = false;
if (! $isAd && !empty($this->resources)) {
$this->addElement(
@ -224,7 +223,7 @@ class LdapBackendForm extends Form
'The path where users can be found on the LDAP server. Leave ' .
'empty to select all users available using the specified connection.'
),
'value' => $this->getSuggestion('base_dn', $baseDn)
'value' => isset($baseDn) ? $baseDn : $this->getSuggestion('base_dn')
)
);