diff options
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/dssetup.c | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/source4/torture/rpc/dssetup.c b/source4/torture/rpc/dssetup.c index 1819c523a5..7e63243e8a 100644 --- a/source4/torture/rpc/dssetup.c +++ b/source4/torture/rpc/dssetup.c @@ -28,18 +28,23 @@ static BOOL test_RolerGetPrimaryDomainInformation(struct dcerpc_pipe *p, TALLOC_ { struct ds_RolerGetPrimaryDomainInformation r; NTSTATUS status; + BOOL ret = True; + int i; printf("\ntesting RolerGetPrimaryDomainInformation\n"); - r.in.level = 1; + for (i=DS_BASIC_INFORMATION;i<=DS_ROLE_OP_STATUS;i++) { + r.in.level = i; - status = dcerpc_ds_RolerGetPrimaryDomainInformation(p, mem_ctx, &r); - if (!NT_STATUS_IS_OK(status)) { - printf("RolerGetPrimaryDomainInformation failed - %s\n", nt_errstr(status)); - return False; + status = dcerpc_ds_RolerGetPrimaryDomainInformation(p, mem_ctx, &r); + if (!NT_STATUS_IS_OK(status)) { + printf("RolerGetPrimaryDomainInformation level %d failed - %s\n", + i, nt_errstr(status)); + ret = False; + } } - return True; + return ret; } BOOL torture_rpc_dssetup(void) |