[SAMSRV]
authorEric Kohl <eric.kohl@reactos.org>
Sat, 10 Aug 2013 12:53:29 +0000 (12:53 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sat, 10 Aug 2013 12:53:29 +0000 (12:53 +0000)
Initialize default domain ForceLogoff time.

svn path=/trunk/; revision=59685

reactos/dll/win32/samsrv/samsrv.h
reactos/dll/win32/samsrv/setup.c

index 8a63f72..a9f2f2d 100644 (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
index 7f1465a..b265dbb 100644 (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;