Clean up unneded code
Remove the now useless error handling cases in case encryption wasn't successful. refs #9608
This commit is contained in:
parent
3b8b5b0022
commit
7daa97a166
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue