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

obnox at samba.org obnox at samba.org
Sun Sep 30 09:15:05 GMT 2007


Author: obnox
Date: 2007-09-30 09:15:04 +0000 (Sun, 30 Sep 2007)
New Revision: 25439

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

Log:
Extend the SHOW_SEQUENCE test somewhat to walk the list of trusted domains.

Michael


Modified:
   branches/SAMBA_4_0/source/torture/winbind/struct_based.c


Changeset:
Modified: branches/SAMBA_4_0/source/torture/winbind/struct_based.c
===================================================================
--- branches/SAMBA_4_0/source/torture/winbind/struct_based.c	2007-09-30 09:08:10 UTC (rev 25438)
+++ branches/SAMBA_4_0/source/torture/winbind/struct_based.c	2007-09-30 09:15:04 UTC (rev 25439)
@@ -589,9 +589,15 @@
 {
 	struct winbindd_request req;
 	struct winbindd_response rep;
+	bool ok;
+	struct torture_trust_domain *domlist = NULL;
+	int i;
 
+
 	torture_comment(torture, "Running WINBINDD_SHOW_SEQUENCE (struct based)\n");
 
+	torture_comment(torture, " - Running WINBINDD_SHOW_SEQUENCE without domain:\n");
+
 	ZERO_STRUCT(req);
 	ZERO_STRUCT(rep);
 
@@ -601,6 +607,22 @@
 		torture_comment(torture, "%s", (char *)rep.extra_data.data);
 	}
 
+	torture_comment(torture, " - getting list of trusted domains\n");
+	ok = get_trusted_domains(torture, &domlist);
+	torture_assert(torture, ok, "failed to get trust list");
+
+	for (i=0; domlist[i].netbios_name; i++) {
+		ZERO_STRUCT(req);
+		ZERO_STRUCT(rep);
+		fstrcpy(req.domain_name, domlist[i].netbios_name);
+		torture_comment(torture, " - Running WINBINDD_SHOW_SEQUENCE "
+				"for domain %s:\n", req.domain_name);
+		DO_STRUCT_REQ_REP(WINBINDD_SHOW_SEQUENCE, &req, &rep);
+		if (rep.extra_data.data) {
+			torture_comment(torture, "%s", (char *)rep.extra_data.data);
+		}
+	}
+
 	return true;
 }
 



More information about the samba-cvs mailing list