You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently DialTLS() uses net.Dial then performs an explicit handshake.[0]
We noticed this because tls.Dial does a few other things like inferring the ServerName[1], but since the LDAP client doesn't use that code path, users have to set it explicitly.
Is there a reason this client needs to do its own handshake?
This was brought up in dexidp/dex#689
Currently
DialTLS()
usesnet.Dial
then performs an explicit handshake.[0]We noticed this because
tls.Dial
does a few other things like inferring the ServerName[1], but since the LDAP client doesn't use that code path, users have to set it explicitly.Is there a reason this client needs to do its own handshake?
[0]
ldap/conn.go
Lines 124 to 138 in d0a5ced
[1] https://github.com/golang/go/blob/go1.7.3/src/crypto/tls/tls.go#L134-L141
The text was updated successfully, but these errors were encountered: