summaryrefslogtreecommitdiff
path: root/source4/torture/winbind
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-30 09:19:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 15:07:33 -0500
commitca61e8668c4397f053e8f8e7de7ab15cd42fe2b7 (patch)
treeaf73dd72eae3c08e74ac9fa1fc7797f2568e90e1 /source4/torture/winbind
parent07f20e3f57660ac916bbc46eb39163ac5f06f94d (diff)
downloadsamba-ca61e8668c4397f053e8f8e7de7ab15cd42fe2b7.tar.gz
samba-ca61e8668c4397f053e8f8e7de7ab15cd42fe2b7.tar.bz2
samba-ca61e8668c4397f053e8f8e7de7ab15cd42fe2b7.zip
r25440: Add simple WINBINDD_SETPWENT and WINBINDD_ENDPWENT tests.
WINBINDD_GETPWENT is to follow. Michael (This used to be commit a989a7e40b56c988f3710014fcf50aca917d7de5)
Diffstat (limited to 'source4/torture/winbind')
-rw-r--r--source4/torture/winbind/struct_based.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index 4add3563bd..0d30c2f072 100644
--- a/source4/torture/winbind/struct_based.c
+++ b/source4/torture/winbind/struct_based.c
@@ -626,6 +626,36 @@ static bool torture_winbind_struct_show_sequence(struct torture_context *torture
return true;
}
+static bool torture_winbind_struct_setpwent(struct torture_context *torture)
+{
+ struct winbindd_request req;
+ struct winbindd_response rep;
+
+ torture_comment(torture, "Running WINBINDD_SETPWENT (struct based)\n");
+
+ ZERO_STRUCT(req);
+ ZERO_STRUCT(rep);
+
+ DO_STRUCT_REQ_REP(WINBINDD_SETPWENT, &req, &rep);
+
+ return true;
+}
+
+static bool torture_winbind_struct_endpwent(struct torture_context *torture)
+{
+ struct winbindd_request req;
+ struct winbindd_response rep;
+
+ torture_comment(torture, "Running WINBINDD_ENDPWENT (struct based)\n");
+
+ ZERO_STRUCT(req);
+ ZERO_STRUCT(rep);
+
+ DO_STRUCT_REQ_REP(WINBINDD_ENDPWENT, &req, &rep);
+
+ return true;
+}
+
struct torture_suite *torture_winbind_struct_init(void)
{
struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT");
@@ -644,6 +674,8 @@ struct torture_suite *torture_winbind_struct_init(void)
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);
+ torture_suite_add_simple_test(suite, "SETPWENT", torture_winbind_struct_setpwent);
+ torture_suite_add_simple_test(suite, "ENDPWENT", torture_winbind_struct_endpwent);
suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests");