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

Testing on Windows #65

Open
bodgit opened this issue Sep 19, 2023 · 0 comments
Open

Testing on Windows #65

bodgit opened this issue Sep 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@bodgit
Copy link
Owner

bodgit commented Sep 19, 2023

Testing the SSPI support is difficult as it requires running on a domain-joined Windows host, and specifically for the server side, requires running as the local NT Authority\SYSTEM account in order for tests to pass.

Current manual testing process:

  • cd testdata
  • Create SSH keypair with ssh-keygen -b 4096 -t rsa -m PEM -f id_rsa
  • Optionally set the ingress_cidr_blocks variable in terraform.tfvars
  • Run terraform apply to create a simple AD directory service and Windows 2022 instance joined to AD
  • RDP to instance with domain administrator, install AD management tools, OpenSSH server feature, PsExec, Golang, and Git
  • Configure OpenSSH to permit GSSAPI authentication
  • Create a test user, grant RDP access
  • Run go test -v -run TestNewClient with the test user
  • Run go test -v -run TestNewServer using PsExec64.exe -i -s powershell.exe to run using SYSTEM account
@bodgit bodgit added the enhancement New feature or request label Sep 19, 2023
@bodgit bodgit pinned this issue Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant