- Add below registry key to bypass the delegation detecting logic as a workaround. This registry key is just for mitigating the issue and isolating the issue root cause. Adding the below registry key may or may not address other Active Directory/DNS issues causing SSPI related errors or delays.
- If the registry key workaround works, you still need to work with Microsoft investigate why sometimes it takes longer to get the computer name from AD.
[HKEY_LOCAL_MACHINE\SOFTWARE\Citrix\Logon]
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Citrix\Logon]
Value Name: DisableSSPI
Value Type: REG_DWORD
Value: 1
Problem Cause
- TrySSPI (Security Support Provider Interface authentication) during Credential retrieval stage was taking longer.
- The time-consuming function involved in here is IADsADSystemInfo.get_ComputerName, it is provided by Microsoft to get the Distinguished Name (DN) from Active Directory.
VDA CDF
In VDA side CDF, it was seen that the delegation detecting function, it took 42s to get the computer name from AD. It is the TrySSPI (Security Support Provider Interface authentication) during Credential retrieval stage, for nonworking session which took around 42s as compared to 0.5 seconds in the working data set.
18:56:36:86245,22020,25100,LogonUI.exe,23,ctxsspi,44,TrySSPI,9,Information,
"TrySSPI: Session checks ok",""30324,0,2023-02-06 18:56:36:86262,22020,25100,LogonUI.exe,23,cutildll,SSPIChecks,257,MakeComputerChecks,9,Information,"CTXGINA: SSPI:
MakeComputerChecks: Detecting delegation...","
30325,0,2023-02-06 18:56:36:86263,22020,25100,LogonUI.exe,23,cutildll,user,311,DelegationEnabledHelper,9,Information,"
DelegationEnabledHelper entered",""319567,4,2023-02-06
18:57:14:33599,3052,2756,svchost.exe(termsvcs),0,Rpm,SCSMgr,380,ctx::CSCSMgr::NotifySessionStateChange,14,Information,"ctx::CSCSMgr::NotifySessionStateChange: Session Id 23, Event Id 13,
SESSION TERMINATE",""320937,2,2023-02-06
18:57:18:98515,22020,25100,LogonUI.exe,23,cutildll,user,360,DelegationEnabledHelper,9,Information
,"Got account DN as <CN=abc,OU=def,OU=HSD,DC=DomainControllerABC,DC=local>",""321209,3,2023-02-06 18:57:22:64385,17156,2756,svchost.exe(termsvcs),0,Rpm,Connection,1495,ctx::Connection::sendRPMDisconnectNotify,13,Information,"Session ID 23, SuccessfulLogon=0, Previous session state
TERMINATING=2, dwappState CTXWS_APPSTATE_ACTIVE=1, m_disconnectReason ERRINFO_LOGOFF_BY_USER = 0xC, isReconnect (temporary session)=0, isPreLogOff=0",""
327450,8,2023-02-06 18:57:24:12474,1208,4224,BrokerAgent.exe,0,BrokerAgent,,0,,5,EntryExit,"=========>>>>> StackManager.NotifySessionEvent(75603032-b80f-4a38-b9e8-fa7839dbd2ac): Enter(SessionEvent:SESSION_EVENT_TERMINATE, SessionReasonCode:
SESSION_EVENT_REASON_CONNECTION_FAILURE, rdsCalId:0)",""