From 0e0c58c0c586e573496a0c8b5fd05a5290d2994b Mon Sep 17 00:00:00 2001 From: Taras Shchybovyk Date: Thu, 13 Jul 2017 13:33:48 +0300 Subject: [PATCH] Updates to ldap installer. Added ldap test connection functionality at installer --- application/configs/application.ini | 1 - install/step5.php | 59 ++++++++--------------------- 2 files changed, 16 insertions(+), 44 deletions(-) diff --git a/application/configs/application.ini b/application/configs/application.ini index 9684831f2..3aae43c0d 100644 --- a/application/configs/application.ini +++ b/application/configs/application.ini @@ -42,7 +42,6 @@ ldap.server1.accountCanonicalForm = LDAP_ACCOUNTCANONICALFORM ldap.server1.username = LDAP_USERNAME ldap.server1.password = LDAP_PASSWORD ldap.server1.baseDn = LDAP_BASEDN -ldap.server1.bindRequiresDn = LDAP_BINDREQUIRESDN [staging : production] diff --git a/install/step5.php b/install/step5.php index 34ebd5392..de4354fc8 100644 --- a/install/step5.php +++ b/install/step5.php @@ -38,7 +38,6 @@ $accountDomainNameShort = trim($_POST['accountDomainNameShort']); $accountCanonicalForm = trim($_POST['accountCanonicalForm']); $baseDn = trim($_POST['baseDn']); - $bindRequiresDn = trim($_POST['bindRequiresDn']); $superAdminUsername = trim($_POST['superAdminUsername']); $username = trim($_POST['username']); @@ -51,12 +50,10 @@ $msgarray['port'] = 'Please enter valid port number.'; } else if (!preg_match("/^([1-4])$/", $accountCanonicalForm)) { $msgarray['accountCanonicalForm'] = 'Please select valid number for canonical form.'; - } else if ($bindRequiresDn != 'true' && $bindRequiresDn != 'false') { - $msgarray['bindRequiresDn'] = 'Please select valid state.'; } else { $msgarray = main_function($host, $port, $username, $password, $accountFilterFormat, $accountDomainName, $accountCanonicalForm, - $baseDn, $bindRequiresDn, $ldapEnabled, $accountDomainNameShort, $superAdminUsername); + $baseDn, $ldapEnabled, $accountDomainNameShort, $superAdminUsername); if (isset($msgarray['result']) && $msgarray['result'] == 'send') { ?>