diff options
author | Volker Lendecke <vl@samba.org> | 2010-12-18 16:02:09 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2010-12-19 23:25:06 +0100 |
commit | c6b5136f02fc15618dc5fc0d0560ef4b3901d123 (patch) | |
tree | 32e899b0956d8e6db1e99ffd4fdce48eafbebd84 /source3/auth | |
parent | 92e138f920126f417a20bc49aebe0c3cbab5056d (diff) | |
download | samba-c6b5136f02fc15618dc5fc0d0560ef4b3901d123.tar.gz samba-c6b5136f02fc15618dc5fc0d0560ef4b3901d123.tar.bz2 samba-c6b5136f02fc15618dc5fc0d0560ef4b3901d123.zip |
s3: Fix bug 7066 -- wbcAuthenticateEx gives unix times
We might eventually want to change this, but right now we get unix times
out of the winbind pipe struct
Diffstat (limited to 'source3/auth')
-rw-r--r-- | source3/auth/server_info.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source3/auth/server_info.c b/source3/auth/server_info.c index d288a0c97c..01c7a96cdc 100644 --- a/source3/auth/server_info.c +++ b/source3/auth/server_info.c @@ -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 = |