better log TLS errors
This commit is contained in:
parent
0f098dc6a8
commit
c258ae9689
|
@ -102,8 +102,8 @@ class Ldap{
|
||||||
$useTLS = $this->conf->getUseTLS();
|
$useTLS = $this->conf->getUseTLS();
|
||||||
if (isset($useTLS) && ($useTLS == "yes")) {
|
if (isset($useTLS) && ($useTLS == "yes")) {
|
||||||
@ldap_start_tls($this->server);
|
@ldap_start_tls($this->server);
|
||||||
// connect without TLS if it failed
|
|
||||||
if (ldap_errno($this->server) != 0) {
|
if (ldap_errno($this->server) != 0) {
|
||||||
|
logNewMessage(LOG_ERR, 'Unable to start TLS encryption. Please check if your server certificate is valid and if the LDAP server supports TLS at all.');
|
||||||
return ldap_errno($this->server);
|
return ldap_errno($this->server);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue