From 85b747fc549a46b2170c99ab4fb86326894210ef Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Wed, 12 Mar 2014 12:41:45 -0400 Subject: [PATCH 1/1] Windows: NP AFSGetConnectionInfo AuthId == 0 During the processing of a network provider GetConnectionInfo request if the provided Authentication Logon Session Id is zero, the redirector should attempt to obtain the Logon Session Id in kernel. This was not performed within AFSGetConnectionInfo(). Change-Id: Ia060abfdebc17e52eefac24ac9dc19a7d6434314 Reviewed-on: http://gerrit.openafs.org/10899 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- src/WINNT/afsrdr/kernel/lib/AFSNetworkProviderSupport.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/WINNT/afsrdr/kernel/lib/AFSNetworkProviderSupport.cpp b/src/WINNT/afsrdr/kernel/lib/AFSNetworkProviderSupport.cpp index 51eab1e..f3b63c8 100644 --- a/src/WINNT/afsrdr/kernel/lib/AFSNetworkProviderSupport.cpp +++ b/src/WINNT/afsrdr/kernel/lib/AFSNetworkProviderSupport.cpp @@ -1466,6 +1466,17 @@ AFSGetConnectionInfo( IN AFSNetworkProviderConnectionCB *ConnectCB, uniRemoteName.MaximumLength = uniRemoteName.Length + sizeof( WCHAR); uniRemoteName.Buffer = (WCHAR *)ConnectCB->RemoteName; + if( ConnectCB->AuthenticationId.QuadPart == 0) + { + + ConnectCB->AuthenticationId = AFSGetAuthenticationId(); + + AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER, + AFS_TRACE_LEVEL_VERBOSE, + "AFSGetConnectionInfo Retrieved authentication id %I64X\n", + ConnectCB->AuthenticationId.QuadPart)); + } + if( ConnectCB->LocalName != L'\0') { -- 1.9.4