s4-torture: Call lsarpc tests over the correct pipe.
authorAndreas Schneider <asn@samba.org>
Thu, 5 Jul 2012 22:00:04 +0000 (00:00 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 6 Jul 2012 08:00:58 +0000 (10:00 +0200)
source4/torture/rpc/schannel.c

index 30b8a1d1aeb838b103b51f32366d42c9a71a4b56..3f72e8c81a89d081773a24c1abef057307327129 100644 (file)
@@ -323,6 +323,10 @@ static bool test_schannel(struct torture_context *tctx,
        torture_assert(tctx, test_netlogon_ex_ops(p_netlogon, tctx, credentials, creds),
                "Failed to process schannel secured NETLOGON EX ops");
 
+       /* we *MUST* use ncacn_np for openpolicy etc. */
+       transport = b->transport;
+       b->transport = NCACN_NP;
+
        /* Swap the binding details from SAMR to LSARPC */
        status = dcerpc_epm_map_binding(tctx, b, &ndr_table_lsarpc, tctx->ev, tctx->lp_ctx);
        torture_assert_ntstatus_ok(tctx, status, "epm map");
@@ -338,6 +342,8 @@ static bool test_schannel(struct torture_context *tctx,
        talloc_free(p_lsa);
        p_lsa = NULL;
 
+       b->transport = transport;
+
        /* we *MUST* use ncacn_ip_tcp for lookupsids3/lookupnames4 */
        transport = b->transport;
        b->transport = NCACN_IP_TCP;