Issue
After installing the following Microsoft updates as listed below, an error is raised when attempting to log into K2.
- KB5007206 - Windows Server 2019
- KB5007192 - Windows Server 2016
- KB5007247 - Windows Server 2012 R2
- KB5007260 - Windows Server 2012
- KB5007236 - Windows Server 2008 R2 SP1
- KB5007263 - Windows Server 2008 SP2
Error Code
Authentication Failed : The logon attempt failed at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.WindowsAuthentication(SCConnectionStringBuilder connectionStringBuilder) at SourceCode.Hosting.Client.BaseAPI.BaseAPIConnection.Authenticate(String connectionString) at SourceCode.Security.Claims.Web.Shared.ConnectionClass.HandleIdentityImpersonation(Boolean asAppPool, Action action) at SourceCode.Security.Claims.Web.Shared.ConnectionClass.TryCredentialToken(BaseAPIConnection connection, String credentialToken, Boolean asAppPool) at SourceCode.Security.Claims.Web.Shared.ConnectionClass.GetPoolConnection(String credentialToken, Boolean asAppPool, Boolean& tokenApplied) at SourceCode.Security.Claims.Web.Shared.ConnectionClass.OpenConnectionForAuthentication() at SourceCode.Security.Claims.Web.ClaimsHelper.SaveBootstrapContext(BootstrapContext bootstrapContext, ClaimsIdentity claimsIdentity) at SourceCode.Security.Claims.Web.ClaimsHelper.OnValidateToken(SecurityTokenHandler tokenHandler, SecurityToken token, ReadOnlyCollection`1 claimsIdentityCollection, Boolean standardMapToWindows) at SourceCode.Security.Claims.Web.WIFExtensions.SamlSecurityTokenHandler.ValidateToken(SecurityToken token) at System.IdentityModel.Services.TokenReceiver.AuthenticateToken(SecurityToken token, Boolean ensureBearerToken, String endpointUri) at System.IdentityModel.Services.WSFederationAuthenticationModule.SignInWithResponseMessage(HttpRequestBase request) at System.IdentityModel.Services.WSFederationAuthenticationModule.OnAuthenticateRequest(Object sender, EventArgs args) at System.Web.HttpApplication.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
Resolution
To resolve this issue Microsoft has released a fix for this update and this can be resolved by installing the below-mentioned Update on all servers and also the DC servers.
- Windows Server 2019: KB5008602
- Windows Server 2016: KB5008601
- Windows Server 2012 R2: KB5008603
- Windows Server 2012: KB5008604
- Windows Server 2008 R2 SP1: KB5008605
- Windows Server 2008 SP2: KB5008606
Additional Information