You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR fixes a connection performance regression introduced by PR #2790,
where SPN generation could be triggered for non-integrated authentication
modes such as SQL authentication on the native SNI path. This change ensures
that SPN generation is only triggered when authentication mode is integrated
security (SSPI/Kerberos).
// Native SNI requires the Unicode encoding and any other encoding like UTF8 breaks the code.
177
-
SqlClientEventSource.Log.TryTraceEvent("<{0}.{1}|SEC> Server SPN `{2}` from the connection string is used.",nameof(TdsParserStateObjectNative),nameof(CreatePhysicalSNIHandle),serverSPN);
178
-
}
179
-
else
180
-
{
181
-
// This will signal to the interop layer that we need to retrieve the SPN
0 commit comments