1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

docs-xml: Add "rpc start on demand helpers", true by default.

If "true" allow smbd and winbindd to spawn samba-dcerpcd
as a named pipe helper. Allows upgrade without any change
to smb.conf. If samba-dcerpcd is run as a daemon this
must be set to "false".

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:
Jeremy Allison 2021-10-04 14:39:03 -07:00 committed by Volker Lendecke
parent a697814eba
commit 8ffeb18b9a
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,22 @@
<samba:parameter name="rpc start on demand helpers"
context="G"
type="boolean"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
This global parameter determines if <command>samba-dcerpcd</command>
should be started on demand to service named pipe (np) DCE-RPC requests from
<command>smbd</command> or <command>winbindd</command>. This is the
normal case where no startup scripts have been modified to start
<command>samba-dcerpcd</command> as a daemon.
</para>
<para>
If <command>samba-dcerpcd</command> is started as a daemon
or via a system service manager such as systemd, this parameter
MUST be set to "no", otherwise <command>samba-dcerpcd</command>
will fail to start.
</para>
</description>
<value type="default">yes</value>
</samba:parameter>

View File

@ -2999,6 +2999,10 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
"min domain uid",
"1000");
lpcfg_do_global_parameter(lp_ctx,
"rpc start on demand helpers",
"yes");
for (i = 0; parm_table[i].label; i++) {
if (!(lp_ctx->flags[i] & FLAG_CMDLINE)) {
lp_ctx->flags[i] |= FLAG_DEFAULT;

View File

@ -980,6 +980,12 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
Globals.min_domain_uid = 1000;
/*
* By default allow smbd and winbindd to start samba-dcerpcd as
* a named-pipe helper.
*/
Globals.rpc_start_on_demand_helpers = true;
/* Now put back the settings that were set with lp_set_cmdline() */
apply_lp_set_cmdline();
}