From 8870daeb8d93e45320eb5bcfa58544d520dc7c69 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 21 Oct 2011 16:10:43 -0400 Subject: idl: Improve MS-PAC IDL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change some misleading variable names to reflect the actual function. Add missing field name/types previously marked as unkown. Signed-off-by: Günther Deschner Autobuild-User: Günther Deschner Autobuild-Date: Mon Oct 24 19:19:28 CEST 2011 on sn-devel-104 --- source4/auth/ntlm/auth_winbind.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'source4/auth/ntlm') diff --git a/source4/auth/ntlm/auth_winbind.c b/source4/auth/ntlm/auth_winbind.c index 63827ef755..34fe6f870c 100644 --- a/source4/auth/ntlm/auth_winbind.c +++ b/source4/auth/ntlm/auth_winbind.c @@ -45,9 +45,9 @@ static NTSTATUS get_info3_from_wbcAuthUserInfo(TALLOC_CTX *mem_ctx, user_sid = (struct dom_sid *)(void *)&info->sids[0].sid; group_sid = (struct dom_sid *)(void *)&info->sids[1].sid; - info3->base.last_logon = info->logon_time; - info3->base.last_logoff = info->logoff_time; - info3->base.acct_expiry = info->kickoff_time; + info3->base.logon_time = info->logon_time; + info3->base.logoff_time = info->logoff_time; + info3->base.kickoff_time = 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; @@ -66,7 +66,7 @@ static NTSTATUS get_info3_from_wbcAuthUserInfo(TALLOC_CTX *mem_ctx, info->home_drive); info3->base.logon_server.string = talloc_strdup(mem_ctx, info->logon_server); - info3->base.domain.string = talloc_strdup(mem_ctx, + info3->base.logon_domain.string = talloc_strdup(mem_ctx, info->domain_name); info3->base.logon_count = info->logon_count; @@ -77,7 +77,11 @@ static NTSTATUS get_info3_from_wbcAuthUserInfo(TALLOC_CTX *mem_ctx, memcpy(info3->base.LMSessKey.key, info->lm_session_key, sizeof(info3->base.LMSessKey.key)); info3->base.acct_flags = info->acct_flags; - memset(info3->base.unknown, 0, sizeof(info3->base.unknown)); + info3->base.sub_auth_status = 0; + info3->base.last_successful_logon = 0; + info3->base.last_failed_logon = 0; + info3->base.failed_logon_count = 0; + info3->base.reserved = 0; if (info->num_sids < 2) { return NT_STATUS_INVALID_PARAMETER; -- cgit