mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:23:13 +00:00
Copy AuthenticationId from existing token when duplicating a token
svn path=/trunk/; revision=10489
This commit is contained in:
parent
39bfabb1d4
commit
78a5367c1d
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: token.c,v 1.40 2004/08/10 20:30:35 gvg Exp $
|
/* $Id: token.c,v 1.41 2004/08/10 21:11:20 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -179,8 +179,7 @@ SepDuplicateToken(PACCESS_TOKEN Token,
|
||||||
AccessToken->TokenInUse = 0;
|
AccessToken->TokenInUse = 0;
|
||||||
AccessToken->TokenType = TokenType;
|
AccessToken->TokenType = TokenType;
|
||||||
AccessToken->ImpersonationLevel = Level;
|
AccessToken->ImpersonationLevel = Level;
|
||||||
AccessToken->AuthenticationId.LowPart = SYSTEM_LUID;
|
RtlCopyLuid(&AccessToken->AuthenticationId, &Token->AuthenticationId);
|
||||||
AccessToken->AuthenticationId.HighPart = 0;
|
|
||||||
|
|
||||||
AccessToken->TokenSource.SourceIdentifier.LowPart = Token->TokenSource.SourceIdentifier.LowPart;
|
AccessToken->TokenSource.SourceIdentifier.LowPart = Token->TokenSource.SourceIdentifier.LowPart;
|
||||||
AccessToken->TokenSource.SourceIdentifier.HighPart = Token->TokenSource.SourceIdentifier.HighPart;
|
AccessToken->TokenSource.SourceIdentifier.HighPart = Token->TokenSource.SourceIdentifier.HighPart;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue