summaryrefslogtreecommitdiff
path: root/source3/rpc_server
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-01-09 16:25:47 +0100
committerGünther Deschner <gd@samba.org>2009-01-09 17:08:19 +0100
commit22a96cbe31875a1adfbfc7157b308eebb5d0f2ec (patch)
tree26aae3c34c71732457b2d47ee23e402e2d06e1c8 /source3/rpc_server
parent03611c6c9d84b2654481dc51ce2af2665205e755 (diff)
downloadsamba-22a96cbe31875a1adfbfc7157b308eebb5d0f2ec.tar.gz
samba-22a96cbe31875a1adfbfc7157b308eebb5d0f2ec.tar.bz2
samba-22a96cbe31875a1adfbfc7157b308eebb5d0f2ec.zip
s3-svcctl: remove last traces of hand-marshalled svcctl code.
Guenther
Diffstat (limited to 'source3/rpc_server')
-rw-r--r--source3/rpc_server/srv_svcctl.c212
1 files changed, 0 insertions, 212 deletions
diff --git a/source3/rpc_server/srv_svcctl.c b/source3/rpc_server/srv_svcctl.c
deleted file mode 100644
index 7e8cc80392..0000000000
--- a/source3/rpc_server/srv_svcctl.c
+++ /dev/null
@@ -1,212 +0,0 @@
-/*
- * Unix SMB/CIFS implementation.
- * RPC Pipe client / server routines
- * Copyright (C) Gerald Carter 2005 - 2007
- *
- * 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 3 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, see <http://www.gnu.org/licenses/>.
- */
-
-#include "includes.h"
-#include "librpc/gen_ndr/srv_svcctl.h"
-
-#undef DBGC_CLASS
-#define DBGC_CLASS DBGC_RPC_SRV
-
-static bool proxy_svcctl_call(pipes_struct *p, uint8 opnum)
-{
- struct api_struct *fns;
- int n_fns;
-
- svcctl_get_pipe_fns(&fns, &n_fns);
-
- if (opnum >= n_fns)
- return False;
-
- if (fns[opnum].opnum != opnum) {
- smb_panic("SVCCTL function table not sorted\n");
- }
-
- return fns[opnum].fn(p);
-}
-
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_close_service(pipes_struct *p)
-{
- return proxy_svcctl_call( p, NDR_SVCCTL_CLOSESERVICEHANDLE );
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_open_scmanager(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_OPENSCMANAGERW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_open_service(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_OPENSERVICEW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_get_display_name(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_GETSERVICEDISPLAYNAMEW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_query_status(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_QUERYSERVICESTATUS);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_enum_services_status(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_ENUMSERVICESSTATUSW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_query_service_status_ex(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_QUERYSERVICESTATUSEX);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_enum_dependent_services(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_ENUMDEPENDENTSERVICESW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_start_service(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_STARTSERVICEW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_control_service(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_CONTROLSERVICE);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_query_service_config(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_QUERYSERVICECONFIGW);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_query_service_config2(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_QUERYSERVICECONFIG2W);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_lock_service_db(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_LOCKSERVICEDATABASE);
-}
-
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_unlock_service_db(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_UNLOCKSERVICEDATABASE);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_query_security_sec(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_QUERYSERVICEOBJECTSECURITY);
-}
-
-/*******************************************************************
- ********************************************************************/
-
-static bool api_svcctl_set_security_sec(pipes_struct *p)
-{
- return proxy_svcctl_call(p, NDR_SVCCTL_SETSERVICEOBJECTSECURITY);
-}
-
-
-/*******************************************************************
- \PIPE\svcctl commands
- ********************************************************************/
-
-static struct api_struct api_svcctl_cmds[] =
-{
- { "SVCCTL_CLOSE_SERVICE" , SVCCTL_CLOSE_SERVICE , api_svcctl_close_service },
- { "SVCCTL_OPEN_SCMANAGER_W" , SVCCTL_OPEN_SCMANAGER_W , api_svcctl_open_scmanager },
- { "SVCCTL_OPEN_SERVICE_W" , SVCCTL_OPEN_SERVICE_W , api_svcctl_open_service },
- { "SVCCTL_GET_DISPLAY_NAME" , SVCCTL_GET_DISPLAY_NAME , api_svcctl_get_display_name },
- { "SVCCTL_QUERY_STATUS" , SVCCTL_QUERY_STATUS , api_svcctl_query_status },
- { "SVCCTL_QUERY_SERVICE_CONFIG_W" , SVCCTL_QUERY_SERVICE_CONFIG_W , api_svcctl_query_service_config },
- { "SVCCTL_QUERY_SERVICE_CONFIG2_W" , SVCCTL_QUERY_SERVICE_CONFIG2_W , api_svcctl_query_service_config2 },
- { "SVCCTL_ENUM_SERVICES_STATUS_W" , SVCCTL_ENUM_SERVICES_STATUS_W , api_svcctl_enum_services_status },
- { "SVCCTL_ENUM_DEPENDENT_SERVICES_W" , SVCCTL_ENUM_DEPENDENT_SERVICES_W , api_svcctl_enum_dependent_services },
- { "SVCCTL_START_SERVICE_W" , SVCCTL_START_SERVICE_W , api_svcctl_start_service },
- { "SVCCTL_CONTROL_SERVICE" , SVCCTL_CONTROL_SERVICE , api_svcctl_control_service },
- { "SVCCTL_QUERY_SERVICE_STATUSEX_W" , SVCCTL_QUERY_SERVICE_STATUSEX_W , api_svcctl_query_service_status_ex },
- { "SVCCTL_LOCK_SERVICE_DB" , SVCCTL_LOCK_SERVICE_DB , api_svcctl_lock_service_db },
- { "SVCCTL_UNLOCK_SERVICE_DB" , SVCCTL_UNLOCK_SERVICE_DB , api_svcctl_unlock_service_db },
- { "SVCCTL_QUERY_SERVICE_SEC" , SVCCTL_QUERY_SERVICE_SEC , api_svcctl_query_security_sec },
- { "SVCCTL_SET_SERVICE_SEC" , SVCCTL_SET_SERVICE_SEC , api_svcctl_set_security_sec }
-};
-
-
-void svcctl2_get_pipe_fns( struct api_struct **fns, int *n_fns )
-{
- *fns = api_svcctl_cmds;
- *n_fns = sizeof(api_svcctl_cmds) / sizeof(struct api_struct);
-}
-
-NTSTATUS rpc_svcctl2_init(void)
-{
- return rpc_pipe_register_commands(SMB_RPC_INTERFACE_VERSION,
- "svcctl", "ntsvcs",
- &ndr_table_svcctl.syntax_id,
- api_svcctl_cmds,
- sizeof(api_svcctl_cmds) / sizeof(struct api_struct));
-}