Correct logic for when start tls is used for ldap connections
As outlined in this issue, when using ldaps to connect to an ldap server starttls is used. I've updated the logic in the Dial
function such that StartTLS
is only called when the connection is not a tls one.
This has been tested on a locally built stork server connecting to a FreeIPA server using ldaps.