Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Washburn authored Nov 30, 2023
1 parent bf7dea8 commit 93e74cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/yaml_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,10 @@ func (m *yamlManager) LdapConfig(ldapBindUser, ldapBindPassword, ldapServer stri
config.BindDN = ldapBindUser
}

if ldapBindPassword != "" {
config.BindPassword = ldapBindPassword
} else {
if len(config.BindPassword) > 0 {
lo.G.Warning("Ldap bind password should be removed from ldap.yml as this will be deprecated in a future release. Use --ldap-password flag instead.")
} else {
config.BindPassword = ldapBindPassword
}

if ldapServer != "" {
Expand Down

0 comments on commit 93e74cd

Please sign in to comment.