From 9ced859ac88703235b646a33bdca2d3bdc6a07d8 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 5 Nov 2004 12:46:00 +0000 Subject: r3555: Fix auth_winbind to work with the new auth_util conversion code. Andrew Bartlett (This used to be commit 3215f1c6ce9ec27affa8a7a6f440ef26ad878eae) --- source4/auth/auth_winbind.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'source4/auth') diff --git a/source4/auth/auth_winbind.c b/source4/auth/auth_winbind.c index 986cadb86f..2d8cdb72c9 100644 --- a/source4/auth/auth_winbind.c +++ b/source4/auth/auth_winbind.c @@ -104,14 +104,16 @@ static NTSTATUS check_winbind_security(const struct auth_context *auth_context, } if (result == NSS_STATUS_SUCCESS && response.extra_data) { - if (NT_STATUS_IS_OK(nt_status)) { - if (NT_STATUS_IS_OK(nt_status = get_info3_from_ndr(mem_ctx, &response, &info3))) { - nt_status = - make_server_info_info3(mem_ctx, - user_info->internal_username.str, - server_info, - &info3); - } + nt_status = get_info3_from_ndr(mem_ctx, &response, &info3); + if (NT_STATUS_IS_OK(nt_status)) { + union netr_Validation validation; + validation.sam3 = &info3; + nt_status = + make_server_info_netlogon_validation(mem_ctx, + user_info->internal_username.str, + server_info, + 3, + &validation); } SAFE_FREE(response.extra_data); } else if (result == NSS_STATUS_SUCCESS && !response.extra_data) { -- cgit