- Notifications
You must be signed in to change notification settings - Fork20
AddPSWSMan
and document PowerShell remoting to Windows hosts#32
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
jborean93 commentedMar 3, 2024
It is very likely that the images are using a version of OpenSSL that is disabling legacy providers that is required by NTLM (RC4/MD4/etc). Seejborean93/omi#71 (comment) for some more information when I last tracked this down. Just as an FYI it might be a good idea to pin the version of PSWSMan or at least put a major version ceiling. I've been hoping to push a new major version based on a pure C# library underPSWSMan to avoid the mess that is |
Thanks for the tip@jborean93 , I was able to go through some of those troubleshooting steps. The python snippet worked without me needing to enable any legacy providers. So I moved on to enabling debug logging for OMI. With the logs being generated I found a few interesting things:
|
Uh oh!
There was an error while loading.Please reload this page.
Resolves#22
Resolves#3
My original comment#22 (comment) turned out to be partially wrong. It seems we can get remoting working quite nicely with Kerberos using only
PSWSMan
, which is a very small add.I've written up some documentation which I stuck in a separate readme.
This is in the first commit:678e584
TODOs:
PSWSMan
module version (at least to major version)For NTLM, I believe we needhttps://github.com/gssapi/gss-ntlmssp and as far as I can tell there are no pre-built binaries. I was able to get it built from source in al2023, but installing it brings in a lot of other dependencies and adds a few hundred MB to the image size.
As a result, I built is a new image so that it could be used more optionally.
That work is in the second commit:b9cfde3
The thing is, I can't actually get NTLM auth working.
If we try in the original runtime for example (or even the one with
PSWSMan
) to use NTLM auth with credentials likeDOMAIN\user
, it fails pretty quickly with an error like this:If I use the image above with
gss-ntlmssp
installed, it just hangs forever, so.. it changed something, but I get no output at all so I'm pretty stuck.We can split this into two PRs, or maybe the community can come up with an answer for the NTLM stuff.
I wonder if@jborean93 might have any ideas? 👀
Let me know what you all think!