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

obnox at samba.org obnox at samba.org
Wed Sep 26 16:53:35 GMT 2007


Author: obnox
Date: 2007-09-26 16:53:35 +0000 (Wed, 26 Sep 2007)
New Revision: 25352

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

Log:
Add a basic WINBINDD_LIST_GROUPS test.

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-26 16:52:50 UTC (rev 25351)
+++ branches/SAMBA_4_0/source/torture/winbind/struct_based.c	2007-09-26 16:53:35 UTC (rev 25352)
@@ -570,6 +570,21 @@
 	return true;
 }
 
+static bool torture_winbind_struct_list_groups(struct torture_context *torture)
+{
+	struct winbindd_request req;
+	struct winbindd_response rep;
+
+	torture_comment(torture, "Running WINBINDD_LIST_GROUPS (struct based)\n");
+
+	ZERO_STRUCT(req);
+	ZERO_STRUCT(rep);
+
+	DO_STRUCT_REQ_REP(WINBINDD_LIST_GROUPS, &req, &rep);
+
+	return true;
+}
+
 struct torture_suite *torture_winbind_struct_init(void)
 {
 	struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT");
@@ -586,6 +601,7 @@
 	torture_suite_add_simple_test(suite, "GETDCNAME", torture_winbind_struct_getdcname);
 	torture_suite_add_simple_test(suite, "DSGETDCNAME", torture_winbind_struct_dsgetdcname);
 	torture_suite_add_simple_test(suite, "LIST_USERS", torture_winbind_struct_list_users);
+	torture_suite_add_simple_test(suite, "LIST_GROUPS", torture_winbind_struct_list_groups);
 
 	suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests");
 



More information about the samba-cvs mailing list