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

bsim_ctl changeauth fails to change the BSim DB authentication to PKI #7105

Open
gemesa opened this issue Oct 26, 2024 · 0 comments · May be fixed by #7106
Open

bsim_ctl changeauth fails to change the BSim DB authentication to PKI #7105

gemesa opened this issue Oct 26, 2024 · 0 comments · May be fixed by #7106
Assignees
Labels
Feature: BSim Status: Internal This is being tracked internally by the Ghidra team
Milestone

Comments

@gemesa
Copy link
Contributor

gemesa commented Oct 26, 2024

Describe the bug
bsim_ctl changeauth fails to change the BSim DB authentication to PKI. The issue is that the DN_OPTION is missing from the ALLOWED_OPTION_MAP for CHANGEAUTH_OPTIONS. As a result DN is not an allowed command line option although it is required later in the code within changeAuthCommand().

To Reproduce
Steps to reproduce the behavior:

$ ./support/bsim_ctl changeauth ~/git-repos/bsim-db --auth pki
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
New local authentication: pki
Error establishing server certificate
Distinguished name required (dn="..")

$ ./support/bsim_ctl changeauth ~/git-repos/bsim-db --auth pki --dn CN=gemesa
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
Error in command line arguments
Unsupported option use: --dn

Expected behavior

$ ./support/bsim_ctl changeauth ~/git-repos/bsim-db --auth pki --dn=CN=gemesa --cafile=/home/gemesa/git-repos/bsim-pki/ca.crt
openjdk version "21.0.4" 2024-07-16 LTS
OpenJDK Runtime Environment Temurin-21.0.4+7 (build 21.0.4+7-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.4+7 (build 21.0.4+7-LTS, mixed mode)
New local authentication: pki
New host authentication: pki

Screenshots
N/A

Attachments
N/A

Environment (please complete the following information):

  • OS: Linux fedora 6.10.12-200.fc40.x86_64
  • Java Version: openjdk 21.0.4 2024-07-16 LTS
  • Ghidra Version: 11.3_DEV
  • Ghidra Origin: locally built from the GitHub repo without any changes (commit 7ddd866)

Additional context
N/A

@ryanmkurtz ryanmkurtz added Status: Triage Information is being gathered Feature: BSim labels Oct 28, 2024
@ghidracadabra ghidracadabra added Status: Internal This is being tracked internally by the Ghidra team and removed Status: Triage Information is being gathered labels Nov 7, 2024
@ryanmkurtz ryanmkurtz added this to the 11.3 milestone Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: BSim Status: Internal This is being tracked internally by the Ghidra team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants