Display connection test info when inspecting LdapConnections

refs #9605
This commit is contained in:
Matthias Jentsch 2015-07-14 18:36:26 +02:00
parent 3ddb8ca1bd
commit f4d8bfc309
1 changed files with 5 additions and 1 deletions

View File

@ -969,6 +969,10 @@ class LdapConnection implements Selectable, Inspectable
$hostname = $this->hostname;
if ($this->encryption === static::LDAPS) {
$this->logInfo('Connect using LDAPS');
if (! $this->validateCertificate) {
$this->logInfo('Skipping certificate validation');
}
$hostname = 'ldaps://' . $hostname;
}
@ -1156,7 +1160,7 @@ class LdapConnection implements Selectable, Inspectable
public function getInfo()
{
if (! isset($this->info)) {
$this->getConnection();
$this->testConnectionHealth();
}
return $this->info;
}