mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 06:02:56 +00:00
Allocate new LUID for each logon session
svn path=/trunk/; revision=10490
This commit is contained in:
parent
78a5367c1d
commit
794fe5ff6a
1 changed files with 6 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: logon.c,v 1.9 2004/07/10 21:15:26 ekohl Exp $
|
/* $Id: logon.c,v 1.10 2004/08/10 21:18:16 gvg Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -597,9 +597,11 @@ LogonUserW (LPWSTR lpszUsername,
|
||||||
ObjectAttributes.SecurityDescriptor = NULL;
|
ObjectAttributes.SecurityDescriptor = NULL;
|
||||||
ObjectAttributes.SecurityQualityOfService = &Qos;
|
ObjectAttributes.SecurityQualityOfService = &Qos;
|
||||||
|
|
||||||
// AuthenticationId = SYSTEM_LUID;
|
Status = NtAllocateLocallyUniqueId(&AuthenticationId);
|
||||||
AuthenticationId.LowPart = 1000;
|
if (!NT_SUCCESS(Status))
|
||||||
AuthenticationId.HighPart = 0;
|
{
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
ExpirationTime.QuadPart = -1;
|
ExpirationTime.QuadPart = -1;
|
||||||
|
|
||||||
/* Get the user SID from the registry */
|
/* Get the user SID from the registry */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue