From 3b8b5b0022285da1c93dc634d211bf00b401d009 Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Wed, 15 Jul 2015 11:14:59 +0200 Subject: [PATCH] Revert accidentally commited unneded changes --- library/Icinga/Protocol/Ldap/LdapConnection.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)); }