Ignore:
Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/docs-xml/manpages-3/idmap_tdb2.8.xml

    r414 r745  
    88        <refmiscinfo class="source">Samba</refmiscinfo>
    99        <refmiscinfo class="manual">System Administration tools</refmiscinfo>
    10         <refmiscinfo class="version">3.5</refmiscinfo>
     10        <refmiscinfo class="version">3.6</refmiscinfo>
    1111</refmeta>
    1212
     
    2929        In contrast to read only backends like idmap_rid, it is an allocating
    3030        backend: This means that it needs to allocate new user and group IDs in
    31         order to create new mappings. The allocator can be provided by the
    32         idmap_tdb2 backend itself or by any other allocating backend like
    33         idmap_tdb or idmap_ldap. This is configured with the
    34         parameter <parameter>idmap alloc backend</parameter>.
    35         </para>
    36 
    37         <para>
    38         Note that in order for this (or any other allocating) backend to
    39         function at all, the default backend needs to be writeable.
    40         The ranges used for uid and gid allocation are the default ranges
    41         configured by &quot;idmap uid&quot; and &quot;idmap gid&quot;.
    42         </para>
    43 
    44         <para>
    45         Furthermore, since there is only one global allocating backend
    46         responsible for all domains using writeable idmap backends,
    47         any explicitly configured domain with idmap backend tdb2
    48         should have the same range as the default range, since it needs
    49         to use the global uid / gid allocator. See the example below.
     31        order to create new mappings.
    5032        </para>
    5133</refsynopsisdiv>
     
    6042                        Defines the available matching uid and gid range for which the
    6143                        backend is authoritative.
    62                         If the parameter is absent, Winbind fails over to use
    63                         the &quot;idmap uid&quot; and &quot;idmap gid&quot; options
    64                         from smb.conf.
     44                </para></listitem>
     45                </varlistentry>
     46
     47                <varlistentry>
     48                <term>script</term>
     49                <listitem><para>
     50                        This option can be used to configure an external program
     51                        for performing id mappings instead of using the tdb
     52                        counter. The mappings are then stored int tdb2 idmap
     53                        database. For details see the section on IDMAP SCRIPT below.
    6554                </para></listitem>
    6655                </varlistentry>
     
    7261
    7362        <para>
    74         The tdb2 idmap backend supports a script for performing id mappings
    75         through the smb.conf option <parameter>idmap : script</parameter>.
     63        The tdb2 idmap backend supports an external program for performing id mappings
     64        through the smb.conf option <parameter>idmap config * : script</parameter> or
     65        its deprecated legacy form <parameter>idmap : script</parameter>.
     66        </para>
     67
     68        <para>
     69        The mappings obtained by the script are then stored in the idmap tdb2
     70        database instead of mappings created by the incrementing id counters.
     71        It is therefore important that the script covers the complete range of
     72        SIDs that can be passed in for SID to Unix ID mapping, since otherwise
     73        SIDs unmapped by the script might get mapped to IDs that had
     74        previously been mapped by the script.
     75        </para>
     76
     77        <para>
    7678        The script should accept the following command line options.
    7779        </para>
     
    9496        ERR:yyyy
    9597        </programlisting>
    96 
    97         <para>
    98         Note that the script should cover the complete range of SIDs
    99         that can be passed in for SID to Unix ID mapping, since otherwise
    100         SIDs unmapped by the script might get mapped to IDs that had
    101         previously been mapped by the script.
    102         </para>
    10398</refsect1>
    10499
     
    108103        <para>
    109104        This example shows how tdb2 is used as a the default idmap backend.
    110         It configures the idmap range through the global options for all
    111         domains encountered. This same range is used for uid/gid allocation.
    112105        </para>
    113106
    114107        <programlisting>
    115108        [global]
    116         idmap backend = tdb2
    117         idmap uid = 1000000-2000000
    118         idmap gid = 1000000-2000000
     109        idmap config * : backend = tdb2
     110        idmap config * : range = 1000000-2000000
     111        </programlisting>
     112
     113        <para>
     114        This example shows how tdb2 is used as a the default idmap backend
     115        using an external program via the script parameter:
     116        </para>
     117
     118        <programlisting>
     119        [global]
     120        idmap config * : backend = tdb2
     121        idmap config * : range = 1000000-2000000
     122        idmap config * : script = /usr/local/samba/bin/idmap_script.sh
    119123        </programlisting>
    120124</refsect1>
Note: See TracChangeset for help on using the changeset viewer.