1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

r10506: set return data correctly

metze
(This used to be commit 37b5f6b41719048fbc0530eed942caebe9e520a9)
This commit is contained in:
Stefan Metzmacher 2005-09-26 13:02:47 +00:00 committed by Gerald (Jerry) Carter
parent ab4d635b92
commit 4b30e2bff7

View 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;