s3: Fix bug 7066 -- wbcAuthenticateEx gives unix times
authorVolker Lendecke <vl@samba.org>
Sat, 18 Dec 2010 15:02:09 +0000 (16:02 +0100)
committerKarolin Seeger <kseeger@samba.org>
Thu, 13 Jan 2011 16:58:54 +0000 (17:58 +0100)
We might eventually want to change this, but right now we get unix times
out of the winbind pipe struct
(cherry picked from commit 993923880e213136de89b5b8d59f6f32a51b94b7)
(cherry picked from commit 15075858886ee208f800f9bfdcfaf6a56d8653de)

source3/auth/auth_util.c

index 89aa4a3c38fac1dbcc33fd1d2a343c93dfeb43a7..aafb6f22529e4832f0df52464982938cc1f01080 100644 (file)
@@ -2018,7 +2018,7 @@ NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
 
        if (!pdb_set_pass_last_set_time(
                    sam_account,
-                   nt_time_to_unix(info->pass_last_set_time),
+                   info->pass_last_set_time,
                    PDB_CHANGED)) {
                TALLOC_FREE(result);
                return NT_STATUS_NO_MEMORY;
@@ -2026,7 +2026,7 @@ NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
 
        if (!pdb_set_pass_can_change_time(
                    sam_account,
-                   nt_time_to_unix(info->pass_can_change_time),
+                   info->pass_can_change_time,
                    PDB_CHANGED)) {
                TALLOC_FREE(result);
                return NT_STATUS_NO_MEMORY;
@@ -2034,7 +2034,7 @@ NTSTATUS make_server_info_wbcAuthUserInfo(TALLOC_CTX *mem_ctx,
 
        if (!pdb_set_pass_must_change_time(
                    sam_account,
-                   nt_time_to_unix(info->pass_must_change_time),
+                   info->pass_must_change_time,
                    PDB_CHANGED)) {
                TALLOC_FREE(result);
                return NT_STATUS_NO_MEMORY;