summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/lsa_lookup.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2012-06-25 19:06:34 +0200
committerAndreas Schneider <asn@cryptomilk.org>2012-07-06 10:00:56 +0200
commit22da7106b3c7a8b531d18c59401414bb548528ee (patch)
tree78c7fc38a5ae90585381861b67c214c47892e147 /source4/torture/rpc/lsa_lookup.c
parent00171a549a29f58659fbe8764a3ee59a155dffae (diff)
downloadsamba-22da7106b3c7a8b531d18c59401414bb548528ee.tar.gz
samba-22da7106b3c7a8b531d18c59401414bb548528ee.tar.bz2
samba-22da7106b3c7a8b531d18c59401414bb548528ee.zip
s4-torture: Make sure ncacn_np tests are only called over the a pipe.
Diffstat (limited to 'source4/torture/rpc/lsa_lookup.c')
-rw-r--r--source4/torture/rpc/lsa_lookup.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source4/torture/rpc/lsa_lookup.c b/source4/torture/rpc/lsa_lookup.c
index c4b4cf9374..587ab630bd 100644
--- a/source4/torture/rpc/lsa_lookup.c
+++ b/source4/torture/rpc/lsa_lookup.c
@@ -228,6 +228,14 @@ bool torture_rpc_lsa_lookup(struct torture_context *torture)
}
b = p->binding_handle;
+ if (p->binding->transport != NCACN_NP &&
+ p->binding->transport != NCALRPC) {
+ torture_comment(torture,
+ "torture_rpc_lsa_lookup is only available "
+ "over NCACN_NP or NCALRPC");
+ return true;
+ }
+
ret &= open_policy(torture, b, &handle);
if (!ret) return false;
@@ -336,6 +344,14 @@ static bool test_LookupSidsReply(struct torture_context *tctx,
const char *dom_admin_sid;
struct dcerpc_binding_handle *b = p->binding_handle;
+ if (p->binding->transport != NCACN_NP &&
+ p->binding->transport != NCALRPC) {
+ torture_comment(tctx,
+ "test_LookupSidsReply is only available "
+ "over NCACN_NP or NCALRPC");
+ return true;
+ }
+
if (!open_policy(tctx, b, &handle)) {
return false;
}