-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
NegotiateStreamPal.Unix.cs does not support default auth #66633
Comments
Tagging subscribers to this area: @dotnet/ncl Issue DetailsDescriptionNegotiateStreamPal should support loading credential from NTLM_USER_FILE env var as per https://github.com/gssapi/gss-ntlmssp/blob/main/TESTING.txt Delegating the credentials to gss-ntlmssp. However, NegotiateStreamPal throws an exception before gss-ntlmssp has a chance to provide its own credentials. Reproduction Stepscreate an ntlm user file as per https://github.com/gssapi/gss-ntlmssp/blob/main/TESTING.txt Expected behaviorHTTP 200 Actual behaviorSystem.PlatformNotSupportedException: NTLM authentication is not possible with default credentials on this platform. Regression?No response Known WorkaroundsProvide the credentials from dotnet. Which is a security risk that is advised against specifically. ConfigurationOS = Amazon Linux 2 Other informationNo response
|
Tagging subscribers to this area: @dotnet/ncl, @vcsjones Issue DetailsDescriptionNegotiateStreamPal should support loading credential from NTLM_USER_FILE env var as per https://github.com/gssapi/gss-ntlmssp/blob/main/TESTING.txt Delegating the credentials to gss-ntlmssp. However, NegotiateStreamPal throws an exception before gss-ntlmssp has a chance to provide its own credentials. Reproduction Stepscreate an ntlm user file as per https://github.com/gssapi/gss-ntlmssp/blob/main/TESTING.txt Expected behaviorHTTP 200 Actual behaviorSystem.PlatformNotSupportedException: NTLM authentication is not possible with default credentials on this platform. Regression?No response Known WorkaroundsProvide the credentials from dotnet. Which is a security risk that is advised against specifically. ConfigurationOS = Amazon Linux 2 Other informationNo response
|
Triage:
|
We should not process the file directly but we can let gssapi to decide instead of failing early in NegotiateStream. |
Description
NegotiateStreamPal should support loading credential from NTLM_USER_FILE env var as per https://github.com/gssapi/gss-ntlmssp/blob/main/TESTING.txt
Delegating the credentials to gss-ntlmssp.
However, NegotiateStreamPal throws an exception before gss-ntlmssp has a chance to provide its own credentials.
Reproduction Steps
create an ntlm user file as per https://github.com/gssapi/gss-ntlmssp/blob/main/TESTING.txt
Set NTLM_USER_FILE env var to point to said file.
Then do an http get from an NTLM web server.
Expected behavior
HTTP 200
Actual behavior
System.PlatformNotSupportedException: NTLM authentication is not possible with default credentials on this platform.
Regression?
No response
Known Workarounds
Provide the credentials from dotnet. Which is a security risk that is advised against specifically.
Configuration
OS = Amazon Linux 2
Dotnet 3.1
Other information
No response
The text was updated successfully, but these errors were encountered: