summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-02-24 12:06:54 +0100
committerGünther Deschner <gd@samba.org>2011-03-08 11:41:29 +0100
commitbd66fc81b648eaa966522f78c03f5844d9019c44 (patch)
tree00db6b03427bdfbcef6edf52aa241db965c9c864 /source3/smbd/server.c
parent55296edb09e9e7d365cf45cae1f81204287662bb (diff)
downloadsamba-bd66fc81b648eaa966522f78c03f5844d9019c44.tar.gz
samba-bd66fc81b648eaa966522f78c03f5844d9019c44.tar.bz2
samba-bd66fc81b648eaa966522f78c03f5844d9019c44.zip
s3-rpc_server: Start the Endpoint Mapper Dameon if enabled.
Endpoint Mapper is still disabled by default! Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index c06eaa12e7..5d2abc0bd9 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -37,6 +37,9 @@
#include "printing.h"
#include "serverid.h"
+extern void start_epmd(struct tevent_context *ev_ctx,
+ struct messaging_context *msg_ctx);
+
#ifdef WITH_DFS
extern int dcelogin_atmost_once;
#endif /* WITH_DFS */
@@ -1208,6 +1211,18 @@ extern void build_options(bool screen);
return -1;
}
+ if (is_daemon && !interactive) {
+ const char *rpcsrv_type;
+
+ rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
+ "rpc_server", "epmapper",
+ "none");
+ if (StrCaseCmp(rpcsrv_type, "daemon") == 0) {
+ start_epmd(smbd_event_context(),
+ smbd_server_conn->msg_ctx);
+ }
+ }
+
if (!dcesrv_ep_setup(smbd_event_context(), smbd_server_conn->msg_ctx)) {
exit(1);
}