diff options
author | Michael Adam <obnox@samba.org> | 2007-09-26 16:46:20 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 15:07:15 -0500 |
commit | ff81112efb7236e7432f6838f7a40af4a7cf16bd (patch) | |
tree | 73c042a4cea550d95e909411140fdddfd5f689ac | |
parent | 3bcf42774f55c22eac1f6e4ec75bd998486d12d2 (diff) | |
download | samba-ff81112efb7236e7432f6838f7a40af4a7cf16bd.tar.gz samba-ff81112efb7236e7432f6838f7a40af4a7cf16bd.tar.bz2 samba-ff81112efb7236e7432f6838f7a40af4a7cf16bd.zip |
r25350: Add an initial winbindd list-users test.
Michael
(This used to be commit 01bd81362fe7e26361e27a1e2ea3cfb2b78cfe00)
-rw-r--r-- | source4/torture/winbind/struct_based.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c index 924d98202d..61abfa8a6a 100644 --- a/source4/torture/winbind/struct_based.c +++ b/source4/torture/winbind/struct_based.c @@ -555,6 +555,21 @@ static bool torture_winbind_struct_dsgetdcname(struct torture_context *torture) return true; } +static bool torture_winbind_struct_list_users(struct torture_context *torture) +{ + struct winbindd_request req; + struct winbindd_response rep; + + torture_comment(torture, "Running WINBINDD_LIST_USERS (struct based)\n"); + + ZERO_STRUCT(req); + ZERO_STRUCT(rep); + + DO_STRUCT_REQ_REP(WINBINDD_LIST_USERS, &req, &rep); + + return true; +} + struct torture_suite *torture_winbind_struct_init(void) { struct torture_suite *suite = torture_suite_create(talloc_autofree_context(), "STRUCT"); @@ -570,6 +585,7 @@ struct torture_suite *torture_winbind_struct_init(void) torture_suite_add_simple_test(suite, "DOMAIN_INFO", torture_winbind_struct_domain_info); 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); suite->description = talloc_strdup(suite, "WINBIND - struct based protocol tests"); |