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

This commit is contained in:
Arthur Schiwon 2013-02-06 14:30:17 +01:00
parent 33ec26f6d6
commit e122fdbcb6
1 changed files with 5 additions and 0 deletions

View File

@ -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);
}