Ensure the ldap service uses the correct value

This commit is contained in:
Ryc O'Chet
2026-06-09 10:53:44 +01:00
parent b68426d931
commit 42ce47dab3
+4 -4
View File
@@ -33,6 +33,10 @@ func NewLdapService(
return nil, nil return nil, nil
} }
secret := utils.GetSecret(config.LDAP.BindPassword, config.LDAP.BindPasswordFile)
config.LDAP.BindPassword = secret
config.LDAP.BindPasswordFile = ""
ldap := &LdapService{ ldap := &LdapService{
log: log, log: log,
config: config, config: config,
@@ -62,10 +66,6 @@ func NewLdapService(
*/ */
} }
secret := utils.GetSecret(config.LDAP.BindPassword, config.LDAP.BindPasswordFile)
config.LDAP.BindPassword = secret
config.LDAP.BindPasswordFile = ""
_, err := ldap.connect() _, err := ldap.connect()
if err != nil { if err != nil {