aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/ajax/testConfiguration.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/user_ldap/ajax/testConfiguration.php')
-rw-r--r--apps/user_ldap/ajax/testConfiguration.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/user_ldap/ajax/testConfiguration.php b/apps/user_ldap/ajax/testConfiguration.php
index b31fd983995..a6375209611 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()) {