Author: ekohl
Date: Sun Aug 18 21:43:47 2013
New Revision: 59777
URL: 
http://svn.reactos.org/svn/reactos?rev=59777&view=rev
Log:
[SAMSRV]
Implement the last part of SamrSetInformationUser.UserAllInformation:
USER_ALL_PASSWORDEXPIRED.
Modified:
    trunk/reactos/dll/win32/samsrv/samrpc.c
Modified: trunk/reactos/dll/win32/samsrv/samrpc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/samsrv/samrpc.c?…
==============================================================================
--- trunk/reactos/dll/win32/samsrv/samrpc.c     [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/samsrv/samrpc.c     [iso-8859-1] Sun Aug 18 21:43:47 2013
@@ -7311,7 +7311,24 @@
         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)
     {