svn commit: samba r20115 - in branches/SAMBA_4_0/source/torture/rpc: .

metze at samba.org metze at samba.org
Tue Dec 12 07:53:12 GMT 2006


Author: metze
Date: 2006-12-12 07:53:12 +0000 (Tue, 12 Dec 2006)
New Revision: 20115

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

Log:
from Julien Kerihuel <j.kerihuel at openchange.org>, thanks!:

   Here is a patch that adds a torture:dc_binding parametric option to 
   torture_create_testuser in testjoin.c. This patch is used in OpenChange 
   torture tests when the AD is different from the Exchange Server. This generic 
   option could also be used for later 'member server' tests in Samba4.

metze
Modified:
   branches/SAMBA_4_0/source/torture/rpc/testjoin.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/rpc/testjoin.c
===================================================================
--- branches/SAMBA_4_0/source/torture/rpc/testjoin.c	2006-12-12 07:46:06 UTC (rev 20114)
+++ branches/SAMBA_4_0/source/torture/rpc/testjoin.c	2006-12-12 07:53:12 UTC (rev 20115)
@@ -125,6 +125,7 @@
 	int policy_min_pw_len = 0;
 	struct test_join *join;
 	char *random_pw;
+	const char *dc_binding = lp_parm_string(-1, "torture", "dc_binding");
 
 	join = talloc(NULL, struct test_join);
 	if (join == NULL) {
@@ -134,10 +135,19 @@
 	ZERO_STRUCTP(join);
 
 	printf("Connecting to SAMR\n");
-
-	status = torture_rpc_connection(join, 
-					&join->p, 
-					&dcerpc_table_samr);
+	
+	if (dc_binding) {
+		status = dcerpc_pipe_connect(join,
+					     &join->p,
+					     dc_binding,
+					     &dcerpc_table_samr,
+					     cmdline_credentials, NULL);
+					     
+	} else {
+		status = torture_rpc_connection(join, 
+						&join->p, 
+						&dcerpc_table_samr);
+	}
 	if (!NT_STATUS_IS_OK(status)) {
 		return NULL;
 	}



More information about the samba-cvs mailing list