s3:auth: wbcAuthenticateEx gives unix times (bug #9625)
authorStefan Metzmacher <metze@samba.org>
Thu, 31 Jan 2013 12:39:42 +0000 (13:39 +0100)
committerKarolin Seeger <kseeger@samba.org>
Wed, 6 Feb 2013 09:30:04 +0000 (10:30 +0100)
commit292504a759caf811fb6201e273ffeab20522a991
treec3d57f58aae4c4b3d6d07747aa4db8dc5bc7334c
parent2d8c6de869b88d3c8c9313290ee285c419fec58a
s3:auth: wbcAuthenticateEx gives unix times (bug #9625)

We also need to convert last_logon, last_logoff and acct_expiry
from unix time to nt time.

Otherwise a windows member server will reject clients
using CAP_DYNAMIC_REAUTH or smb2) with STATUS_NETWORK_SESSION_EXPIRED,
if the logoff and kickoff time is expired.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
source3/auth/server_info.c