summaryrefslogtreecommitdiff
path: root/source3/rpc_server/rpc_config.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2021-06-08 09:10:05 +0200
committerVolker Lendecke <vl@samba.org>2021-12-10 14:02:30 +0000
commit730f7dfd615ed9997cdf2e7e418605b28826e310 (patch)
treeba71af383ef78720213964b1a436d7617edf33ce /source3/rpc_server/rpc_config.c
parent9e3ee8c40c012ef6febe1737d952a744b0b14861 (diff)
downloadsamba-730f7dfd615ed9997cdf2e7e418605b28826e310.tar.gz
s3:rpc_server: Delete unused code and doc references
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Samuel Cabrero <scabrero@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/rpc_server/rpc_config.c')
-rw-r--r--source3/rpc_server/rpc_config.c128
1 files changed, 0 insertions, 128 deletions
diff --git a/source3/rpc_server/rpc_config.c b/source3/rpc_server/rpc_config.c
index d5a03560b53..5153e9229c8 100644
--- a/source3/rpc_server/rpc_config.c
+++ b/source3/rpc_server/rpc_config.c
@@ -73,131 +73,3 @@ void global_dcesrv_context_free(void)
{
TALLOC_FREE(global_dcesrv_ctx);
}
-
-#if 0
-/* the default is "embedded" so this table
- * lists only services that are not using
- * the default in order to keep enumerating it
- * in rpc_service_mode() as short as possible
- */
-struct rpc_service_defaults {
- const char *name;
- const char *def_mode;
-} rpc_service_defaults[] = {
- { "epmapper", "disabled" },
- /* { "mdssvc", "embedded" }, */
- /* { "spoolss", "embedded" }, */
- /* { "lsarpc", "embedded" }, */
- /* { "samr", "embedded" }, */
- /* { "netlogon", "embedded" }, */
- { "fssagentrpc", "external" },
-
- { NULL, NULL }
-};
-
-enum rpc_service_mode_e rpc_service_mode(const char *name)
-{
- const char *pipe_name = name;
- const char *rpcsrv_type;
- enum rpc_service_mode_e state;
- const char *def;
- enum server_role server_role = lp_server_role();
- int i;
-
- /* Handle pipes with multiple names */
- if (strcmp(pipe_name, "lsass") == 0) {
- pipe_name = "lsarpc";
- } else if (strcmp(pipe_name, "plugplay") == 0) {
- pipe_name = "ntsvcs";
- }
-
- def = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "default", NULL);
- if (def == NULL) {
- for (i = 0; rpc_service_defaults[i].name; i++) {
- if (strcasecmp_m(pipe_name, rpc_service_defaults[i].name) == 0) {
- def = rpc_service_defaults[i].def_mode;
- break;
- }
- }
- /* if the default is unspecified then use 'embedded' */
- if (def == NULL) {
- def = "embedded";
- }
- }
-
- /*
- * Only enable the netlogon server by default if we are a
- * classic/NT4 domain controller
- */
- if (strcasecmp_m(name, "netlogon") == 0) {
- switch (server_role) {
- case ROLE_STANDALONE:
- case ROLE_DOMAIN_MEMBER:
- def = "disabled";
- break;
- default:
- break;
- }
- }
-
- rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", pipe_name, def);
-
- if (strcasecmp_m(rpcsrv_type, "embedded") == 0) {
- state = RPC_SERVICE_MODE_EMBEDDED;
- } else if (strcasecmp_m(rpcsrv_type, "external") == 0) {
- state = RPC_SERVICE_MODE_EXTERNAL;
- } else {
- state = RPC_SERVICE_MODE_DISABLED;
- }
-
- return state;
-}
-
-
-/* the default is "embedded" so this table
- * lists only daemons that are not using
- * the default in order to keep enumerating it
- * in rpc_daemon_type() as short as possible
- */
-struct rpc_daemon_defaults {
- const char *name;
- const char *def_type;
-} rpc_daemon_defaults[] = {
- { "epmd", "disabled" },
- /* { "spoolssd", "embedded" }, */
- /* { "lsasd", "embedded" }, */
- { "fssd", "disabled" },
-
- { NULL, NULL }
-};
-
-enum rpc_daemon_type_e rpc_daemon_type(const char *name)
-{
- const char *rpcsrv_type;
- enum rpc_daemon_type_e type;
- const char *def;
- int i;
-
- def = "embedded";
- for (i = 0; rpc_daemon_defaults[i].name; i++) {
- if (strcasecmp_m(name, rpc_daemon_defaults[i].name) == 0) {
- def = rpc_daemon_defaults[i].def_type;
- }
- }
-
- rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_daemon", name, def);
-
- if (strcasecmp_m(rpcsrv_type, "embedded") == 0) {
- type = RPC_DAEMON_EMBEDDED;
- } else if (strcasecmp_m(rpcsrv_type, "fork") == 0) {
- type = RPC_DAEMON_FORK;
- } else {
- type = RPC_DAEMON_DISABLED;
- }
-
- return type;
-}
-#endif