Explorar el Código

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

tags/v7.0.0alpha2
Arthur Schiwon hace 10 años
padre
commit
cc725674e0
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2
    0
      apps/user_ldap/ajax/testConfiguration.php

+ 2
- 0
apps/user_ldap/ajax/testConfiguration.php Ver fichero

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

Cargando…
Cancelar
Guardar