diff options
author | Arthur Schiwon <blizzz@owncloud.com> | 2013-12-03 13:21:55 +0100 |
---|---|---|
committer | Arthur Schiwon <blizzz@owncloud.com> | 2013-12-04 18:58:09 +0100 |
commit | cc725674e058b44b0b931ed3d33aef7e0ac109c8 (patch) | |
tree | 5bc7f1888f2a04a8a92bd7fe6b40bf81b12578f0 /apps/user_ldap/ajax | |
parent | a10d1977b5e2561d20dc96828f38a33b989d3ba8 (diff) | |
download | nextcloud-server-cc725674e058b44b0b931ed3d33aef7e0ac109c8.tar.gz nextcloud-server-cc725674e058b44b0b931ed3d33aef7e0ac109c8.zip |
LDAP: on testing configuration, set active property to true, otherwise inactive connections cannot be tested properly
Diffstat (limited to 'apps/user_ldap/ajax')
-rw-r--r-- | apps/user_ldap/ajax/testConfiguration.php | 2 |
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()) { |