From: Andreas Schneider Date: Thu, 5 Jul 2012 22:00:04 +0000 (+0200) Subject: s4-torture: Call lsarpc tests over the correct pipe. X-Git-Url: http://git.samba.org/?p=mat%2Fsamba.git;a=commitdiff_plain;h=027b913a25a174790740684269c87d9c26cba2bc s4-torture: Call lsarpc tests over the correct pipe. --- diff --git a/source4/torture/rpc/schannel.c b/source4/torture/rpc/schannel.c index 30b8a1d1ae..3f72e8c81a 100644 --- a/source4/torture/rpc/schannel.c +++ b/source4/torture/rpc/schannel.c @@ -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;