Add documentation for new parameter "config backend".
authorMichael Adam <obnox@samba.org>
Wed, 16 Jan 2008 17:26:57 +0000 (17:26 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 13:47:42 +0000 (08:47 -0500)
Adapt documentation of registry based configuration.

Michael

docs/manpages-3/smb.conf.5.xml
docs/smbdotconf/misc/include.xml
docs/smbdotconf/misc/lockdirectory.xml

index 2d54c3c182d8b34068acdf9369ddda19ca2c473e..87584de65008c2540763d46c1cfacf365fa116e5 100644 (file)
@@ -716,8 +716,8 @@ chmod 1770 /usr/local/samba/lib/usershares
 
        <para>
                Starting with Samba version 3.2.0, the capability to
-               store Samba configuration in the registry is available. 
-               There are two levels of registry configuration. 
+               store Samba configuration in the registry is available.
+               There are two levels of registry configuration.
        </para>
 
        <orderedlist continuation="restarts" inheritnum="ignore" numeration="arabic">
@@ -727,54 +727,38 @@ chmod 1770 /usr/local/samba/lib/usershares
                <quote>yes</quote> in <emphasis>smb.conf</emphasis>.
                </para>
 
-               <para>Note: Shares defined in <emphasis>smb.conf</emphasis> always take priority over 
+               <para>Note: Shares defined in <emphasis>smb.conf</emphasis>
+               always take priority over
                shares of the same name defined in registry.
                </para></listitem>
 
                <listitem><para>Global <emphasis>smb.conf</emphasis> options stored in
                registry are used. This
-               is triggered by a new special meaning of the
-               parameter <smbconfoption name="include">registry</smbconfoption> in
-               the [global] section of <emphasis>smb.conf</emphasis>. 
-               This reads the content of
-               the global configuration section from the regsitry
-               and includes the result with the same priorities as
-               an include of a text file. Activation of global
-               registry options automatically activates registry
-               shares.
+               is triggered by a new parameter
+               <smbconfoption name="config backend">registry</smbconfoption> in
+               the [global] section of <emphasis>smb.conf</emphasis>.
+               This this removes everything that has been red from config files
+               to this poing and reads the content of the global configuration
+               section from the regsitry
+               Activation of global registry options automatically
+               activates registry shares. In this case, no share definition
+               from smb.conf are read: This is a registry only configuration
+               with the advantage that share definitions are not read
+               in a bulk at startup time but on demand when a share is
+               accessed.
                </para></listitem>
        </orderedlist>
 
-       <para>  
-               Even when global registry options are used, the initial source of
-               configuration is still the <emphasis>smb.conf</emphasis> file. 
-               It is this possible though, to produce a registry-only configuration 
-               with a minimal configuration file like this:
-<programlisting>
-       <smbconfsection name="[global]"/>
-       <smbconfoption name="include">registry</smbconfoption>
-</programlisting>
-               This is also currently the only supported configuration with global
-               registry options activated. More precisely, it is only supported to 
-               specify options in <emphasis>smb.conf</emphasis>
-               <emphasis>before</emphasis> the
-               occurrence of 
-               <smbconfoption name="include">registry</smbconfoption>.
-       </para>
-
        <para>
                Caveat: To make registry-based configurations foolprof at least to a
-               certain extent, the use of <parameter>lock directory</parameter>
+               certain extent, the use of
+               <parameter>lock directory</parameter>,
+               <parameter>config backend</parameter>,
                and <parameter>include</parameter> inside the registry
                configuration has been disabled. Especially, by changing the
                <parameter>lock directory</parameter> inside the registry
                configuration, one would create a broken setup where the daemons
-               do not see the configuration they loaded once it is active. This
-               phenomenon can of course also be triggered by specifying
-               <parameter>lock directory</parameter> after the
-               <smbconfoption name="include">registry</smbconfoption> directive. 
-               This is why
-               this type of configuration is classified "unsupported" above.
+               do not see the configuration they loaded once it is active.
        </para>
 
        <para>
@@ -784,7 +768,7 @@ chmod 1770 /usr/local/samba/lib/usershares
                <emphasis><literal>HKLM\Software\Samba\smbconf</literal></emphasis>.
 
                More conveniently, the <emphasis>conf</emphasis> subcommand of the
-               <citerefentry><refentrytitle>net</refentrytitle> 
+               <citerefentry><refentrytitle>net</refentrytitle>
                <manvolnum>8</manvolnum></citerefentry> utility
                offers a dedicated interface to read and write the
                registry based configuration locally, i.e. directly
index d8179ef1b0d59bf07d238d4e42e545a0e654d228..1a08b49464d7e7d4931a7d44b909d68d4500f9ee 100644 (file)
        It takes the standard substitutions, except <parameter moreinfo="none">%u</parameter>, 
        <parameter moreinfo="none">%P</parameter> and <parameter moreinfo="none">%S</parameter>.
        </para>
-       
+</description>
+
        <para>
-       Since Samba version 3.0.26, setting 
-       <smbconfoption name="include">registry</smbconfoption> has
-       a special meaning: It does <emphasis>not</emphasis> include
-       a file named <emphasis>registry</emphasis> from the current working
-       directory, but instead reads the global configuration options 
-       from the registry. See the section on registry-based
-       configuration for details. Note that this option
-       automatically activates registry shares.
+               Note: This option can not be set inside registry
+               configurations.
        </para>
-</description>
 
 <value type="default"></value>
 <value type="example">/usr/local/samba/lib/admin_smb.conf</value>
index d96351a4fbaec547b9a2932e9b492c232a719f89..cbe10d5b8d758b6d6b812fc0083f60aee111b639 100644 (file)
@@ -9,6 +9,11 @@
        files will be placed.  The lock files are used to implement the 
        <smbconfoption name="max connections"/> option.
        </para>
+
+       <para>
+               Note: This option can not be set inside registry
+               configurations.
+       </para>
 </description>
 
 <value type="default">${prefix}/var/locks</value>