summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-12-09 11:21:08 +0100
committerGünther Deschner <gd@samba.org>2010-02-08 14:31:16 +0100
commitaa72950b3d08c1964cd734e7b49ef43c959a2fcc (patch)
treec06a1098dd0e39bb7a243131c5a10bacdb51d1a7 /source4/torture
parenta8d6549cccb375c95a047fea68f5af2a186979ea (diff)
downloadsamba-aa72950b3d08c1964cd734e7b49ef43c959a2fcc.tar.gz
samba-aa72950b3d08c1964cd734e7b49ef43c959a2fcc.tar.bz2
samba-aa72950b3d08c1964cd734e7b49ef43c959a2fcc.zip
s4-smbtorture: skip over ValidatePassword if DCERPC error is returned.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/samr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/torture/rpc/samr.c b/source4/torture/rpc/samr.c
index 4ab4a2cdc7..62716da0cd 100644
--- a/source4/torture/rpc/samr.c
+++ b/source4/torture/rpc/samr.c
@@ -7661,6 +7661,10 @@ static bool test_samr_ValidatePassword(struct dcerpc_pipe *p, struct torture_con
for (i=0; passwords[i]; i++) {
req.req3.password.string = passwords[i];
status = dcerpc_samr_ValidatePassword(p, tctx, &r);
+ if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT) &&
+ p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+ torture_skip(tctx, "ValidatePassword not supported by server\n");
+ }
torture_assert_ntstatus_ok(tctx, status, "samr_ValidatePassword");
torture_comment(tctx, "Server %s password '%s' with code %i\n",
repp->ctr3.status==SAMR_VALIDATION_STATUS_SUCCESS?"allowed":"refused",