Skip to content

Commit b2f8477

Browse files
authored
Update vmware_vcenter_vmdir_auth_bypass.rb
Few more instances corrected
1 parent 060dc84 commit b2f8477

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/auxiliary/admin/ldap/vmware_vcenter_vmdir_auth_bypass.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def group_dn
8282

8383
def run
8484
unless new_username && new_password
85-
print_error('Please set the USERNAME and PASSWORD options to proceed')
85+
print_error('Please set the NEW_USERNAME and NEW_PASSWORD options to proceed')
8686
return
8787
end
8888

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

121121
ldap.bind(
122122
method: :simple,

0 commit comments

Comments
 (0)