LDAP: on testing configuration, set active property to true, otherwise inactive connections cannot be tested properly

This commit is contained in:
Arthur Schiwon 2013-12-03 13:21:55 +01:00
parent a10d1977b5
commit cc725674e0

View file

@ -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()) {