diff --git a/library/Icinga/Protocol/Ldap/LdapConnection.php b/library/Icinga/Protocol/Ldap/LdapConnection.php index 382b61e2d..e1cacb7a0 100644 --- a/library/Icinga/Protocol/Ldap/LdapConnection.php +++ b/library/Icinga/Protocol/Ldap/LdapConnection.php @@ -994,11 +994,7 @@ class LdapConnection implements Selectable, Inspectable if (! $this->validateCertificate) { $this->logInfo('Skipping certificate validation'); } - - $ret = ldap_start_tls($ds); - var_dump($ret); - if ($ret) { - } else { + if (! ldap_start_tls($ds)) { throw new LdapException('LDAP STARTTLS failed: %s', ldap_error($ds)); }