Changeset 745 for trunk/server/docs-xml/manpages-3/idmap_tdb2.8.xml
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/docs-xml/manpages-3/idmap_tdb2.8.xml
r414 r745 8 8 <refmiscinfo class="source">Samba</refmiscinfo> 9 9 <refmiscinfo class="manual">System Administration tools</refmiscinfo> 10 <refmiscinfo class="version">3. 5</refmiscinfo>10 <refmiscinfo class="version">3.6</refmiscinfo> 11 11 </refmeta> 12 12 … … 29 29 In contrast to read only backends like idmap_rid, it is an allocating 30 30 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 "idmap uid" and "idmap gid". 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. 50 32 </para> 51 33 </refsynopsisdiv> … … 60 42 Defines the available matching uid and gid range for which the 61 43 backend is authoritative. 62 If the parameter is absent, Winbind fails over to use 63 the "idmap uid" and "idmap gid" 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. 65 54 </para></listitem> 66 55 </varlistentry> … … 72 61 73 62 <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> 76 78 The script should accept the following command line options. 77 79 </para> … … 94 96 ERR:yyyy 95 97 </programlisting> 96 97 <para>98 Note that the script should cover the complete range of SIDs99 that can be passed in for SID to Unix ID mapping, since otherwise100 SIDs unmapped by the script might get mapped to IDs that had101 previously been mapped by the script.102 </para>103 98 </refsect1> 104 99 … … 108 103 <para> 109 104 This example shows how tdb2 is used as a the default idmap backend. 110 It configures the idmap range through the global options for all111 domains encountered. This same range is used for uid/gid allocation.112 105 </para> 113 106 114 107 <programlisting> 115 108 [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 119 123 </programlisting> 120 124 </refsect1>
Note:
See TracChangeset
for help on using the changeset viewer.