mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 16:51:39 +00:00
[SAMSRV]
Implement the last part of SamrSetInformationUser.UserAllInformation: USER_ALL_PASSWORDEXPIRED. svn path=/trunk/; revision=59777
This commit is contained in:
parent
a02dab8fb2
commit
ed35b983f9
1 changed files with 18 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue