diff options
author | Andreas Schneider <asn@samba.org> | 2011-08-01 11:14:12 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2011-08-01 12:31:59 +0200 |
commit | f72d56de5092a10d78798f233e29b23d62cc425a (patch) | |
tree | c6b92bff7bd6f4506585785d640d1657c2f88ec1 /source3 | |
parent | aca4dbe0008fe76841b0191602f5da416931fe07 (diff) | |
download | samba-f72d56de5092a10d78798f233e29b23d62cc425a.tar.gz samba-f72d56de5092a10d78798f233e29b23d62cc425a.tar.xz samba-f72d56de5092a10d78798f233e29b23d62cc425a.zip |
s3-rpc_server: Only setup tcpip ports if epmapper is enabled.
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Mon Aug 1 12:31:59 CEST 2011 on sn-devel-104
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpc_server/rpc_service_setup.c | 6 |
1 files changed, 4 insertions, 2 deletions
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, |