Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renames LDAP datastore options #19606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cgranleese-r7
Copy link
Contributor

@cgranleese-r7 cgranleese-r7 commented Oct 31, 2024

Note

This PR is required for another PR with Pro - https://github.com/rapid7/pro/pull/3808

This PR renames the LDAP datastore options to facilitate some changes being made in Pro as part of the following PR.

The reason this was required was due to adding the previous LDAP datastore values into the configuration hash within Pro in the following file - ui/app/models/scan_task.rb, this would result in duplicate hash keys as previous LDAP used:

  • USERNAME
  • PASSWORD
  • DOMAIN

So I decided to align with how SMB was handling its datastore by updating them to be:

  • LDAPUsername
  • LDAPPassword
  • LDAPDomain

Verification

  • Run auxiliary/scanner/ldap/ldap_login against an ldap server to get a session (an example of running an ldap container can be found in the ldap acceptance tests here
    - name: Run samba/ldap docker container
    working-directory: 'test/ldap'
    run: |
    docker compose build
    docker compose up --wait -d
  • Run SPEC_OPTS='--tag acceptance' SPEC_HELPER_LOAD_METASPLOIT=false bundle exec rspec ./spec/acceptance/ldap_spec.rb and ensure those pass locally.
  • Start msfconsole
  • Test ldap_login module
  • Code changes are sane

@cgranleese-r7 cgranleese-r7 marked this pull request as ready for review October 31, 2024 11:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants