diff --git a/library/Icinga/Protocol/Ldap/Connection.php b/library/Icinga/Protocol/Ldap/Connection.php index 2f7cccd41..ba6203aab 100644 --- a/library/Icinga/Protocol/Ldap/Connection.php +++ b/library/Icinga/Protocol/Ldap/Connection.php @@ -617,6 +617,10 @@ class Connection implements Selectable */ public function getCapabilities() { + if ($this->capabilities === null) { + $this->connect(); // Populates $this->capabilities + } + return $this->capabilities; }