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 77cc8e2 commit 243571dCopy full SHA for 243571d
1 file changed
internal/service/ldap_service.go
@@ -41,11 +41,10 @@ func (ldap *LdapService) Init() error {
41
if ldap.config.AuthCert != "" && ldap.config.AuthKey != "" {
42
cert, err := tls.LoadX509KeyPair(ldap.config.AuthCert, ldap.config.AuthKey)
43
if err != nil {
44
- log.Fatal().Err(err).Msg("LDAP mTLS authentication")
45
- } else {
46
- ldap.cert = &cert
47
- log.Info().Msg("Using LDAP mTLS authentication")
+ return fmt.Errorf("failed to initalize LDAP with mTLS authentication: %w", err)
48
}
+ ldap.cert = &cert
+ log.Info().Msg("Using LDAP with mTLS authentication")
49
50
_, err := ldap.connect()
51
0 commit comments