mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
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
1 changed files with 5 additions and 0 deletions
|
|
@ -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 a new issue