diff --git a/services/auth/source/ldap/source_search.go b/services/auth/source/ldap/source_search.go index 40016ed271d35..e785f3953ebc3 100644 --- a/services/auth/source/ldap/source_search.go +++ b/services/auth/source/ldap/source_search.go @@ -127,7 +127,6 @@ func dial(source *Source) (*ldap.Conn, error) { if source.SecurityProtocol == SecurityProtocolLDAPS { conn, err := ldap.DialTLS("tcp", net.JoinHostPort(host, strconv.Itoa(source.Port)), tlsConfig) - if err != nil { // Connection failed, try again with the next host. log.Trace("error during Dial for host %s: %w", host, err)