-
Notifications
You must be signed in to change notification settings - Fork 295
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
Kerberos authentication doesn't work with NuGet package 2.1.0 #825
Comments
Hi @mashbrno , Thank you for reporting this. We will look into this soon. |
Hi @karinazhou |
Same problem (Except using TLSv1.0), regression in 2.1.0
|
+1, faced with that |
@mashbrno I tried with your sample app on my side but I got the
|
@karinazhou Of course I didn't share my Active Directory neither whole SQL server with it. Feel free to generate your valid credentials with this commands:
You will also need to modify |
@mashbrno When I go through the changes made in MDS v2.1.0, I find that we have changed the behavior for SPN generation. You can find the commit in PR#629. This is to add default port 1433 to the server SPN when the port number is not provided in the connection string. The original issue is reported in #627 . However, I can see you have 1433 in the connection string so it may not be the cause. How it works if you provide @galakt @dimonstrik May I also know the connection string you used when it failed? Thanks, |
Unfortunately changing connection string from
to
didn't make any change. Works with |
@karinazhou to izolate the issue even more it was introduced between |
@mashbrno Thank you so much for the information and it does help a lot to narrow down the issue 👍 |
@karinazhou I can confirm, that your patch is working. |
Closing issue as v2.1.1 has been released with patch. |
Fixes #710 See also dotnet/SqlClient#825
Can't authenticate with SQL Server 2014 using new
2.1.0
. Switching back to1.1.3
works.Exception:
Image configuration:
The text was updated successfully, but these errors were encountered: