svn commit: samba r11404 - in branches/SAMBA_4_0/source: include libcli/util torture/rpc

abartlet at samba.org abartlet at samba.org
Mon Oct 31 02:46:16 GMT 2005


Author: abartlet
Date: 2005-10-31 02:46:15 +0000 (Mon, 31 Oct 2005)
New Revision: 11404

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

Log:
Another torture test and a new WERR.

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/include/doserr.h
   branches/SAMBA_4_0/source/libcli/util/doserr.c
   branches/SAMBA_4_0/source/torture/rpc/netlogon.c


Changeset:
Modified: branches/SAMBA_4_0/source/include/doserr.h
===================================================================
--- branches/SAMBA_4_0/source/include/doserr.h	2005-10-31 02:13:02 UTC (rev 11403)
+++ branches/SAMBA_4_0/source/include/doserr.h	2005-10-31 02:46:15 UTC (rev 11404)
@@ -187,6 +187,7 @@
 #define WERR_NO_MORE_ITEMS W_ERROR(259)
 #define WERR_MORE_DATA W_ERROR(234)
 #define WERR_CAN_NOT_COMPLETE W_ERROR(1003)
+#define WERR_INVALID_COMPUTERNAME W_ERROR(1210)
 #define WERR_INVALID_DOMAINNAME W_ERROR(1212)
 #define WERR_UNKNOWN_REVISION W_ERROR(1305)
 #define WERR_REVISION_MISMATCH W_ERROR(1306)

Modified: branches/SAMBA_4_0/source/libcli/util/doserr.c
===================================================================
--- branches/SAMBA_4_0/source/libcli/util/doserr.c	2005-10-31 02:13:02 UTC (rev 11403)
+++ branches/SAMBA_4_0/source/libcli/util/doserr.c	2005-10-31 02:46:15 UTC (rev 11404)
@@ -72,6 +72,7 @@
 	{ "WERR_UNKNOWN_REVISION", WERR_UNKNOWN_REVISION },
 	{ "WERR_REVISION_MISMATCH", WERR_REVISION_MISMATCH },
 	{ "WERR_INVALID_OWNER", WERR_INVALID_OWNER },
+	{ "WERR_INVALID_COMPUTERNAME", WERR_INVALID_COMPUTERNAME },
 	{ "WERR_INVALID_DOMAINNAME", WERR_INVALID_DOMAINNAME },
 	{ "WERR_NO_SUCH_USER", WERR_NO_SUCH_USER },
 	{ "WERR_NO_SUCH_DOMAIN", WERR_NO_SUCH_DOMAIN },

Modified: branches/SAMBA_4_0/source/torture/rpc/netlogon.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/netlogon.c	2005-10-31 02:13:02 UTC (rev 11403)
+++ branches/SAMBA_4_0/source/torture/rpc/netlogon.c	2005-10-31 02:46:15 UTC (rev 11404)
@@ -1136,6 +1136,19 @@
 			ret = False;
 		}
 	}
+	r.in.computer_name		= talloc_asprintf(mem_ctx, "\\\\%s", computer_name);
+	printf("Testing netr_DsRGetSiteName with broken computer name: %s\n", r.in.computer_name);
+
+	status = dcerpc_netr_DsRGetSiteName(p, mem_ctx, &r);
+	if (!NT_STATUS_IS_OK(status)) {
+		printf("netr_DsRGetSiteName - %s\n", 
+		       nt_errstr(status));
+		ret = False;
+	} else if (!W_ERROR_EQUAL(r.out.result, WERR_INVALID_COMPUTERNAME)) {
+		printf("netr_DsRGetSiteName - incorrect error return %s, expected %s\n", 
+		       win_errstr(r.out.result), win_errstr(WERR_INVALID_COMPUTERNAME));
+		ret = False;
+	}
 	return ret;
 }
 



More information about the samba-cvs mailing list