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
}
secret := utils.GetSecret(config.LDAP.BindPassword, config.LDAP.BindPasswordFile)
config.LDAP.BindPassword = secret
config.LDAP.BindPasswordFile = ""
ldap := &LdapService{
log: log,
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()
if err != nil {