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 9ea6061 commit adf6f3fCopy full SHA for adf6f3f
ldap/ldap.go
@@ -92,7 +92,7 @@ func (l *Config) Clone() (cloned Config) {
92
93
func (l *Config) connect(ldapAddr string) (ldapConn *ldap.Conn, err error) {
94
tls := l.TLS
95
- if tls.ServerName == "" {
+ if tls != nil && tls.ServerName == "" {
96
// Set the server name to the LDAP server address.
97
colonPos := strings.LastIndex(ldapAddr, ":")
98
if colonPos == -1 {
0 commit comments