NTSTATUS status;
struct dcerpc_pipe *p;
bool ret = true;
- struct policy_handle *handle;
+ struct policy_handle *handle = NULL;
struct test_join *join = NULL;
struct cli_credentials *machine_creds;
struct dcerpc_binding_handle *b;
}
b = p->binding_handle;
+ /* Test lsaLookupSids3 and lsaLookupNames4 over tcpip */
+ if (p->binding->transport == NCACN_IP_TCP) {
+ return test_many_LookupSids(p, tctx, handle);
+ }
+
if (!test_OpenPolicy(b, tctx)) {
ret = false;
}
struct lsa_TransNameArray2 tnames2;
struct dcerpc_binding_handle *b = p->binding_handle;
+ if (p->binding->transport != NCACN_NP &&
+ p->binding->transport != NCALRPC) {
+ torture_comment(tctx, "testcase_LookupNames is only available "
+ "over NCACN_NP or NCALRPC");
+ return true;
+ }
+
if (!test_OpenPolicy(b, tctx)) {
ret = false;
}
talloc_get_type_abort(data, struct lsa_trustdom_state);
struct dcerpc_binding_handle *b = p->binding_handle;
+ if (p->binding->transport != NCACN_NP &&
+ p->binding->transport != NCALRPC) {
+ torture_comment(tctx, "testcase_TrustedDomains is only available "
+ "over NCACN_NP or NCALRPC");
+ return true;
+ }
+
torture_comment(tctx, "Testing %d domains\n", state->num_trusts);
if (!test_OpenPolicy(b, tctx)) {
struct policy_handle *handle;
struct dcerpc_binding_handle *b = p->binding_handle;
+ if (p->binding->transport != NCACN_NP &&
+ p->binding->transport != NCALRPC) {
+ torture_comment(tctx, "testcase_Privileges is only available "
+ "over NCACN_NP or NCALRPC");
+ return true;
+ }
+
if (!test_OpenPolicy(b, tctx)) {
ret = false;
}
}
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;
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;
}