summaryrefslogtreecommitdiff
path: root/docs/docbook/smbdotconf/misc/sourceenvironment.xml
blob: c6b4ce368ff63ab49d254e0d2f8a77ebce44b065 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<samba:parameter name="source environment"
		 context="G"
		 advanced="1" developer="1"
		 xmlns:samba="http://samba.org/common">
<listitem>
	<para>This parameter causes Samba to set environment 
	variables as per the content of the file named.</para>

	<para>If the value of this parameter starts with a &quot;|&quot; character 
	then Samba will treat that value as a pipe command to open and 
	will set the environment variables from the output of the pipe.</para>

	<para>The contents of the file or the output of the pipe should 
	be formatted as the output of the standard Unix <command moreinfo="none">env(1)</command> command. This is of the form:</para>

	<para>Example environment entry:</para>

	<para><command moreinfo="none">SAMBA_NETBIOS_NAME = myhostname</command></para>

	<para>Default: <emphasis>No default value</emphasis></para>

	<para>Examples: <command moreinfo="none">source environment = |/etc/smb.conf.sh</command></para>

	<para>Example: <command moreinfo="none">source environment = 
	/usr/local/smb_env_vars</command></para>
</listitem>
</samba:parameter>