]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
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>
Fri, 31 Dec 2010 19:11:53 +0000 (20:11 +0100)
We might eventually want to change this, but right now we get unix times
out of the winbind pipe struct

source3/auth/auth_util.c

index 4a7160accf9bcbcdda68fdb43aa27f01da42c977..69d5c652948dbb4d32c9622416177607e11512f8 100644 (file)
@@ -2023,7 +2023,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;
@@ -2031,7 +2031,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;
@@ -2039,7 +2039,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;