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:
parent
33ec26f6d6
commit
e122fdbcb6
|
@ -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…
Reference in New Issue