From d487cca5cb39cfd4b41b83ae32f07d2b7deb6cf1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 1 Jan 2005 01:32:01 +0000 Subject: r4461: finished the remaining information levels in the DSSETUP pipe. The pipe is now complete! The only glitch is that I am returning DS_ROLE_MEMBER_SERVER when I should be returning DS_ROLE_PRIMARY_DC. This is needed for the moment or ACL editing doesn't work from w2k3. Once we have some more ADS calls we should be able to fix this. (This used to be commit 6566dc2805a9f6473ebab70b0dbd381c4dbd42c8) --- source4/torture/rpc/dssetup.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'source4/torture') 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) -- cgit