Skip to content

make use of ports in SPN optional - #57159

Merged
stephentoub merged 5 commits into
dotnet:mainfrom
wfurt:spn_51701
Aug 16, 2021
Merged

stephentoub merged 5 commits into
dotnet:mainfrom
wfurt:spn_51701

Conversation

@wfurt

@wfurt wfurt commented Aug 10, 2021 •

Copy link
Copy Markdown
Member

This is regression caused by #40860. There is some ambiguity if port should be used for contracting SPN when it is not default port. We did not do that up to 5.0 and we do since. However that change can have negative impact on existing services.
Since there is no API for developers to control the SPN (#25320), I added ENV & AppContext switch so control this and choose old or new behavior globally.

I did some more testing with IIS can 4.7/4.8 It seems like when configure server on custom ports, client connects to it without specifying port in SPN.
For that reason I'm leaving this off by default as we did prior to 5.0.

fixes #53193
fixes #51701

Loading
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Net.Http breaking-change Issue or PR that represents a breaking API or functional change over a previous release.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Regression in SPN generation in .NET 5.0 for non-standard HTTP ports HttpClient UseDefaultCredentials Get with kerberos auth server sends NTLM

3 participants