s3: Fix bug 7066 -- wbcAuthenticateEx gives unix times
authorVolker Lendecke <vl@samba.org>
Sat, 18 Dec 2010 15:02:09 +0000 (16:02 +0100)
committerVolker Lendecke <vlendec@samba.org>
Sun, 19 Dec 2010 22:25:06 +0000 (23:25 +0100)
We might eventually want to change this, but right now we get unix times
out of the winbind pipe struct

source3/auth/server_info.c

index d288a0c97ca319478c5f1a290aeb450f16c81407..01c7a96cdc44c2402b9d986d357754159c60348a 100644 (file)
@@ -620,9 +620,11 @@ struct netr_SamInfo3 *wbcAuthUserInfo_to_netr_SamInfo3(TALLOC_CTX *mem_ctx,
        info3->base.last_logon = info->logon_time;
        info3->base.last_logoff = info->logoff_time;
        info3->base.acct_expiry = info->kickoff_time;
-       info3->base.last_password_change = info->pass_last_set_time;
-       info3->base.allow_password_change = info->pass_can_change_time;
-       info3->base.force_password_change = info->pass_must_change_time;
+       unix_to_nt_time(&info3->base.last_password_change, info->pass_last_set_time);
+       unix_to_nt_time(&info3->base.allow_password_change,
+                       info->pass_can_change_time);
+       unix_to_nt_time(&info3->base.force_password_change,
+                       info->pass_must_change_time);
 
        if (info->account_name) {
                info3->base.account_name.string =