ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSAddConnection Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSAddConnection Retrieved authentication id %I64X\n",
ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSCancelConnection Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSCancelConnection Retrieved authentication id %I64X\n",
ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSGetConnection Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSGetConnection Retrieved authentication id %I64X\n",
ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSListConnections Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
AFS_TRACE_LEVEL_VERBOSE,
"AFSListConnections Retrieved authentication id %I64X\n",
uniRemoteName.MaximumLength = uniRemoteName.Length + sizeof( WCHAR);
uniRemoteName.Buffer = (WCHAR *)ConnectCB->RemoteName;
+ if( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ ConnectCB->AuthenticationId = AFSGetAuthenticationId();
+
+ if ( ConnectCB->AuthenticationId.QuadPart == 0)
+ {
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_ERROR,
+ "AFSGetConnectionInfo Unable to retrieve authentication id\n"));
+
+ return STATUS_ACCESS_DENIED;
+ }
+
+ AFSDbgTrace(( AFS_SUBSYSTEM_NETWORK_PROVIDER,
+ AFS_TRACE_LEVEL_VERBOSE,
+ "AFSGetConnectionInfo Retrieved authentication id %I64X\n",
+ ConnectCB->AuthenticationId.QuadPart));
+ }
+
if( ConnectCB->LocalName != L'\0')
{