Skip to content

Commit

Permalink
https://github.com/vmware-tanzu-labs/cf-mgmt/issues/458
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Washburn committed Nov 29, 2023
1 parent bf7dea8 commit abb5797
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 abb5797

Please sign in to comment.