summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/alter_context.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-01-09 11:32:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:08:34 -0500
commite74b3ed6f195e66cb5fa0f387cea0f59fb66711b (patch)
tree0e57da2f311045035ff0f6d63a4d016fecb3adc1 /source4/torture/rpc/alter_context.c
parentab9ca559269f9ef921eb3e6ec3007d2e249c6cfe (diff)
downloadsamba-e74b3ed6f195e66cb5fa0f387cea0f59fb66711b.tar.gz
samba-e74b3ed6f195e66cb5fa0f387cea0f59fb66711b.tar.bz2
samba-e74b3ed6f195e66cb5fa0f387cea0f59fb66711b.zip
r4618: - tidied up the alter_context client code a bit
- there is no alter_nak or alter_ack packet, its all done in an alter_response - auto-allocated the contex_ids - tried to fix up the dcom code to work again with alter_context. Jelmer, please take a look :) (This used to be commit dd1c54add8884376601f2f8a56c01bfb8add030c)
Diffstat (limited to 'source4/torture/rpc/alter_context.c')
-rw-r--r--source4/torture/rpc/alter_context.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source4/torture/rpc/alter_context.c b/source4/torture/rpc/alter_context.c
index d10604fa04..2c6f209404 100644
--- a/source4/torture/rpc/alter_context.c
+++ b/source4/torture/rpc/alter_context.c
@@ -49,12 +49,19 @@ BOOL torture_rpc_alter_context(void)
}
printf("Opening secondary DSSETUP context\n");
- status = dcerpc_secondary_context(p, &p2, 1, DCERPC_DSSETUP_UUID, DCERPC_DSSETUP_VERSION);
+ status = dcerpc_secondary_context(p, &p2, DCERPC_DSSETUP_UUID, DCERPC_DSSETUP_VERSION);
if (!NT_STATUS_IS_OK(status)) {
printf("dcerpc_alter_context failed - %s\n", nt_errstr(status));
return False;
}
+ printf("Opening bad secondary connection\n");
+ status = dcerpc_secondary_context(p, &p2, DCERPC_DSSETUP_UUID, DCERPC_DSSETUP_VERSION+100);
+ if (NT_STATUS_IS_OK(status)) {
+ printf("dcerpc_alter_context with wrong version should fail\n");
+ return False;
+ }
+
printf("testing DSSETUP pipe operations\n");
ret &= test_DsRoleGetPrimaryDomainInformation(p2, mem_ctx);