mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 01:04:09 +02:00
parent
f4d8bfc309
commit
84899e3e56
@ -1062,18 +1062,15 @@ class LdapConnection implements Selectable, Inspectable
|
|||||||
putenv('LDAPTLS_REQCERT=never');
|
putenv('LDAPTLS_REQCERT=never');
|
||||||
} else {
|
} else {
|
||||||
if ($this->validateCertificate) {
|
if ($this->validateCertificate) {
|
||||||
// $ldap_conf = $this->getConfigDir('ldap_ca.conf');
|
$ldap_conf = $this->getConfigDir('ldap_ca.conf');
|
||||||
} else {
|
} else {
|
||||||
// $ldap_conf = $this->getConfigDir('ldap_nocert.conf');
|
$ldap_conf = $this->getConfigDir('ldap_nocert.conf');
|
||||||
putenv('LDAPTLS_REQCERT=never');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
putenv('LDAPRC=' . $ldap_conf); // TODO: Does not have any effect
|
putenv('LDAPRC=' . $ldap_conf); // TODO: Does not have any effect
|
||||||
if (getenv('LDAPRC') !== $ldap_conf) {
|
if (getenv('LDAPRC') !== $ldap_conf) {
|
||||||
throw new LdapException('putenv failed');
|
throw new LdapException('putenv failed');
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user