summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-07-06 00:00:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-07-06 10:00:58 +0200
commit027b913a25a174790740684269c87d9c26cba2bc (patch)
tree8279143b5c863aa16bed8370044f586f86682799
parenta070ce35557d8f51aff6fa13a65c1c86b5631f2a (diff)
downloadsamba-027b913a25a174790740684269c87d9c26cba2bc.tar.gz
samba-027b913a25a174790740684269c87d9c26cba2bc.tar.bz2
samba-027b913a25a174790740684269c87d9c26cba2bc.zip
s4-torture: Call lsarpc tests over the correct pipe.
-rw-r--r--source4/torture/rpc/schannel.c6
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;