From: Eric Kohl Date: Sun, 26 Aug 2018 22:19:10 +0000 (+0200) Subject: [LSASRV] LsapLogonUser creates an impersonation token for a network logon X-Git-Tag: 0.4.12-dev~924 X-Git-Url: https://git.reactos.org/?p=reactos.git;a=commitdiff_plain;h=fc2b4bc7ea10e5d458b1920cb7c18650ae493afa [LSASRV] LsapLogonUser creates an impersonation token for a network logon --- diff --git a/dll/win32/lsasrv/authpackage.c b/dll/win32/lsasrv/authpackage.c index 7405e0904e5..8eef860c412 100644 --- a/dll/win32/lsasrv/authpackage.c +++ b/dll/win32/lsasrv/authpackage.c @@ -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,