svn commit: samba r10506 - in branches/SAMBA_4_0/source/winbind: .

metze at samba.org metze at samba.org
Mon Sep 26 13:02:47 GMT 2005


Author: metze
Date: 2005-09-26 13:02:47 +0000 (Mon, 26 Sep 2005)
New Revision: 10506

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10506

Log:
set return data correctly

metze
Modified:
   branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c


Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c	2005-09-26 11:48:52 UTC (rev 10505)
+++ branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c	2005-09-26 13:02:47 UTC (rev 10506)
@@ -68,6 +68,14 @@
 	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;



More information about the samba-cvs mailing list