diff options
author | Andrew Bartlett <abartlet@samba.org> | 2004-11-05 12:46:00 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:05:32 -0500 |
commit | 9ced859ac88703235b646a33bdca2d3bdc6a07d8 (patch) | |
tree | 9730071cc958b4432426d0a76e2747754be7ce15 /source4 | |
parent | 2b250bf7fd30ec877f3e2c0f8d5c3073ab2ac96e (diff) | |
download | samba-9ced859ac88703235b646a33bdca2d3bdc6a07d8.tar.gz samba-9ced859ac88703235b646a33bdca2d3bdc6a07d8.tar.bz2 samba-9ced859ac88703235b646a33bdca2d3bdc6a07d8.zip |
r3555: Fix auth_winbind to work with the new auth_util conversion code.
Andrew Bartlett
(This used to be commit 3215f1c6ce9ec27affa8a7a6f440ef26ad878eae)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/auth_winbind.c | 18 |
1 files changed, 10 insertions, 8 deletions
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) { |