summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-28 18:46:55 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:27 -0500
commit6371962e894f5ac9e2816e90957f6e281b9f1ee2 (patch)
tree0395f21aa7f8558da28ed418150971f31f703c23
parent2b771cc5a6b7e751f18833a64b7130726750b0de (diff)
downloadsamba-6371962e894f5ac9e2816e90957f6e281b9f1ee2.tar.gz
samba-6371962e894f5ac9e2816e90957f6e281b9f1ee2.tar.bz2
samba-6371962e894f5ac9e2816e90957f6e281b9f1ee2.zip
r25409: Add SHOW_SEQUENCE winbind test (struct based).
Michael (This used to be commit 080b602e4ff906580e127e66bfbe0373a69d26a9)
-rw-r--r--source4/torture/winbind/struct_based.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index 877742a26d..44e19df6b7 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -585,6 +585,25 @@ static bool torture_winbind_struct_list_groups(struct torture_context *torture)
return true;
}
+static bool torture_winbind_struct_show_sequence(struct torture_context *torture)
+{
+ struct winbindd_request req;
+ struct winbindd_response rep;
+
+ torture_comment(torture, "Running WINBINDD_SHOW_SEQUENCE (struct based)\n");
+
+ ZERO_STRUCT(req);
+ ZERO_STRUCT(rep);
+
+ 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;
+}
+
struct torture_suite *torture_winbind_struct_init(void)
{
struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT");
@@ -602,6 +621,7 @@ struct torture_suite *torture_winbind_struct_init(void)
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);
+ torture_suite_add_simple_test(suite, "SHOW_SEQUENCE", torture_winbind_struct_show_sequence);
suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests");