summaryrefslogtreecommitdiffstats
path: root/source/nsswitch/winbindd_misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/nsswitch/winbindd_misc.c')
-rw-r--r--source/nsswitch/winbindd_misc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/nsswitch/winbindd_misc.c b/source/nsswitch/winbindd_misc.c
index 5678bdaa5af..c71776f7096 100644
--- a/source/nsswitch/winbindd_misc.c
+++ b/source/nsswitch/winbindd_misc.c
@@ -88,7 +88,10 @@ enum winbindd_result winbindd_check_machine_acct(struct winbindd_cli_state *stat
"good" : "bad"));
done:
- state->response.data.num_entries = NT_STATUS_V(result);
+ state->response.data.auth.nt_status = NT_STATUS_V(result);
+ fstrcpy(state->response.data.auth.nt_status_string, get_nt_error_msg(result));
+ fstrcpy(state->response.data.auth.error_string, get_nt_error_msg(result));
+ /*state->response.data.auth.pam_error = nt_status_to_pam(result);*/
return WINBINDD_OK;
}