From 6ac0f7fe467f6c087762bde7192b65cbc0b8ba63 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Fri, 6 Oct 2017 13:29:55 +0200 Subject: [PATCH] LdapBackendForm: fill in the base DN if discovered one refs #2990 --- application/forms/Config/UserBackend/LdapBackendForm.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/application/forms/Config/UserBackend/LdapBackendForm.php b/application/forms/Config/UserBackend/LdapBackendForm.php index ab508c12c..7e6f12a89 100644 --- a/application/forms/Config/UserBackend/LdapBackendForm.php +++ b/application/forms/Config/UserBackend/LdapBackendForm.php @@ -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') ) );