Skip to content

Commit

Permalink
Update vmware_vcenter_vmdir_auth_bypass.rb
Browse files Browse the repository at this point in the history
Few more instances corrected
  • Loading branch information
HynekPetrak authored Oct 12, 2023
1 parent 060dc84 commit b2f8477
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def group_dn

def run
unless new_username && new_password
print_error('Please set the USERNAME and PASSWORD options to proceed')
print_error('Please set the NEW_USERNAME and NEW_PASSWORD options to proceed')
return
end

Expand Down Expand Up @@ -116,7 +116,7 @@ def run
def auth_bypass(ldap)
# when datastore['BIND_DN'] has been provided in options,
# ldap_connect has already made a bind for us.
return if datastore['BIND_DN']
return if datastore['USERNAME'] && ldap.bind

ldap.bind(
method: :simple,
Expand Down

0 comments on commit b2f8477

Please sign in to comment.