s4:torture/rpc/samr.c: check for NT_STATUS_RPC_PROCNUM_OUT_OF_RANGE instead of DCERPC...
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 12:13:27 +0000 (14:13 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Apr 2010 07:34:05 +0000 (09:34 +0200)
metze

source4/torture/rpc/samr.c

index 094e10c5973c0ce17008ca59aa85bdea4009c3d7..c44c4eff8d2c96b1dc25300e78976e58ef8d2f24 100644 (file)
@@ -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");