This PR implements a new secure property on Ldap connections to track whether the LDAP connection is secure. This allows us to determine if the connection has already been upgraded to TLS prior to attempting to upgrade the connection.
Previously, startTLS() could be called several times in the Auth\Guard, due to using isBound() to determine whether to upgrade the connection.
Closes #669 Closes #703
This PR implements a new
secure
property onLdap
connections to track whether the LDAP connection is secure. This allows us to determine if the connection has already been upgraded to TLS prior to attempting to upgrade the connection.Previously,
startTLS()
could be called several times in theAuth\Guard
, due to usingisBound()
to determine whether to upgrade the connection.