[LSASRV] LsapLogonUser creates an impersonation token for a network logon

This commit is contained in:
Eric Kohl 2018-08-27 00:19:10 +02:00
parent a7b52d6a44
commit fc2b4bc7ea

View file

@ -1570,7 +1570,7 @@ LsapLogonUser(PLSA_API_MSG RequestMsg,
Status = NtCreateToken(&TokenHandle,
TOKEN_ALL_ACCESS,
&ObjectAttributes,
TokenPrimary,
(RequestMsg->LogonUser.Request.LogonType == Network) ? TokenImpersonation : TokenPrimary,
&RequestMsg->LogonUser.Reply.LogonId,
&TokenInfo1->ExpirationTime,
&TokenInfo1->User,