summaryrefslogtreecommitdiff
path: root/source3/rpc_server
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/rpc_server
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/rpc_server')
-rw-r--r--source3/rpc_server/rpc_ep_setup.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source3/rpc_server/rpc_ep_setup.c b/source3/rpc_server/rpc_ep_setup.c
index 85021b3c22..3fdd2f1eeb 100644
--- a/source3/rpc_server/rpc_ep_setup.c
+++ b/source3/rpc_server/rpc_ep_setup.c
@@ -61,12 +61,12 @@ static uint16_t _open_sockets(struct tevent_context *ev_ctx,
uint16_t p = 0;
const char *rpcsrv_type;
- /* TODO: Remove this if we enable epmapper */
rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "epmapper",
+ "rpc_server",
+ "epmapper",
"none");
if (StrCaseCmp(rpcsrv_type, "none") == 0) {
- return 1;
+ return (uint16_t) -1;
}
if (lp_interfaces() && lp_bind_interfaces_only()) {
@@ -135,7 +135,8 @@ static NTSTATUS _rpc_ep_register(struct tevent_context *ev_ctx,
/* start endpoint mapper only if enabled */
rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "epmapper",
+ "rpc_server",
+ "epmapper",
"none");
if (StrCaseCmp(rpcsrv_type, "none") == 0) {
return NT_STATUS_OK;
@@ -168,7 +169,8 @@ static NTSTATUS _rpc_ep_unregister(const struct ndr_interface_table *iface)
/* start endpoint mapper only if enabled */
rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "epmapper",
+ "rpc_server",
+ "epmapper",
"none");
if (StrCaseCmp(rpcsrv_type, "none") == 0) {
return NT_STATUS_OK;
@@ -600,7 +602,8 @@ bool dcesrv_ep_setup(struct tevent_context *ev_ctx,
/* start endpoint mapper only if enabled */
rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM,
- "rpc_server", "epmapper",
+ "rpc_server",
+ "epmapper",
"none");
if (StrCaseCmp(rpcsrv_type, "embedded") == 0) {
epmapper_cb.init = epmapper_init_cb;