[#1488] Change how LDAPS and StartTLS are applied to connections
As described here, when using ldaps on secure port 636 to connect to an ldap server starttls is used (it should only be used with ldap on port 389).
-
Add the
DialLDAPS
function to be used in place ofDial
for all ldaps connections. -
Modify
Dial
so that StartTLS is always called andtlsConfig
always set.
This should ensure desired behaviour when connecting to ldap servers for both ldaps and starttls.
Edited by Cameron Ditchfield