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 b90f95a commit b68426dCopy full SHA for b68426d
1 file changed
internal/service/ldap_service.go
@@ -62,6 +62,10 @@ func NewLdapService(
62
*/
63
}
64
65
+ secret := utils.GetSecret(config.LDAP.BindPassword, config.LDAP.BindPasswordFile)
66
+ config.LDAP.BindPassword = secret
67
+ config.LDAP.BindPasswordFile = ""
68
+
69
_, err := ldap.connect()
70
71
if err != nil {
@@ -213,9 +217,6 @@ func (ldap *LdapService) BindService(rebind bool) error {
213
217
if ldap.cert != nil {
214
218
return ldap.conn.ExternalBind()
215
219
216
- secret := utils.GetSecret(ldap.config.LDAP.BindPassword, ldap.config.LDAP.BindPasswordFile)
- ldap.config.LDAP.BindPassword = secret
- ldap.config.LDAP.BindPasswordFile = ""
220
return ldap.conn.Bind(ldap.config.LDAP.BindDN, ldap.config.LDAP.BindPassword)
221
222
0 commit comments