r10506: set return data correctly
authorStefan Metzmacher <metze@samba.org>
Mon, 26 Sep 2005 13:02:47 +0000 (13:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:57 +0000 (13:38 -0500)
metze

source/winbind/wb_samba3_cmd.c

index 5f79e74a92678015f86d99c057e874d661edf98b..01f284d72cc5a2953244f87e966decf2d1287b22 100644 (file)
@@ -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;