Browse Source

fixed PHP issue

pull/85/head
Roland Gruber 3 years ago
parent
commit
9316803fc6
  1. 3
      lam/lib/account.inc

3
lam/lib/account.inc

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

Loading…
Cancel
Save