summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-01 01:32:01 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:07:53 -0500
commitd487cca5cb39cfd4b41b83ae32f07d2b7deb6cf1 (patch)
tree2b12ebffd90f3f9b6ba89953406ed490090bf0a8 /source4/torture/rpc
parent740ee4a8977512c03800ef88603cf65fd044443b (diff)
downloadsamba-d487cca5cb39cfd4b41b83ae32f07d2b7deb6cf1.tar.gz
samba-d487cca5cb39cfd4b41b83ae32f07d2b7deb6cf1.tar.bz2
samba-d487cca5cb39cfd4b41b83ae32f07d2b7deb6cf1.zip
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)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/dssetup.c17
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)