}
}
- if (LogonContext->Untrusted)
- Status = Package->LsaApCallPackageUntrusted((PLSA_CLIENT_REQUEST)LogonContext,
- LocalBuffer,
- RequestMsg->CallAuthenticationPackage.Request.ProtocolSubmitBuffer,
- RequestMsg->CallAuthenticationPackage.Request.SubmitBufferLength,
- &RequestMsg->CallAuthenticationPackage.Reply.ProtocolReturnBuffer,
- &RequestMsg->CallAuthenticationPackage.Reply.ReturnBufferLength,
- &RequestMsg->CallAuthenticationPackage.Reply.ProtocolStatus);
- else
+ if (LogonContext->TrustedCaller)
Status = Package->LsaApCallPackage((PLSA_CLIENT_REQUEST)LogonContext,
LocalBuffer,
RequestMsg->CallAuthenticationPackage.Request.ProtocolSubmitBuffer,
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolReturnBuffer,
&RequestMsg->CallAuthenticationPackage.Reply.ReturnBufferLength,
&RequestMsg->CallAuthenticationPackage.Reply.ProtocolStatus);
+ else
+ Status = Package->LsaApCallPackageUntrusted((PLSA_CLIENT_REQUEST)LogonContext,
+ LocalBuffer,
+ RequestMsg->CallAuthenticationPackage.Request.ProtocolSubmitBuffer,
+ RequestMsg->CallAuthenticationPackage.Request.SubmitBufferLength,
+ &RequestMsg->CallAuthenticationPackage.Reply.ProtocolReturnBuffer,
+ &RequestMsg->CallAuthenticationPackage.Reply.ReturnBufferLength,
+ &RequestMsg->CallAuthenticationPackage.Reply.ProtocolStatus);
if (!NT_SUCCESS(Status))
{
TRACE("Package->LsaApCallPackage() failed (Status 0x%08lx)\n", Status);
TRACE("New LogonContext: %p\n", Context);
Context->ClientProcessHandle = ProcessHandle;
- Context->Untrusted = RequestMsg->ConnectInfo.Untrusted;
+ Context->TrustedCaller = RequestMsg->ConnectInfo.TrustedCaller;
- if (Context->Untrusted == FALSE)
- Context->Untrusted = !LsapIsTrustedClient(ProcessHandle);
+ if (Context->TrustedCaller)
+ Context->TrustedCaller = LsapIsTrustedClient(ProcessHandle);
*LogonContext = Context;
sizeof(ConnectInfo));
ConnectInfo.CreateContext = FALSE;
+ ConnectInfo.TrustedCaller = TRUE;
ConnectInfoLength = sizeof(LSA_CONNECTION_INFO);
Status = NtConnectPort(&LsaPortHandle,
ConnectInfoLength);
ConnectInfo.CreateContext = TRUE;
- ConnectInfo.Untrusted = TRUE;
+ ConnectInfo.TrustedCaller = FALSE;
Status = NtConnectPort(LsaHandle,
&PortName,