Initialize default domain ForceLogoff time.

svn path=/trunk/; revision=59685
This commit is contained in:
Eric Kohl 2013-08-10 12:53:29 +00:00
parent 88d8880262
commit 206be3cc65
2 changed files with 2 additions and 1 deletions

View file

@ -9,6 +9,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#define WIN32_NO_STATUS
#define _INC_WINDOWS
#define COM_NO_WINDOWS_H

View file

@ -577,7 +577,7 @@ SampSetupCreateDomain(IN HANDLE hServerKey,
FixedData.DomainModifiedCount.QuadPart = 0;
FixedData.MaxPasswordAge.QuadPart = -(6LL * 7LL * 24LL * 60LL * 60LL * TICKS_PER_SECOND); /* 6 weeks */
FixedData.MinPasswordAge.QuadPart = 0; /* right now */
// FixedData.ForceLogoff.QuadPart = // very far in the future aka never
FixedData.ForceLogoff.QuadPart = LLONG_MAX; /* very far in the future aka never */
FixedData.LockoutDuration.QuadPart = -(30LL * 60LL * TICKS_PER_SECOND); /* 30 minutes */
FixedData.LockoutObservationWindow.QuadPart = -(30LL * 60LL * TICKS_PER_SECOND); /* 30 minutes */
FixedData.ModifiedCountAtLastPromotion.QuadPart = 0;