diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-03-07 21:24:01 +1100 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-03-07 12:46:14 +0100 |
commit | 78f85b282ec52a320d0605c58cc51b7133bc0774 (patch) | |
tree | f79726f6133dc472b529618de95445ee774645a8 | |
parent | 781bb3617b9cf28dd001b919f970e60e74aac91d (diff) | |
download | samba-78f85b282ec52a320d0605c58cc51b7133bc0774.tar.gz samba-78f85b282ec52a320d0605c58cc51b7133bc0774.tar.bz2 samba-78f85b282ec52a320d0605c58cc51b7133bc0774.zip |
s3-rpc_server: Register embedded RPC services after starting lsasd and spoolssd
This ensures that these services are not accidentally registered in
these child processes.
Andrew Bartlett
-rw-r--r-- | source3/smbd/server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index cab23bc6d5..e348e0b5e0 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -1354,10 +1354,6 @@ extern void build_options(bool screen); } } - if (!dcesrv_ep_setup(ev_ctx, msg_ctx)) { - exit(1); - } - /* only start other daemons if we are running as a daemon * -- bad things will happen if smbd is launched via inetd * and we fork a copy of ourselves here */ @@ -1382,6 +1378,10 @@ extern void build_options(bool screen); } } + if (!dcesrv_ep_setup(ev_ctx, msg_ctx)) { + exit(1); + } + if (!is_daemon) { /* inetd mode */ TALLOC_FREE(frame); |