summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-26 16:53:35 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:15 -0500
commit555302bbdfa3fb9eed981c27b2ba0a0e0934ed08 (patch)
tree86ea4e2551a4c4013949c5d8183228b020f4e5c2 /source4
parentca49e5aabfc606aaf70bca30c9a4a965ff248b22 (diff)
downloadsamba-555302bbdfa3fb9eed981c27b2ba0a0e0934ed08.tar.gz
samba-555302bbdfa3fb9eed981c27b2ba0a0e0934ed08.tar.bz2
samba-555302bbdfa3fb9eed981c27b2ba0a0e0934ed08.zip
r25352: Add a basic WINBINDD_LIST_GROUPS test.
Michael (This used to be commit 1d051c550c640300e02fa947738e192a4dd4d2ff)
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/winbind/struct_based.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index 61abfa8a6a..5fc941f45a 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -570,6 +570,21 @@ static bool torture_winbind_struct_list_users(struct torture_context *torture)
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 @@ struct torture_suite *torture_winbind_struct_init(void)
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");