mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-07 05:54:25 +02:00
Display connection test info when inspecting LdapConnections
refs #9605
This commit is contained in:
parent
3ddb8ca1bd
commit
f4d8bfc309
@ -969,6 +969,10 @@ class LdapConnection implements Selectable, Inspectable
|
|||||||
|
|
||||||
$hostname = $this->hostname;
|
$hostname = $this->hostname;
|
||||||
if ($this->encryption === static::LDAPS) {
|
if ($this->encryption === static::LDAPS) {
|
||||||
|
$this->logInfo('Connect using LDAPS');
|
||||||
|
if (! $this->validateCertificate) {
|
||||||
|
$this->logInfo('Skipping certificate validation');
|
||||||
|
}
|
||||||
$hostname = 'ldaps://' . $hostname;
|
$hostname = 'ldaps://' . $hostname;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1156,7 +1160,7 @@ class LdapConnection implements Selectable, Inspectable
|
|||||||
public function getInfo()
|
public function getInfo()
|
||||||
{
|
{
|
||||||
if (! isset($this->info)) {
|
if (! isset($this->info)) {
|
||||||
$this->getConnection();
|
$this->testConnectionHealth();
|
||||||
}
|
}
|
||||||
return $this->info;
|
return $this->info;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user