diff options
author | Matthieu Patou <mat@matws.net> | 2009-08-01 14:02:58 +0400 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-08-03 14:08:15 +1000 |
commit | c50dff4ccea48de81815e0b92066b89b2bf3ddec (patch) | |
tree | 9cce5deae410f6b9fd843e742a1537d17716701e /source4/auth | |
parent | e21519403318acea3424516afc12730fe9e9d432 (diff) | |
download | samba-c50dff4ccea48de81815e0b92066b89b2bf3ddec.tar.gz samba-c50dff4ccea48de81815e0b92066b89b2bf3ddec.tar.xz samba-c50dff4ccea48de81815e0b92066b89b2bf3ddec.zip |
Return infinite time for last last logoff when last logoff = 0
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/auth_sam_reply.c | 2 | ||||
-rw-r--r-- | source4/auth/sam.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/auth/auth_sam_reply.c b/source4/auth/auth_sam_reply.c index dfa76234b4b..88eb857eb3a 100644 --- a/source4/auth/auth_sam_reply.c +++ b/source4/auth/auth_sam_reply.c @@ -38,7 +38,7 @@ NTSTATUS auth_convert_server_info_sambaseinfo(TALLOC_CTX *mem_ctx, sam->domain_sid->num_auths--; sam->last_logon = server_info->last_logon; - sam->last_logoff = server_info->last_logoff; + sam->last_logoff = server_info->last_logoff; sam->acct_expiry = server_info->acct_expiry; sam->last_password_change = server_info->last_password_change; sam->allow_password_change = server_info->allow_password_change; diff --git a/source4/auth/sam.c b/source4/auth/sam.c index 6285c31e5ce..c8591b39275 100644 --- a/source4/auth/sam.c +++ b/source4/auth/sam.c @@ -442,7 +442,7 @@ _PUBLIC_ NTSTATUS authsam_make_server_info(TALLOC_CTX *mem_ctx, NT_STATUS_HAVE_NO_MEMORY_AND_FREE(server_info->logon_server, tmp_ctx); server_info->last_logon = samdb_result_nttime(msg, "lastLogon", 0); - server_info->last_logoff = samdb_result_nttime(msg, "lastLogoff", 0); + server_info->last_logoff = samdb_result_last_logoff(msg); server_info->acct_expiry = samdb_result_account_expires(msg); server_info->last_password_change = samdb_result_nttime(msg, "pwdLastSet", 0); |