From cc725674e058b44b0b931ed3d33aef7e0ac109c8 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 3 Dec 2013 13:21:55 +0100 Subject: [PATCH] LDAP: on testing configuration, set active property to true, otherwise inactive connections cannot be tested properly --- apps/user_ldap/ajax/testConfiguration.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php index b31fd98399..a637520961 100644 --- a/apps/user_ldap/ajax/testConfiguration.php +++ b/apps/user_ldap/ajax/testConfiguration.php @@ -30,6 +30,8 @@ $l=OC_L10N::get('user_ldap'); $ldapWrapper = new OCA\user_ldap\lib\LDAP(); $connection = new \OCA\user_ldap\lib\Connection($ldapWrapper, '', null); +//needs to be true, otherwise it will also fail with an irritating message +$_POST['ldap_configuration_active'] = 1; if($connection->setConfiguration($_POST)) { //Configuration is okay if($connection->bind()) {