--- /dev/null
+<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>
"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;
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();
}