[SAMSRV] Simplify the initialization of the account expiration date for new user accounts

This commit is contained in:
Eric Kohl 2018-08-26 21:26:31 +02:00
parent dcc188e974
commit a9f2677782

View file

@ -389,8 +389,7 @@ SampSetupCreateUserAccount(HANDLE hDomainKey,
FixedUserData.LastLogon.QuadPart = 0;
FixedUserData.LastLogoff.QuadPart = 0;
FixedUserData.PasswordLastSet.QuadPart = 0;
FixedUserData.AccountExpires.LowPart = MAXULONG;
FixedUserData.AccountExpires.HighPart = MAXLONG;
FixedUserData.AccountExpires.QuadPart = MAXLONGLONG;
FixedUserData.LastBadPasswordTime.QuadPart = 0;
FixedUserData.UserId = ulRelativeId;
FixedUserData.PrimaryGroupId = DOMAIN_GROUP_RID_USERS;