summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/auth_winbind.c18
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) {