Implement the last part of SamrSetInformationUser.UserAllInformation: USER_ALL_PASSWORDEXPIRED.

svn path=/trunk/; revision=59777
This commit is contained in:
Eric Kohl 2013-08-18 21:43:47 +00:00
parent a02dab8fb2
commit ed35b983f9

View file

@ -7311,7 +7311,24 @@ SampSetUserAll(PSAM_DB_OBJECT UserObject,
WriteFixedData = TRUE;
}
/* FIXME: USER_ALL_PASSWORDEXPIRED */
if (WhichFields & USER_ALL_PASSWORDEXPIRED)
{
if (Buffer->All.PasswordExpired)
{
/* The pasword was last set ages ago */
FixedData.PasswordLastSet.LowPart = 0;
FixedData.PasswordLastSet.HighPart = 0;
}
else
{
/* The pasword was last set right now */
Status = NtQuerySystemTime(&FixedData.PasswordLastSet);
if (!NT_SUCCESS(Status))
goto done;
}
WriteFixedData = TRUE;
}
if (WriteFixedData == TRUE)
{