*/
#include "includes.h"
-#include "torture/torture.h"
#include "dlinklist.h"
#include "libcli/raw/libcliraw.h"
-#include "libcli/libcli.h"
+#include "torture/torture.h"
int create_complex_file(struct smbcli_state *cli, TALLOC_CTX *mem_ctx, const char *fname);
*/
#include "includes.h"
-#include "torture/torture.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
+#include "torture/torture.h"
#include "system/time.h"
#include "system/filesys.h"
REQUIRED_SUBSYSTEMS = \
com dcom
-#################################
-# Start SUBSYSTEM TORTURE_RPC
-[SUBSYSTEM::TORTURE_RPC]
+[MODULE::torture_rpc]
+SUBSYSTEM = smbtorture
+INIT_FUNCTION = torture_rpc_init
PRIVATE_PROTO_HEADER = \
rpc/proto.h
OBJ_FILES = \
rpc/bind.o \
rpc/dssetup.o \
rpc/alter_context.o \
- rpc/bench.o
+ rpc/bench.o \
+ rpc/rpc.o
REQUIRED_SUBSYSTEMS = \
NDR_TABLE RPC_NDR_UNIXINFO RPC_NDR_SAMR RPC_NDR_WINREG RPC_NDR_INITSHUTDOWN \
RPC_NDR_OXIDRESOLVER RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \
RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \
RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT RPC_NDR_DSSETUP \
RPC_NDR_REMACT RPC_NDR_OXIDRESOLVER WB_HELPER
-# End SUBSYSTEM TORTURE_RPC
-#################################
#################################
# Start SUBSYSTEM TORTURE_RAP
# Start BINARY smbtorture
[BINARY::smbtorture]
INSTALLDIR = BINDIR
-PRIVATE_PROTO_HEADER = torture.h
+PRIVATE_PROTO_HEADER = proto.h
OBJ_FILES = \
torture.o \
torture_util.o
TORTURE_BASIC \
TORTURE_RAW \
TORTURE_SMB2 \
- TORTURE_RPC \
TORTURE_RAP \
TORTURE_AUTH \
TORTURE_LOCAL \
*/
#include "includes.h"
-#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "libnet/libnet.h"
static BOOL test_domainopen(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
*/
#include "includes.h"
-#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "libnet/libnet.h"
#include "lib/cmdline/popt_common.h"
*/
#include "includes.h"
-#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "libnet/libnet.h"
#include "libnet/userinfo.h"
#include "libcli/security/proto.h"
*/
#include "includes.h"
-#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "libnet/userman.h"
#include "libnet/libnet.h"
#include "librpc/gen_ndr/ndr_samr.h"
#include "lib/socket/socket.h"
#include "lib/events/events.h"
-#include "auth/credentials/credentials.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
#include "libcli/resolve/resolve.h"
#include "system/network.h"
#include "netif/netif.h"
#include "torture/torture.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/libcli.h"
+#include "librpc/gen_ndr/lsa.h"
#include "libcli/util/clilsa.h"
#include "libcli/security/proto.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_lsa.h"
#include "librpc/gen_ndr/ndr_dssetup.h"
-#include "auth/credentials/credentials.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
BOOL torture_rpc_alter_context(void)
{
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_atsvc.h"
+#include "torture/rpc/rpc.h"
static BOOL test_JobGetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, uint32_t job_id)
{
#include "librpc/gen_ndr/ndr_drsuapi.h"
#include "librpc/gen_ndr/ndr_misc.h"
#include "librpc/rpc/dcerpc_table.h"
+#include "torture/rpc/rpc.h"
#if 1
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_srvsvc.h"
+#include "torture/rpc/rpc.h"
/**************************/
/* srvsvc_NetShare */
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_lsa.h"
#include "lib/cmdline/popt_common.h"
+#include "torture/rpc/rpc.h"
/*
This test is 'bogus' in that it doesn't actually perform to the
#include "includes.h"
#include "torture/torture.h"
#include "librpc/rpc/dcerpc_table.h"
+#include "torture/rpc/rpc.h"
BOOL torture_rpc_countcalls(void)
#include "includes.h"
#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_oxidresolver.h"
BOOL torture_rpc_dcom(void)
#include "includes.h"
#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_dfs.h"
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_drsuapi.h"
-#include "auth/credentials/credentials.h"
-#include "torture/rpc/drsuapi.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
BOOL test_DsBind(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
struct DsPrivate *priv)
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
+#include "librpc/gen_ndr/drsuapi.h"
struct DsPrivate {
struct policy_handle bind_handle;
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_drsuapi.h"
-#include "auth/credentials/credentials.h"
-#include "torture/rpc/drsuapi.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
#include "ldb/include/ldb.h"
static BOOL test_DsCrackNamesMatrix(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx,
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_dssetup.h"
+#include "torture/rpc/rpc.h"
BOOL test_DsRoleGetPrimaryDomainInformation(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
#include "lib/cmdline/popt_common.h"
#include "librpc/gen_ndr/ndr_drsuapi.h"
#include "libcli/cldap/cldap.h"
+#include "libcli/ldap/ldap_client.h"
#include "torture/ldap/proto.h"
struct DsSyncBindInfo {
#include "includes.h"
#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "lib/events/events.h"
#include "librpc/gen_ndr/ndr_echo.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_epmapper.h"
#include "librpc/rpc/dcerpc_table.h"
+#include "torture/rpc/rpc.h"
/*
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_eventlog.h"
#include "librpc/gen_ndr/ndr_lsa.h"
+#include "torture/rpc/rpc.h"
static void init_lsa_String(struct lsa_String *name, const char *s)
{
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_initshutdown.h"
+#include "torture/rpc/rpc.h"
static void init_initshutdown_String(TALLOC_CTX *mem_ctx, struct initshutdown_String *name, const char *s)
{
#include "libnet/libnet.h"
#include "auth/credentials/credentials.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
#define TORTURE_NETBIOS_NAME "smbtorturejoin"
#include "librpc/gen_ndr/ndr_lsa.h"
#include "lib/events/events.h"
#include "libcli/security/proto.h"
-#include "auth/credentials/credentials.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
+#include "torture/rpc/rpc.h"
static void init_lsa_String(struct lsa_String *name, const char *s)
{
#include "librpc/gen_ndr/ndr_lsa.h"
#include "lib/events/events.h"
#include "libcli/security/proto.h"
+#include "libnet/libnet_join.h"
+#include "torture/rpc/rpc.h"
static BOOL open_policy(TALLOC_CTX *mem_ctx, struct dcerpc_pipe *p,
struct policy_handle **handle)
#include "librpc/gen_ndr/ndr_mgmt.h"
#include "auth/gensec/gensec.h"
#include "librpc/rpc/dcerpc_table.h"
+#include "torture/rpc/rpc.h"
/*
#include "auth/auth.h"
#include "smb.h"
#include "lib/cmdline/popt_common.h"
-#include "torture/rpc/proto.h"
-#include "libcli/auth/proto.h"
+#include "torture/rpc/rpc.h"
+#include "libcli/auth/libcli_auth.h"
static const char *machine_password;
#include "librpc/gen_ndr/ndr_oxidresolver.h"
#include "librpc/gen_ndr/ndr_remact.h"
#include "librpc/gen_ndr/ndr_epmapper.h"
+#include "torture/rpc/rpc.h"
#define CLSID_IMAGEDOC "02B01C80-E03D-101A-B294-00DD010F2BF9"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_remact.h"
#include "librpc/gen_ndr/ndr_epmapper.h"
+#include "torture/rpc/rpc.h"
#define CLSID_IMAGEDOC "02B01C80-E03D-101A-B294-00DD010F2BF9"
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_rot.h"
+#include "torture/rpc/rpc.h"
BOOL torture_rpc_rot(void)
{
--- /dev/null
+/*
+ Unix SMB/CIFS implementation.
+ SMB torture tester
+ Copyright (C) Andrew Tridgell 1997-2003
+ Copyright (C) Jelmer Vernooij 2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#include "includes.h"
+#include "auth/credentials/credentials.h"
+#include "lib/cmdline/popt_common.h"
+#include "torture/rpc/rpc.h"
+#include "torture/torture.h"
+
+/* open a rpc connection to the chosen binding string */
+NTSTATUS torture_rpc_connection(TALLOC_CTX *parent_ctx,
+ struct dcerpc_pipe **p,
+ const struct dcerpc_interface_table *table)
+{
+ NTSTATUS status;
+ const char *binding = lp_parm_string(-1, "torture", "binding");
+
+ if (!binding) {
+ printf("You must specify a ncacn binding string\n");
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
+ status = dcerpc_pipe_connect(parent_ctx,
+ p, binding, table,
+ cmdline_credentials, NULL);
+
+ return status;
+}
+
+/* open a rpc connection to a specific transport */
+NTSTATUS torture_rpc_connection_transport(TALLOC_CTX *parent_ctx,
+ struct dcerpc_pipe **p,
+ const struct dcerpc_interface_table *table,
+ enum dcerpc_transport_t transport)
+{
+ NTSTATUS status;
+ const char *binding = lp_parm_string(-1, "torture", "binding");
+ struct dcerpc_binding *b;
+ TALLOC_CTX *mem_ctx = talloc_named(parent_ctx, 0, "torture_rpc_connection_smb");
+
+ if (!binding) {
+ printf("You must specify a ncacn binding string\n");
+ talloc_free(mem_ctx);
+ return NT_STATUS_INVALID_PARAMETER;
+ }
+
+ status = dcerpc_parse_binding(mem_ctx, binding, &b);
+ if (!NT_STATUS_IS_OK(status)) {
+ DEBUG(0,("Failed to parse dcerpc binding '%s'\n", binding));
+ talloc_free(mem_ctx);
+ return status;
+ }
+
+ b->transport = transport;
+
+ status = dcerpc_pipe_connect_b(mem_ctx, p, b, table,
+ cmdline_credentials, NULL);
+
+ if (NT_STATUS_IS_OK(status)) {
+ *p = talloc_reference(parent_ctx, *p);
+ } else {
+ *p = NULL;
+ }
+ talloc_free(mem_ctx);
+ return status;
+}
+
+NTSTATUS torture_rpc_init(void)
+{
+ register_torture_op("RPC-LSA", torture_rpc_lsa, 0);
+ register_torture_op("RPC-LSALOOKUP", torture_rpc_lsa_lookup, 0);
+ register_torture_op("RPC-SECRETS", torture_rpc_lsa_secrets, 0);
+ register_torture_op("RPC-ECHO", torture_rpc_echo, 0);
+ register_torture_op("RPC-DFS", torture_rpc_dfs, 0);
+ register_torture_op("RPC-SPOOLSS", torture_rpc_spoolss, 0);
+ register_torture_op("RPC-SAMR", torture_rpc_samr, 0);
+ register_torture_op("RPC-UNIXINFO", torture_rpc_unixinfo, 0);
+ register_torture_op("RPC-NETLOGON", torture_rpc_netlogon, 0);
+ register_torture_op("RPC-SAMLOGON", torture_rpc_samlogon, 0);
+ register_torture_op("RPC-SAMSYNC", torture_rpc_samsync, 0);
+ register_torture_op("RPC-SCHANNEL", torture_rpc_schannel, 0);
+ register_torture_op("RPC-WKSSVC", torture_rpc_wkssvc, 0);
+ register_torture_op("RPC-SRVSVC", torture_rpc_srvsvc, 0);
+ register_torture_op("RPC-SVCCTL", torture_rpc_svcctl, 0);
+ register_torture_op("RPC-ATSVC", torture_rpc_atsvc, 0);
+ register_torture_op("RPC-EVENTLOG", torture_rpc_eventlog, 0);
+ register_torture_op("RPC-EPMAPPER", torture_rpc_epmapper, 0);
+ register_torture_op("RPC-WINREG", torture_rpc_winreg, 0);
+ register_torture_op("RPC-INITSHUTDOWN", torture_rpc_initshutdown, 0);
+ register_torture_op("RPC-OXIDRESOLVE", torture_rpc_oxidresolve, 0);
+ register_torture_op("RPC-REMACT", torture_rpc_remact, 0);
+ register_torture_op("RPC-MGMT", torture_rpc_mgmt, 0);
+ register_torture_op("RPC-SCANNER", torture_rpc_scanner, 0);
+ register_torture_op("RPC-AUTOIDL", torture_rpc_autoidl, 0);
+ register_torture_op("RPC-COUNTCALLS", torture_rpc_countcalls, 0);
+ register_torture_op("RPC-MULTIBIND", torture_multi_bind, 0);
+ register_torture_op("RPC-DRSUAPI", torture_rpc_drsuapi, 0);
+ register_torture_op("RPC-CRACKNAMES", torture_rpc_drsuapi_cracknames, 0);
+ register_torture_op("RPC-ROT", torture_rpc_rot, 0);
+ register_torture_op("RPC-DSSETUP", torture_rpc_dssetup, 0);
+ register_torture_op("RPC-ALTERCONTEXT", torture_rpc_alter_context, 0);
+ register_torture_op("RPC-JOIN", torture_rpc_join, 0);
+ register_torture_op("RPC-DSSYNC", torture_rpc_dssync, 0);
+ register_torture_op("BENCH-RPC", torture_bench_rpc, 0);
+
+ return NT_STATUS_OK;
+}
--- /dev/null
+/*
+ Unix SMB/CIFS implementation.
+ SMB torture tester
+ Copyright (C) Andrew Tridgell 1997-2003
+ Copyright (C) Jelmer Vernooij 2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __TORTURE_RPC_H__
+#define __TORTURE_RPC_H__
+
+#include "auth/credentials/credentials.h"
+#include "torture/rpc/drsuapi.h"
+#include "libnet/libnet_join.h"
+#include "torture/rpc/proto.h"
+
+#endif /* __TORTURE_RPC_H__ */
#include "auth/auth.h"
#include "lib/crypto/crypto.h"
#include "lib/cmdline/popt_common.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
#include "auth/gensec/schannel_proto.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
#define TEST_MACHINE_NAME "samlogontest"
#define TEST_USER_NAME "samlogontestuser"
#include "librpc/gen_ndr/ndr_samr.h"
#include "smb.h"
#include "lib/crypto/crypto.h"
-#include "auth/credentials/credentials.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
#include "libcli/security/proto.h"
+#include "torture/rpc/rpc.h"
#define TEST_ACCOUNT_NAME "samrtorturetest"
#define TEST_ALIASNAME "samrtorturetestalias"
#include "dlinklist.h"
#include "lib/crypto/crypto.h"
#include "system/time.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
#include "auth/gensec/schannel_proto.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
#include "libcli/security/proto.h"
#define TEST_MACHINE_NAME "samsynctest"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_mgmt.h"
#include "librpc/rpc/dcerpc_table.h"
+#include "torture/rpc/rpc.h"
/*
work out how many calls there are for an interface
#include "includes.h"
#include "librpc/gen_ndr/ndr_netlogon.h"
#include "auth/credentials/credentials.h"
-#include "torture/rpc/proto.h"
+#include "torture/rpc/rpc.h"
#include "lib/cmdline/popt_common.h"
#include "auth/gensec/schannel_proto.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
#include "libcli/security/proto.h"
#define TEST_MACHINE_NAME "schannel"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_lsa.h"
-#include "auth/credentials/credentials.h"
-#include "torture/rpc/proto.h"
-#include "libcli/auth/proto.h"
+#include "libcli/auth/libcli_auth.h"
+#include "torture/rpc/rpc.h"
static void init_lsa_String(struct lsa_String *name, const char *s)
{
#include "includes.h"
#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_spoolss.h"
struct test_spoolss_context {
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_srvsvc.h"
+#include "torture/rpc/rpc.h"
/**************************/
/* srvsvc_NetCharDev */
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_svcctl.h"
+#include "torture/rpc/rpc.h"
static BOOL test_EnumServicesStatus(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *h)
{
#include "smb.h"
#include "lib/ldb/include/ldb.h"
-#include "auth/credentials/credentials.h"
-#include "torture/rpc/proto.h"
+#include "libcli/auth/libcli_auth.h"
+#include "torture/rpc/rpc.h"
#include "libcli/security/proto.h"
-#include "libcli/auth/proto.h"
struct test_join {
struct dcerpc_pipe *p;
#include "includes.h"
#include "torture/torture.h"
+#include "torture/rpc/rpc.h"
#include "librpc/gen_ndr/ndr_unixinfo.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_winreg.h"
#include "libcli/security/proto.h"
+#include "torture/rpc/rpc.h"
#define TEST_KEY_BASE "smbtorture test"
#define TEST_KEY1 TEST_KEY_BASE "\\spottyfoot"
#include "includes.h"
#include "torture/torture.h"
#include "librpc/gen_ndr/ndr_wkssvc.h"
+#include "torture/rpc/rpc.h"
static BOOL test_NetWkstaGetInfo(struct dcerpc_pipe *p,
Unix SMB/CIFS implementation.
SMB torture tester
Copyright (C) Andrew Tridgell 1997-2003
+ Copyright (C) Jelmer Vernooij 2006
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include "libcli/raw/ioctl.h"
#include "libcli/libcli.h"
#include "lib/ldb/include/ldb.h"
-#include "librpc/rpc/dcerpc_table.h"
#include "lib/events/events.h"
#include "libcli/resolve/resolve.h"
#include "auth/credentials/credentials.h"
+#include "librpc/rpc/dcerpc_table.h"
+#include "libcli/ldap/ldap_client.h"
#include "torture/basic/proto.h"
#include "torture/raw/proto.h"
#include "torture/smb2/proto.h"
-#include "torture/rpc/proto.h"
#include "torture/rap/proto.h"
#include "torture/auth/proto.h"
#include "torture/local/proto.h"
return ret;
}
-/* open a rpc connection to the chosen binding string */
-NTSTATUS torture_rpc_connection(TALLOC_CTX *parent_ctx,
- struct dcerpc_pipe **p,
- const struct dcerpc_interface_table *table)
-{
- NTSTATUS status;
- const char *binding = lp_parm_string(-1, "torture", "binding");
-
- if (!binding) {
- printf("You must specify a ncacn binding string\n");
- return NT_STATUS_INVALID_PARAMETER;
- }
-
- status = dcerpc_pipe_connect(parent_ctx,
- p, binding, table,
- cmdline_credentials, NULL);
-
- return status;
-}
-
-/* open a rpc connection to a specific transport */
-NTSTATUS torture_rpc_connection_transport(TALLOC_CTX *parent_ctx,
- struct dcerpc_pipe **p,
- const struct dcerpc_interface_table *table,
- enum dcerpc_transport_t transport)
-{
- NTSTATUS status;
- const char *binding = lp_parm_string(-1, "torture", "binding");
- struct dcerpc_binding *b;
- TALLOC_CTX *mem_ctx = talloc_named(parent_ctx, 0, "torture_rpc_connection_smb");
-
- if (!binding) {
- printf("You must specify a ncacn binding string\n");
- talloc_free(mem_ctx);
- return NT_STATUS_INVALID_PARAMETER;
- }
-
- status = dcerpc_parse_binding(mem_ctx, binding, &b);
- if (!NT_STATUS_IS_OK(status)) {
- DEBUG(0,("Failed to parse dcerpc binding '%s'\n", binding));
- talloc_free(mem_ctx);
- return status;
- }
-
- b->transport = transport;
-
- status = dcerpc_pipe_connect_b(mem_ctx, p, b, table,
- cmdline_credentials, NULL);
-
- if (NT_STATUS_IS_OK(status)) {
- *p = talloc_reference(parent_ctx, *p);
- } else {
- *p = NULL;
- }
- talloc_free(mem_ctx);
- return status;
-}
/* check if the server produced the expected error code */
BOOL check_error(const char *location, struct smbcli_state *c,
{"BENCH-TORTURE", NULL, run_torture},
{"BENCH-NBT", torture_bench_nbt, 0},
{"BENCH-WINS", torture_bench_wins, 0},
- {"BENCH-RPC", torture_bench_rpc, 0},
{"BENCH-CLDAP", torture_bench_cldap, 0},
/* RAW smb tests */
{"SCAN-IOCTL", torture_ioctl_test, 0},
{"SCAN-RAP", torture_rap_scan, 0},
- /* rpc testers */
- {"RPC-LSA", torture_rpc_lsa, 0},
- {"RPC-LSALOOKUP", torture_rpc_lsa_lookup, 0},
- {"RPC-SECRETS", torture_rpc_lsa_secrets, 0},
- {"RPC-ECHO", torture_rpc_echo, 0},
- {"RPC-DFS", torture_rpc_dfs, 0},
- {"RPC-SPOOLSS", torture_rpc_spoolss, 0},
- {"RPC-SAMR", torture_rpc_samr, 0},
- {"RPC-UNIXINFO", torture_rpc_unixinfo, 0},
- {"RPC-NETLOGON", torture_rpc_netlogon, 0},
- {"RPC-SAMLOGON", torture_rpc_samlogon, 0},
- {"RPC-SAMSYNC", torture_rpc_samsync, 0},
- {"RPC-SCHANNEL", torture_rpc_schannel, 0},
- {"RPC-WKSSVC", torture_rpc_wkssvc, 0},
- {"RPC-SRVSVC", torture_rpc_srvsvc, 0},
- {"RPC-SVCCTL", torture_rpc_svcctl, 0},
- {"RPC-ATSVC", torture_rpc_atsvc, 0},
- {"RPC-EVENTLOG", torture_rpc_eventlog, 0},
- {"RPC-EPMAPPER", torture_rpc_epmapper, 0},
- {"RPC-WINREG", torture_rpc_winreg, 0},
- {"RPC-INITSHUTDOWN", torture_rpc_initshutdown, 0},
- {"RPC-OXIDRESOLVE", torture_rpc_oxidresolve, 0},
- {"RPC-REMACT", torture_rpc_remact, 0},
- {"RPC-MGMT", torture_rpc_mgmt, 0},
- {"RPC-SCANNER", torture_rpc_scanner, 0},
- {"RPC-AUTOIDL", torture_rpc_autoidl, 0},
- {"RPC-COUNTCALLS", torture_rpc_countcalls, 0},
- {"RPC-MULTIBIND", torture_multi_bind, 0},
- {"RPC-DRSUAPI", torture_rpc_drsuapi, 0},
- {"RPC-CRACKNAMES", torture_rpc_drsuapi_cracknames, 0},
- {"RPC-ROT", torture_rpc_rot, 0},
- {"RPC-DSSETUP", torture_rpc_dssetup, 0},
- {"RPC-ALTERCONTEXT", torture_rpc_alter_context, 0},
- {"RPC-JOIN", torture_rpc_join, 0},
- {"RPC-DSSYNC", torture_rpc_dssync, 0},
-
/* local (no server) testers */
{"LOCAL-NTLMSSP", torture_ntlmssp_self_check, 0},
{"LOCAL-ICONV", torture_local_iconv, 0},
--- /dev/null
+/*
+ Unix SMB/CIFS implementation.
+ SMB torture tester
+ Copyright (C) Andrew Tridgell 1997-2003
+ Copyright (C) Jelmer Vernooij 2006
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+*/
+
+#ifndef __TORTURE_H__
+#define __TORTURE_H__
+
+#include "libcli/libcli.h"
+#include "torture/proto.h"
+
+#endif /* __TORTURE_H__ */