fixed PHP issue

This commit is contained in:
Roland Gruber 2020-01-24 18:42:34 +01:00
parent 7aa038a710
commit 9316803fc6
1 changed files with 2 additions and 1 deletions

View File

@ -717,7 +717,8 @@ function connectToLDAP($serverURL, $startTLS) {
}
if (defined('LDAP_OPT_X_TLS_CACERTFILE')) {
$cfgMain = new LAMCfgMain();
if (!empty($cfgMain->getSSLCaCertificates())) {
$certificates = $cfgMain->getSSLCaCertificates();
if (!empty($certificates)) {
ldap_set_option($server, LDAP_OPT_X_TLS_CACERTFILE, $cfgMain->getSSLCaCertPath());
}
}