We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ab1d0 commit 7b3c82fCopy full SHA for 7b3c82f
modules/auxiliary/admin/dcerpc/esc_update_ldap_object.rb
@@ -204,10 +204,10 @@ def action_request_cert
204
205
smbpass = ''
206
207
- if datastore['LDAPUsername'] == datastore['TARGET_USERNAME']
208
- smbpass = datastore['LDAPPassword']
209
- elsif datastore['TARGET_PASSWORD'].present?
+ if datastore['TARGET_PASSWORD'].present?
210
smbpass = datastore['TARGET_PASSWORD']
+ elsif datastore['LDAPUsername'] == datastore['TARGET_USERNAME']
+ smbpass = datastore['LDAPPassword']
211
else
212
# Call the shadow credentials module to add the device and get the cert path
213
print_status("Adding shadow credentials for #{datastore['TARGET_USERNAME']}")
0 commit comments