summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-12 14:13:27 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-15 09:34:05 +0200
commit2aba84581616ebf58d3793c1213e2d8c652a2752 (patch)
tree3efb54d2545cf068e797bf84df0129fec0f6cc91 /source4/torture
parent6f4218a4aa097c3b89224bd3cba2d9d2649f28d5 (diff)
downloadsamba-2aba84581616ebf58d3793c1213e2d8c652a2752.tar.gz
samba-2aba84581616ebf58d3793c1213e2d8c652a2752.tar.bz2
samba-2aba84581616ebf58d3793c1213e2d8c652a2752.zip
s4:torture/rpc/samr.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC_FAULT_OP_RNG_ERROR
metze
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 094e10c597..c44c4eff8d 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -7918,8 +7918,7 @@ static bool test_samr_ValidatePassword(struct dcerpc_pipe *p,
req.req3.password.string = passwords[i];
torture_assert_ntstatus_ok(tctx, dcerpc_samr_ValidatePassword_r(b, tctx, &r),
"ValidatePassword failed");
- if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT) &&
- p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+ if (NT_STATUS_EQUAL(status, NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE)) {
torture_skip(tctx, "ValidatePassword not supported by server\n");
}
torture_assert_ntstatus_ok(tctx, r.out.result, "samr_ValidatePassword");