Browse Source

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

tags/v7.0.0alpha2
Arthur Schiwon 10 years ago
parent
commit
cc725674e0
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      apps/user_ldap/ajax/testConfiguration.php

+ 2
- 0
apps/user_ldap/ajax/testConfiguration.php 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()) {

Loading…
Cancel
Save