return directly on error

This commit is contained in:
Roland Pabel
2025-11-20 15:09:53 +01:00
parent 8555a88202
commit 443176a0d1

View File

@@ -71,6 +71,7 @@ func (la *LdapAuthenticator) CanLogin(
l, err := la.getLdapConnection(true) l, err := la.getLdapConnection(true)
if err != nil { if err != nil {
cclog.Error("LDAP connection error") cclog.Error("LDAP connection error")
return nil, false
} }
defer l.Close() defer l.Close()