diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/rpc/schannel.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |