2025-04-27 07:49:33 -04:00

132 lines
2.6 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1991 Microsoft Corporation
Module Name:
global.c
Abstract:
LSA Subsystem - globals for server side
This file contains variables that are global to the Lsa Server Side
Author:
Mike Swift (MikeSw) January 14, 1997
Environment:
Revision History:
--*/
#include <lsapch2.h>
//
// Well known LUIDs
//
LUID LsapSystemLogonId;
LUID LsapAnonymousLogonId;
//
// Well known privilege values
//
LUID LsapCreateTokenPrivilege;
LUID LsapAssignPrimaryTokenPrivilege;
LUID LsapLockMemoryPrivilege;
LUID LsapIncreaseQuotaPrivilege;
LUID LsapUnsolicitedInputPrivilege;
LUID LsapTcbPrivilege;
LUID LsapSecurityPrivilege;
LUID LsapTakeOwnershipPrivilege;
//
// Strings needed for auditing.
//
UNICODE_STRING LsapLsaAuName;
UNICODE_STRING LsapRegisterLogonServiceName;
//
// The following information pertains to the use of the local SAM
// for authentication.
//
// Length of typical Sids of members of the Account or Built-In Domains
ULONG LsapAccountDomainMemberSidLength,
LsapBuiltinDomainMemberSidLength;
// Sub-Authority Counts for members of the Account or Built-In Domains
UCHAR LsapAccountDomainSubCount,
LsapBuiltinDomainSubCount;
// Typical Sids for members of Account or Built-in Domains
PSID LsapAccountDomainMemberSid,
LsapBuiltinDomainMemberSid;
//
// Policy realted globals
UNICODE_STRING LsapDbNames[DummyLastName];
UNICODE_STRING LsapDbObjectTypeNames[DummyLastObject];
//
// Installed, absolute minimum and absolute maximum Quota Limits.
//
QUOTA_LIMITS LsapDbInstalledQuotaLimits;
QUOTA_LIMITS LsapDbAbsMinQuotaLimits;
QUOTA_LIMITS LsapDbAbsMaxQuotaLimits;
LUID LsapSystemLogonId;
LUID LsapZeroLogonId;
//
// Well known privilege values
//
LUID LsapCreateTokenPrivilege;
LUID LsapAssignPrimaryTokenPrivilege;
LUID LsapLockMemoryPrivilege;
LUID LsapIncreaseQuotaPrivilege;
LUID LsapUnsolicitedInputPrivilege;
LUID LsapTcbPrivilege;
LUID LsapSecurityPrivilege;
LUID LsapTakeOwnershipPrivilege;
SID_IDENTIFIER_AUTHORITY LsapNullSidAuthority = SECURITY_NULL_SID_AUTHORITY;
SID_IDENTIFIER_AUTHORITY LsapWorldSidAuthority = SECURITY_WORLD_SID_AUTHORITY;
SID_IDENTIFIER_AUTHORITY LsapLocalSidAuthority = SECURITY_LOCAL_SID_AUTHORITY;
SID_IDENTIFIER_AUTHORITY LsapCreatorSidAuthority = SECURITY_CREATOR_SID_AUTHORITY;
SID_IDENTIFIER_AUTHORITY LsapNtAuthority = SECURITY_NT_AUTHORITY;
//
// Well Known Sid Table Pointer
//
PLSAP_WELL_KNOWN_SID_ENTRY WellKnownSids;