diff options
author | Andreas Schneider <asn@samba.org> | 2011-07-14 10:40:53 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2011-08-01 11:08:36 +0200 |
commit | d189d2bf32c9ddb9d13a61586f17da97aea83663 (patch) | |
tree | a2327a8236ef604dd25479dacf8a200af8e347af /source3/smbd | |
parent | 176ce4b42f6629fe33a2ff51b3c70bb74c109637 (diff) | |
download | samba-d189d2bf32c9ddb9d13a61586f17da97aea83663.tar.gz samba-d189d2bf32c9ddb9d13a61586f17da97aea83663.tar.bz2 samba-d189d2bf32c9ddb9d13a61586f17da97aea83663.zip |
s3-rpc_server: Use rpc_epmapper_mode().
Remove embedded mode cause this will not work. It was only there for
testing.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 650077d7ac..d10f59cc46 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1241,12 +1241,9 @@ extern void build_options(bool screen); } if (is_daemon && !interactive) { - const char *rpcsrv_type; + enum rpc_service_mode_e epm_mode = rpc_epmapper_mode(); - rpcsrv_type = lp_parm_const_string(GLOBAL_SECTION_SNUM, - "rpc_server", "epmapper", - "none"); - if (strcasecmp_m(rpcsrv_type, "daemon") == 0) { + if (epm_mode == RPC_SERVICE_MODE_DAEMON) { start_epmd(ev_ctx, msg_ctx); } } |