fixed PHP issue
This commit is contained in:
parent
7aa038a710
commit
9316803fc6
|
@ -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…
Reference in New Issue