LDAP: on testing configuration, set active property to true, otherwise inactive connections cannot be tested properly
This commit is contained in:
parent
a10d1977b5
commit
cc725674e0
1 changed files with 2 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue