LDAP: when ldaps and tls are configured, disable the latter one - they do not work together. ldaps already creates a secure connection.

remotes/origin/stable5
Arthur Schiwon 13 years ago
parent 33ec26f6d6
commit e122fdbcb6
  1. 5
      apps/user_ldap/lib/connection.php

@ -409,6 +409,11 @@ class Connection {
$this->config[$key] = array();
}
}
if((strpos($this->config['ldapHost'], 'ldaps') === 0)
&& $this->config['ldapTLS']) {
$this->config['ldapTLS'] = false;
\OCP\Util::writeLog('user_ldap', 'LDAPS (already using secure connection) and TLS do not work together. Switched of TLS.', \OCP\Util::INFO);
}

Loading…
Cancel
Save