mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 08:20:27 +00:00
[SAMSRV]
Set MaxPasswordAge, LockoutDuration and LockoutObservationWindow for domains during setup. svn path=/trunk/; revision=58478
This commit is contained in:
parent
6993ef3cbb
commit
0a47615a92
2 changed files with 14 additions and 10 deletions
|
@ -69,11 +69,11 @@ typedef struct _SAM_DOMAIN_FIXED_DATA
|
||||||
ULONG Reserved;
|
ULONG Reserved;
|
||||||
LARGE_INTEGER CreationTime;
|
LARGE_INTEGER CreationTime;
|
||||||
LARGE_INTEGER DomainModifiedCount;
|
LARGE_INTEGER DomainModifiedCount;
|
||||||
LARGE_INTEGER MaxPasswordAge;
|
LARGE_INTEGER MaxPasswordAge; /* relative Time */
|
||||||
LARGE_INTEGER MinPasswordAge;
|
LARGE_INTEGER MinPasswordAge; /* relative Time */
|
||||||
LARGE_INTEGER ForceLogoff;
|
LARGE_INTEGER ForceLogoff; /* relative Time */
|
||||||
LARGE_INTEGER LockoutDuration;
|
LARGE_INTEGER LockoutDuration; /* relative Time */
|
||||||
LARGE_INTEGER LockoutObservationWindow;
|
LARGE_INTEGER LockoutObservationWindow; /* relative Time */
|
||||||
LARGE_INTEGER ModifiedCountAtLastPromotion;
|
LARGE_INTEGER ModifiedCountAtLastPromotion;
|
||||||
ULONG NextRid;
|
ULONG NextRid;
|
||||||
ULONG PasswordProperties;
|
ULONG PasswordProperties;
|
||||||
|
|
|
@ -13,10 +13,14 @@
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(samsrv);
|
WINE_DEFAULT_DEBUG_CHANNEL(samsrv);
|
||||||
|
|
||||||
|
|
||||||
/* GLOBALS *****************************************************************/
|
/* GLOBALS *****************************************************************/
|
||||||
|
|
||||||
|
#define TICKS_PER_SECOND 10000000LL
|
||||||
|
|
||||||
SID_IDENTIFIER_AUTHORITY SecurityNtAuthority = {SECURITY_NT_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY SecurityNtAuthority = {SECURITY_NT_AUTHORITY};
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS ***************************************************************/
|
/* FUNCTIONS ***************************************************************/
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
@ -423,11 +427,11 @@ SampCreateDomain(IN HKEY hDomainsKey,
|
||||||
FixedData.Version = 1;
|
FixedData.Version = 1;
|
||||||
NtQuerySystemTime(&FixedData.CreationTime);
|
NtQuerySystemTime(&FixedData.CreationTime);
|
||||||
FixedData.DomainModifiedCount.QuadPart = 0;
|
FixedData.DomainModifiedCount.QuadPart = 0;
|
||||||
// FixedData.MaxPasswordAge // 6 Weeks
|
FixedData.MaxPasswordAge.QuadPart = -(6LL * 7LL * 24LL * 60LL * 60LL * TICKS_PER_SECOND); /* 6 weeks */
|
||||||
FixedData.MinPasswordAge.QuadPart = 0; // Now
|
FixedData.MinPasswordAge.QuadPart = 0; /* right now */
|
||||||
// FixedData.ForceLogoff
|
// FixedData.ForceLogoff.QuadPart = // very far in the future aka never
|
||||||
// FixedData.LockoutDuration // 30 minutes
|
FixedData.LockoutDuration.QuadPart = -(30LL * 60LL * TICKS_PER_SECOND); /* 30 minutes */
|
||||||
// FixedData.LockoutObservationWindow // 30 minutes
|
FixedData.LockoutObservationWindow.QuadPart = -(30LL * 60LL * TICKS_PER_SECOND); /* 30 minutes */
|
||||||
FixedData.ModifiedCountAtLastPromotion.QuadPart = 0;
|
FixedData.ModifiedCountAtLastPromotion.QuadPart = 0;
|
||||||
FixedData.NextRid = 1000;
|
FixedData.NextRid = 1000;
|
||||||
FixedData.PasswordProperties = 0;
|
FixedData.PasswordProperties = 0;
|
||||||
|
|
Loading…
Reference in a new issue