Skip to content

Commit 7b3c82f

Browse files
committed
Responded to comments
1 parent e9ab1d0 commit 7b3c82f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/auxiliary/admin/dcerpc/esc_update_ldap_object.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,10 +204,10 @@ def action_request_cert
204204

205205
smbpass = ''
206206

207-
if datastore['LDAPUsername'] == datastore['TARGET_USERNAME']
208-
smbpass = datastore['LDAPPassword']
209-
elsif datastore['TARGET_PASSWORD'].present?
207+
if datastore['TARGET_PASSWORD'].present?
210208
smbpass = datastore['TARGET_PASSWORD']
209+
elsif datastore['LDAPUsername'] == datastore['TARGET_USERNAME']
210+
smbpass = datastore['LDAPPassword']
211211
else
212212
# Call the shadow credentials module to add the device and get the cert path
213213
print_status("Adding shadow credentials for #{datastore['TARGET_USERNAME']}")

0 commit comments

Comments
 (0)