summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-03-11 15:11:29 +0100
committerStefan Metzmacher <metze@samba.org>2010-03-11 15:13:52 +0100
commit0d6c19b976c45eaf801fb28b89db25ddb29d5826 (patch)
treead7d9e1bd5024191d1f5cb2747489bb88ced0697 /source4/torture/rpc
parent4585ea06a565920ac109cf1b3890e48a3d975093 (diff)
downloadsamba-0d6c19b976c45eaf801fb28b89db25ddb29d5826.tar.gz
samba-0d6c19b976c45eaf801fb28b89db25ddb29d5826.tar.bz2
samba-0d6c19b976c45eaf801fb28b89db25ddb29d5826.zip
RPC-DSSYNC: handle DCERPC_FAULT_OP_RNG_ERROR as not supported for DsGetNT4ChangeLog()
metze
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/dssync.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/torture/rpc/dssync.c b/source4/torture/rpc/dssync.c
index aeb4f2a282..3918bdd24d 100644
--- a/source4/torture/rpc/dssync.c
+++ b/source4/torture/rpc/dssync.c
@@ -1022,7 +1022,11 @@ static bool test_FetchNT4Data(struct torture_context *tctx,
} else if (!NT_STATUS_IS_OK(status)) {
const char *errstr = nt_errstr(status);
if (NT_STATUS_EQUAL(status, NT_STATUS_NET_WRITE_FAULT)) {
- errstr = dcerpc_errstr(ctx, ctx->new_dc.drsuapi.drs_pipe->last_fault_code);
+ struct dcerpc_pipe *p = ctx->new_dc.drsuapi.drs_pipe;
+ if (p->last_fault_code == DCERPC_FAULT_OP_RNG_ERROR) {
+ torture_skip(tctx, "DsGetNT4ChangeLog not supported by target server");
+ }
+ errstr = dcerpc_errstr(ctx, p->last_fault_code);
}
torture_fail(tctx,
talloc_asprintf(tctx, "dcerpc_drsuapi_DsGetNT4ChangeLog failed - %s\n",