From bd2bf8990a3bb3bbb91c9d1abcc2d424143ebeb5 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 18 Oct 2007 21:23:25 +0200 Subject: r25699: Add ForceReplication test. Guenther (This used to be commit 0bab602b8e38ca758d3795db3d33a92eb162bb92) --- source4/librpc/idl/frsapi.idl | 4 ++-- source4/torture/rpc/frsapi.c | 37 +++++++++++++++++++++++++++++++++---- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/source4/librpc/idl/frsapi.idl b/source4/librpc/idl/frsapi.idl index bc5c19945d..a5982433e8 100644 --- a/source4/librpc/idl/frsapi.idl +++ b/source4/librpc/idl/frsapi.idl @@ -94,8 +94,8 @@ interface frsapi /* Function 0x0a */ /* not supported before w2k3 sp2 */ WERROR frsapi_ForceReplication( - [in] uint32 unknown1, - [in] uint32 unknown2, + [in,unique] GUID *guid1, + [in,unique] GUID *guid2, [in,unique] [charset(UTF16),string] uint16 *replica_set, [in,unique] [charset(UTF16),string] uint16 *partner_name ); diff --git a/source4/torture/rpc/frsapi.c b/source4/torture/rpc/frsapi.c index a382b1e415..9ea139bf40 100644 --- a/source4/torture/rpc/frsapi.c +++ b/source4/torture/rpc/frsapi.c @@ -24,6 +24,7 @@ #include "torture/rpc/rpc.h" #include "librpc/gen_ndr/ndr_frsapi_c.h" #include "torture/util.h" +#include "param/param.h" static bool test_GetDsPollingIntervalW(struct torture_context *tctx, struct dcerpc_pipe *p, @@ -150,16 +151,17 @@ static bool test_IsPathReplicated(struct torture_context *tctx, FRSAPI_REPLICA_SET_TYPE_DOMAIN, FRSAPI_REPLICA_SET_TYPE_DFS }; int i; + bool ret = true; if (!test_IsPathReplicated_err(tctx, p, NULL, 0, WERR_FRS_INVALID_SERVICE_PARAMETER)) { - return false; + ret = false; } for (i=0; i