From 2ec59185b9cfd7954b8433bacd74284a4ae72d7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 21 Jul 2015 22:38:25 +0200 Subject: [PATCH] s4-torture: fix test for RemoteActivation. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Jeremy Allison --- source4/torture/rpc/oxidresolve.c | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/source4/torture/rpc/oxidresolve.c b/source4/torture/rpc/oxidresolve.c index e3fa80b3c6b..fa21177b1d0 100644 --- a/source4/torture/rpc/oxidresolve.c +++ b/source4/torture/rpc/oxidresolve.c @@ -39,6 +39,12 @@ static bool test_RemoteActivation(struct torture_context *tctx, uint16_t protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID }; struct dcerpc_pipe *p; struct dcerpc_binding_handle *b; + struct ORPCTHAT that; + struct DUALSTRINGARRAY *pdsaOxidBindings; + uint32_t AuthnHint; + struct COMVERSION ServerVersion; + WERROR hr; + struct MInterfacePointer *ifaces; status = torture_rpc_connection(tctx, &p, &ndr_table_IRemoteActivation); @@ -48,7 +54,8 @@ static bool test_RemoteActivation(struct torture_context *tctx, } b = p->binding_handle; - ZERO_STRUCT(r.in); + ZERO_STRUCT(r); + r.in.this_object.version.MajorVersion = 5; r.in.this_object.version.MinorVersion = 1; r.in.this_object.cid = GUID_random(); @@ -59,8 +66,15 @@ static bool test_RemoteActivation(struct torture_context *tctx, r.in.Interfaces = 1; iids[0] = IUnknown_uuid; r.in.pIIDs = iids; + + r.out.that = &that; r.out.pOxid = oxid; + r.out.pdsaOxidBindings = &pdsaOxidBindings; r.out.ipidRemUnknown = oid; + r.out.AuthnHint = &AuthnHint; + r.out.ServerVersion = &ServerVersion; + r.out.hr = &hr; + r.out.ifaces = &ifaces; status = dcerpc_RemoteActivation_r(b, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "RemoteActivation failed"); -- 2.34.1