From 1d3b81e6c0c4c654c7395fe84b053cd77ef7d81a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 11 Aug 2004 19:48:36 +0000 Subject: r1736: - Pidl updates: - Support for "object oriented" interfaces in pidl - Support for inherited interfaces in pidl - Simplification of the support for properties on an interface - Start on dcom rpc torture tests (This used to be commit 45c3d0036b8510102816f9cdff9210098259cc5f) --- source4/torture/config.mk | 1 + source4/torture/rpc/dcom.c | 47 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 source4/torture/rpc/dcom.c (limited to 'source4/torture') diff --git a/source4/torture/config.mk b/source4/torture/config.mk index c520ef755b..157b06b3b8 100644 --- a/source4/torture/config.mk +++ b/source4/torture/config.mk @@ -49,6 +49,7 @@ REQUIRED_SUBSYSTEMS = \ ADD_OBJ_FILES = \ torture/rpc/lsa.o \ torture/rpc/echo.o \ + torture/rpc/dcom.o \ torture/rpc/dfs.o \ torture/rpc/drsuapi.o \ torture/rpc/spoolss.o \ diff --git a/source4/torture/rpc/dcom.c b/source4/torture/rpc/dcom.c new file mode 100644 index 0000000000..b42023eb2f --- /dev/null +++ b/source4/torture/rpc/dcom.c @@ -0,0 +1,47 @@ +/* + Unix SMB/CIFS implementation. + test suite for dcom rpc operations + + Copyright (C) Jelmer Vernooij 2004 + + 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" + +BOOL torture_rpc_dcom(int dummy) +{ + NTSTATUS status; + struct dcerpc_pipe *p; + TALLOC_CTX *mem_ctx; + BOOL ret = True; + + mem_ctx = talloc_init("torture_rpc_dcom"); + + status = torture_rpc_connection(&p, + DCERPC_IOXIDRESOLVER_NAME, + DCERPC_IOXIDRESOLVER_UUID, + DCERPC_IOXIDRESOLVER_VERSION); + if (!NT_STATUS_IS_OK(status)) { + return False; + } + + printf("\n"); + + talloc_destroy(mem_ctx); + + torture_rpc_close(p); + return ret; +} -- cgit