summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-15 09:18:02 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-15 09:18:02 +0000
commit4cadb043d7a99f835a5893283b63bbe13281e665 (patch)
treea69bd4bd2c60f6a4ce5a132784e70156dd340795 /source4/torture/rpc
parent1e9ea7fe86a0d826cbb013c40e418a3927d01ef1 (diff)
downloadsamba-4cadb043d7a99f835a5893283b63bbe13281e665.tar.gz
samba-4cadb043d7a99f835a5893283b63bbe13281e665.tar.bz2
samba-4cadb043d7a99f835a5893283b63bbe13281e665.zip
added another 11 levels of QueryDomainInfo
(This used to be commit 219cfabaeb38c5fd2fcabd1e6f05da206bab21e4)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/samr.c25
1 files changed, 16 insertions, 9 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 431372323e..b66e86815a 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -26,19 +26,26 @@ static BOOL test_QueryDomainInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
{
NTSTATUS status;
struct samr_QueryDomainInfo r;
+ uint16 levels[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13};
+ int i;
+ BOOL ret = True;
- printf("Testing QueryDomainInfo\n");
+ for (i=0;i<ARRAY_SIZE(levels);i++) {
+ printf("Testing QueryDomainInfo level %u\n", levels[i]);
- r.in.handle = handle;
- r.in.level = 1;
+ r.in.handle = handle;
+ r.in.level = levels[i];
- status = dcerpc_samr_QueryDomainInfo(p, mem_ctx, &r);
- if (!NT_STATUS_IS_OK(status)) {
- printf("QueryDomainInfo failed - %s\n", nt_errstr(status));
- return False;
- }
+ status = dcerpc_samr_QueryDomainInfo(p, mem_ctx, &r);
+ if (!NT_STATUS_IS_OK(status)) {
+ printf("QueryDomainInfo level %u failed - %s\n",
+ r.in.level, nt_errstr(status));
+ ret = False;
+ continue;
+ }
- NDR_PRINT_UNION_DEBUG(samr_DomainInfo, r.in.level, r.out.info);
+ NDR_PRINT_UNION_DEBUG(samr_DomainInfo, r.in.level, r.out.info);
+ }
return True;
}