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

Fix | Linux SPN port number using named instance and Kerberos authentication does not return port# #2240

Merged
merged 17 commits into from
Dec 7, 2023

Conversation

arellegue
Copy link
Contributor

@arellegue arellegue commented Nov 23, 2023

Fixes Linux SPN to return port number in managed SNI when using named instance and Kerberos authentication. #2187

@arellegue arellegue changed the title Fix | Fix Linux SPN port number in managed SNI, using named instance and Kerberos authentication Fix | Linux SPN port number using named instance and Kerberos authentication does not return port# Nov 23, 2023
Copy link
Contributor

@H-Yeo H-Yeo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just general comments or a follow-up.

Copy link

codecov bot commented Nov 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7f203dd) 71.23% compared to head (030d8f7) 72.51%.
Report is 9 commits behind head on main.

❗ Current head 030d8f7 differs from pull request most recent head 2c8e139. Consider uploading reports for the commit 2c8e139 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2240      +/-   ##
==========================================
+ Coverage   71.23%   72.51%   +1.28%     
==========================================
  Files         305      309       +4     
  Lines       61854    61960     +106     
==========================================
+ Hits        44061    44931     +870     
+ Misses      17793    17029     -764     
Flag Coverage Δ
addons 92.88% <ø> (ø)
netcore 76.72% <100.00%> (+2.96%) ⬆️
netfx 69.90% <ø> (-0.14%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DavoudEshtehari DavoudEshtehari added this to the 5.2.0-preview4 milestone Nov 23, 2023
@DavoudEshtehari DavoudEshtehari added the Ⓜ️ Managed SNI Use this label if the issue/PR relates to issues in Managed SNI label Nov 23, 2023
@arellegue arellegue linked an issue Dec 5, 2023 that may be closed by this pull request
… on ManagedSNI, we expect the same behavior on native SNI.".

SqlConnectionStringBuilder builder = new(connStr);

Assert.True(DataTestUtility.ParseDataSource(builder.DataSource, out string hostname, out _, out string instanceName));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With specifying instance name and port number, this method call always returns false!

@JRahnama JRahnama merged commit 59080c8 into dotnet:main Dec 7, 2023
138 of 147 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ⓜ️ Managed SNI Use this label if the issue/PR relates to issues in Managed SNI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MDS on Linux sends SPN with instance name instead of port
5 participants