From f72d56de5092a10d78798f233e29b23d62cc425a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 1 Aug 2011 11:14:12 +0200 Subject: s3-rpc_server: Only setup tcpip ports if epmapper is enabled. Autobuild-User: Andreas Schneider Autobuild-Date: Mon Aug 1 12:31:59 CEST 2011 on sn-devel-104 --- source3/rpc_server/rpc_service_setup.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3/rpc_server') diff --git a/source3/rpc_server/rpc_service_setup.c b/source3/rpc_server/rpc_service_setup.c index 86a5a7a378..f6cc97d726 100644 --- a/source3/rpc_server/rpc_service_setup.c +++ b/source3/rpc_server/rpc_service_setup.c @@ -916,6 +916,7 @@ static bool rpc_setup_initshutdown(struct tevent_context *ev_ctx, bool dcesrv_ep_setup(struct tevent_context *ev_ctx, struct messaging_context *msg_ctx) { + enum rpc_service_mode_e epm_mode = rpc_epmapper_mode(); struct dcerpc_binding_vector *v; const char *rpcsrv_type; TALLOC_CTX *tmp_ctx; @@ -944,8 +945,9 @@ bool dcesrv_ep_setup(struct tevent_context *ev_ctx, "tcpip", "no"); - if (strcasecmp_m(rpcsrv_type, "yes") == 0 || - strcasecmp_m(rpcsrv_type, "true") == 0) { + if ((strcasecmp_m(rpcsrv_type, "yes") == 0 || + strcasecmp_m(rpcsrv_type, "true") == 0) + && epm_mode != RPC_SERVICE_MODE_DISABLED) { status = rpc_setup_tcpip_sockets(ev_ctx, msg_ctx, &ndr_table_winreg, -- cgit