Skip to content

Conversation

@zeroSteiner
Copy link
Contributor

This updates the auxiliary/admin/ldap/change_password module to use the new LDAP datastore options. This means when users set the new options, the outputs are all correct now. Fixes #20252

This also fixes some minor typos.

Verification

List the steps needed to make sure this thing works

  • Start msfconsole
  • use auxiliary/admin/ldap/change_password
  • Set the new LDAP-prefixed datastore options
  • Change a user's password given knowledge of the existing value
  • Reset a user's password with a privileged account
  • See the correct messages in the outputs

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Metasploit Kanban Jun 3, 2025
@sjanusz-r7 sjanusz-r7 self-assigned this Jun 3, 2025
@sjanusz-r7
Copy link
Contributor

Before

auxiliary(admin/ldap/change_password) > run rhost=192.168.112.3 LDAPUsername=Administrator LDAPDomain=sj.local LDAPPassword=ad-admin1 target_user=Administrator NEW_PASSWORD=ad-admin11
[*] Running module against 192.168.112.3
[!] Connecting with an anonymous bind
[+] Successfully bound to the LDAP server!
[*] Discovering base DN automatically
[*] 192.168.112.3:389 Discovered base DN: DC=sj,DC=local
[+] Successfully reset password for Administrator.
[*] Auxiliary module execution completed

After

auxiliary(admin/ldap/change_password) > run rhost=192.168.112.3 LDAPUsername=Administrator LDAPDomain=sj.local LDAPPassword=ad-admin1 target_user=Administrator NEW_PASSWORD=ad-admin11
[*] Running module against 192.168.112.3
[+] Successfully bound to the LDAP server!
[*] Discovering base DN automatically
[*] 192.168.112.3:389 Discovered base DN: DC=sj,DC=local
[+] Successfully reset password for Administrator.
[*] Auxiliary module execution completed

@sjanusz-r7 sjanusz-r7 merged commit 043f8cb into rapid7:master Jun 3, 2025
24 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Metasploit Kanban Jun 3, 2025
@sjanusz-r7
Copy link
Contributor

Release Notes

Updates the auxiliary/admin/ldap/change_password module to use the new LDAP datastore options.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Fix auxiliary/admin/ldap/change_password

3 participants