Skip to content

Commit

Permalink
streamline multi condition check in #bind_dn_and_bind_pwd_valid?
Browse files Browse the repository at this point in the history
  • Loading branch information
jvlcek committed Oct 30, 2019
1 parent deebc84 commit 4efc07e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tools/miq_config_sssd_ldap/cli_config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,7 @@ def ldaphost_and_ldapport_valid?

def bind_dn_and_bind_pwd_valid?
if opts[:mode] == "ldap" || opts[:ldap_role] == true
return false if opts[:bind_dn].nil?
return false if opts[:bind_pwd].nil?
return false if opts[:bind_dn].nil? || opts[:bind_pwd].nil?
end
true
end
Expand Down

0 comments on commit 4efc07e

Please sign in to comment.