]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-torture: fix test for RemoteActivation.
authorGünther Deschner <gd@samba.org>
Tue, 21 Jul 2015 20:38:25 +0000 (22:38 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2015 23:55:28 +0000 (01:55 +0200)
Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/rpc/oxidresolve.c

index e3fa80b3c6bc0265ab7a3ea0b433cbd3e332c77b..fa21177b1d0d27847dd7897a434bb7bc8fe4e965 100644 (file)
@@ -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");