summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2005-09-26 13:02:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:57 -0500
commit4b30e2bff77c42d944818979b728756c09be568c (patch)
tree84d841950dfa0841698e0bdff2869bfe595ff111 /source4
parentab4d635b92b116b02b88843b4ec4f5b7517bab1a (diff)
downloadsamba-4b30e2bff77c42d944818979b728756c09be568c.tar.gz
samba-4b30e2bff77c42d944818979b728756c09be568c.tar.bz2
samba-4b30e2bff77c42d944818979b728756c09be568c.zip
r10506: set return data correctly
metze (This used to be commit 37b5f6b41719048fbc0530eed942caebe9e520a9)
Diffstat (limited to 'source4')
-rw-r--r--source4/winbind/wb_samba3_cmd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c
index 5f79e74a92..01f284d72c 100644
--- a/source4/winbind/wb_samba3_cmd.c
+++ b/source4/winbind/wb_samba3_cmd.c
@@ -68,6 +68,14 @@ static void wbsrv_samba3_check_machacc_reply(struct composite_context *action)
NTSTATUS status;
status = wb_finddcs_recv(action, s3call);
+
+ s3call->response.data.auth.nt_status = NT_STATUS_V(status);
+ strncpy(s3call->response.data.auth.nt_status_string, nt_errstr(status),
+ sizeof(s3call->response.data.auth.nt_status_string)-1);
+ strncpy(s3call->response.data.auth.error_string, nt_errstr(status),
+ sizeof(s3call->response.data.auth.error_string)-1);
+ s3call->response.data.auth.pam_error = nt_status_to_pam(status);
+
if (NT_STATUS_IS_OK(status)) {
DEBUG(10, ("Got name %s\n", state->io->out.dcs[0].name));
s3call->response.result = WINBINDD_OK;