diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2004-11-20 18:51:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:06:02 -0500 |
commit | d53fd3d8d5c99ae22a4d74065dc45e2f4e36a382 (patch) | |
tree | 905f747872a80efb45ce0d7d331429891bc00b2f /source4/torture | |
parent | f55ee60575576e2213b234f4690d7a300a8e362e (diff) | |
download | samba-d53fd3d8d5c99ae22a4d74065dc45e2f4e36a382.tar.gz samba-d53fd3d8d5c99ae22a4d74065dc45e2f4e36a382.tar.bz2 samba-d53fd3d8d5c99ae22a4d74065dc45e2f4e36a382.zip |
r3891: Add rot (Running Object Table) interface
(This used to be commit 4840eaeed3cfd72026babb382f26929c29702713)
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/config.mk | 3 | ||||
-rw-r--r-- | source4/torture/rpc/rot.c | 46 | ||||
-rw-r--r-- | source4/torture/torture.c | 1 |
3 files changed, 49 insertions, 1 deletions
diff --git a/source4/torture/config.mk b/source4/torture/config.mk index 17e8556ff1..41f394a67c 100644 --- a/source4/torture/config.mk +++ b/source4/torture/config.mk @@ -95,13 +95,14 @@ ADD_OBJ_FILES = \ torture/rpc/netlogon.o \ torture/rpc/samlogon.o \ torture/rpc/samsync.o \ + torture/rpc/rot.o \ torture/rpc/bind.o REQUIRED_SUBSYSTEMS = \ NDR_ALL RPC_NDR_SAMR RPC_NDR_WINREG RPC_NDR_OXIDRESOLVER \ RPC_NDR_EVENTLOG RPC_NDR_ECHO RPC_NDR_SVCCTL \ RPC_NDR_MGMT RPC_NDR_NETLOGON RPC_NDR_ATSVC RPC_NDR_DRSUAPI \ RPC_NDR_LSA RPC_NDR_EPMAPPER RPC_NDR_DFS RPC_NDR_SPOOLSS \ - RPC_NDR_SRVSVC RPC_NDR_WKSSVC + RPC_NDR_SRVSVC RPC_NDR_WKSSVC RPC_NDR_ROT # End SUBSYSTEM TORTURE_RPC ################################# diff --git a/source4/torture/rpc/rot.c b/source4/torture/rpc/rot.c new file mode 100644 index 0000000000..d2e3742cf0 --- /dev/null +++ b/source4/torture/rpc/rot.c @@ -0,0 +1,46 @@ +/* + Unix SMB/CIFS implementation. + test suite for the running object table + + 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" +#include "librpc/gen_ndr/ndr_rot.h" + +BOOL torture_rpc_rot(void) +{ + NTSTATUS status; + struct dcerpc_pipe *p; + TALLOC_CTX *mem_ctx; + BOOL ret = True; + + mem_ctx = talloc_init("torture_rpc_rot"); + + status = torture_rpc_connection(&p, + DCERPC_ROT_NAME, + DCERPC_ROT_UUID, + DCERPC_ROT_VERSION); + + if (!NT_STATUS_IS_OK(status)) { + return False; + } + + torture_rpc_close(p); + + return ret; +} diff --git a/source4/torture/torture.c b/source4/torture/torture.c index 09f7c65f04..7d309f3741 100644 --- a/source4/torture/torture.c +++ b/source4/torture/torture.c @@ -2461,6 +2461,7 @@ static struct { {"RPC-MULTIBIND", torture_multi_bind, 0}, {"RPC-DRSUAPI", torture_rpc_drsuapi, 0}, {"RPC-LOGIN", torture_rpc_login, 0}, + {"RPC-ROT", torture_rpc_rot, 0}, /* Distributed COM testers */ {"DCOM-SIMPLE", torture_dcom_simple, 0}, |