s3-rpc_server: Remove remaining code for embedded endpoint mapper
authorAndrew Bartlett <abartlet@samba.org>
Sat, 3 Mar 2012 01:49:10 +0000 (12:49 +1100)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 5 Mar 2012 22:14:33 +0000 (23:14 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Mar  5 23:14:33 CET 2012 on sn-devel-104

source3/rpc_server/rpc_service_setup.c

index 7492d1e..203eeb1 100644 (file)
 #include "rpc_server/rpc_config.h"
 #include "rpc_server/epmapper/srv_epmapper.h"
 
-static bool rpc_setup_epmapper(struct tevent_context *ev_ctx,
-                              struct messaging_context *msg_ctx)
-{
-       enum rpc_service_mode_e epm_mode = rpc_epmapper_mode();
-       enum rpc_daemon_type_e epm_type = rpc_epmapper_daemon();
-       NTSTATUS status;
-
-       if (epm_mode != RPC_SERVICE_MODE_DISABLED &&
-           epm_type != RPC_DAEMON_DISABLED) {
-               status = rpc_epmapper_init(NULL);
-               if (!NT_STATUS_IS_OK(status)) {
-                       return false;
-               }
-       }
-
-       return true;
-}
-
 /* Common routine for embedded RPC servers */
 static bool rpc_setup_embedded(struct tevent_context *ev_ctx,
                               struct messaging_context *msg_ctx,
@@ -516,11 +498,6 @@ bool dcesrv_ep_setup(struct tevent_context *ev_ctx,
                goto done;
        }
 
-       ok = rpc_setup_epmapper(ev_ctx, msg_ctx);
-       if (!ok) {
-               goto done;
-       }
-
        rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
                                           "rpc_server",
                                           "tcpip",