We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent adf6f3f commit a762ca1Copy full SHA for a762ca1
ldap/ldap.go
@@ -91,16 +91,16 @@ func (l *Config) Clone() (cloned Config) {
91
}
92
93
func (l *Config) connect(ldapAddr string) (ldapConn *ldap.Conn, err error) {
94
- tls := l.TLS
95
- if tls != nil && tls.ServerName == "" {
+ tlsConfig := l.TLS
+ if tlsConfig != nil && tlsConfig.ServerName == "" {
96
// Set the server name to the LDAP server address.
97
colonPos := strings.LastIndex(ldapAddr, ":")
98
if colonPos == -1 {
99
colonPos = len(ldapAddr)
100
101
host := ldapAddr[:colonPos]
102
- tls = l.TLS.Clone()
103
- tls.ServerName = host
+ tlsConfig = l.TLS.Clone()
+ tlsConfig.ServerName = host
104
105
106
if l.ServerInsecure {
0 commit comments