s3:auth: wbcAuthenticateEx gives unix times (bug #9625)
commit009cf6e9ceaef91805a8a7573090d051f8f74a92
authorStefan Metzmacher <metze@samba.org>
Thu, 31 Jan 2013 12:39:42 +0000 (31 13:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Feb 2013 17:42:42 +0000 (1 18:42 +0100)
tree933a7b29749f564bdbe2effb2d4b489729d47a50
parentcf27c2fbb6e7422cb962f4c63a53515321c65a70
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>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Fri Feb  1 18:42:42 CET 2013 on sn-devel-104
source3/auth/server_info.c