diff options
author | Simo Sorce <idra@samba.org> | 2011-10-21 16:10:43 -0400 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-10-24 19:19:28 +0200 |
commit | 8870daeb8d93e45320eb5bcfa58544d520dc7c69 (patch) | |
tree | 918faedfbb2b5f4b618323ee822590b78b4c2d50 /source4/auth | |
parent | f3c25bc6a5f23a248f832fa58c59c16522ac255b (diff) | |
download | samba-8870daeb8d93e45320eb5bcfa58544d520dc7c69.tar.gz samba-8870daeb8d93e45320eb5bcfa58544d520dc7c69.tar.xz samba-8870daeb8d93e45320eb5bcfa58544d520dc7c69.zip |
idl: Improve MS-PAC IDL
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 <gd@samba.org>
Autobuild-User: Günther Deschner <gd@samba.org>
Autobuild-Date: Mon Oct 24 19:19:28 CEST 2011 on sn-devel-104
Diffstat (limited to 'source4/auth')
-rw-r--r-- | source4/auth/ntlm/auth_winbind.c | 14 |
1 files changed, 9 insertions, 5 deletions
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; |