Revert accidentally commited unneded changes

This commit is contained in:
Matthias Jentsch 2015-07-15 11:14:59 +02:00
parent 6db80f1e74
commit 3b8b5b0022
1 changed files with 1 additions and 5 deletions

View File

@ -994,11 +994,7 @@ class LdapConnection implements Selectable, Inspectable
if (! $this->validateCertificate) { if (! $this->validateCertificate) {
$this->logInfo('Skipping certificate validation'); $this->logInfo('Skipping certificate validation');
} }
if (! ldap_start_tls($ds)) {
$ret = ldap_start_tls($ds);
var_dump($ret);
if ($ret) {
} else {
throw new LdapException('LDAP STARTTLS failed: %s', ldap_error($ds)); throw new LdapException('LDAP STARTTLS failed: %s', ldap_error($ds));
} }