Clean up unneded code

Remove the now useless error handling cases in case encryption wasn't successful.

refs #9608
This commit is contained in:
Matthias Jentsch 2015-07-15 11:31:56 +02:00
parent 3b8b5b0022
commit 7daa97a166
1 changed files with 0 additions and 6 deletions

View File

@ -340,12 +340,6 @@ class LdapConnection implements Selectable, Inspectable
}
$this->bound = true;
if ($this->encryptionSuccess === false && $this->getCapabilities()->hasStartTls()) {
// Alert the user about the unencrypted connection if there is really an error. If the server
// does not support it, don't do anything as authentication is completely broken otherwise.
throw new LdapException('LDAP STARTTLS failed. An error occured. Please see the log for more details');
}
}
/**