~lefteris-nikoltsios/+junk/samba-lp1016895

« back to all changes in this revision

Viewing changes to docs/htmldocs/manpages/idmap_tdb.8.html

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2011-12-21 13:18:04 UTC
  • mfrom: (0.39.21 sid)
  • Revision ID: package-import@ubuntu.com-20111221131804-xtlr39wx6njehxxr
Tags: 2:3.6.1-3ubuntu1
* Merge from Debian testing.  Remaining changes:
  + debian/patches/VERSION.patch:
    - set SAMBA_VERSION_SUFFIX to Ubuntu.
  + debian/patches/error-trans.fix-276472:
    - Add the translation of Unix Error code -ENOTSUP to NT Error Code
    - NT_STATUS_NOT_SUPPORTED to prevent the Permission denied error.
  + debian/smb.conf:
    - add "(Samba, Ubuntu)" to server string.
    - comment out the default [homes] share, and add a comment about
      "valid users = %S" to show users how to restrict access to
      \\server\username to only username.
    - Set 'usershare allow guests', so that usershare admins are 
      allowed to create public shares in addition to authenticated
      ones.
    - add map to guest = Bad user, maps bad username to guest access.
  + debian/samba-common.config:
    - Do not change priority to high if dhclient3 is installed.
    - Use priority medium instead of high for the workgroup question.
  + debian/control:
    - Don't build against or suggest ctdb.
    - Add dependency on samba-common-bin to samba.
  + Add ufw integration:
    - Created debian/samba.ufw.profile
    - debian/rules, debian/samba.dirs, debian/samba.files: install
      profile
    - debian/control: have samba suggest ufw
  + Add apport hook:
    - Created debian/source_samba.py.
    - debian/rules, debian/samba.dirs, debian/samba-common-bin.files: install
  + Switch to upstart:
    - Add debian/samba.{nmbd,smbd}.upstart.
  + debian/samba.logrotate, debian/samba-common.dhcp, debian/samba.if-up:
    - Make them upstart compatible
  + debian/samba.postinst: 
    - Avoid scary pdbedit warnings on first import.
  + debian/samba-common.postinst: Add more informative error message for
    the case where smb.conf was manually deleted
  + debian/patches/fix-debuglevel-name-conflict.patch: don't use 'debug_level'
    as a global variable name in an NSS module 
  + Dropped:
    - debian/patches/error-trans.fix-276472
    - debian/patches/fix-debuglevel-name-conflict.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
        </p><p>
5
5
        In contrast to read only backends like idmap_rid, it is an allocating
6
6
        backend: This means that it needs to allocate new user and group IDs in
7
 
        order to create new mappings. The allocator can be provided by the
8
 
        idmap_tdb backend itself or by any other allocating backend like
9
 
        idmap_ldap or idmap_tdb2. This is configured with the
10
 
        parameter <em class="parameter"><code>idmap alloc backend</code></em>.
11
 
        </p><p>
12
 
        Note that in order for this (or any other allocating) backend to
13
 
        function at all, the default backend needs to be writeable.
14
 
        The ranges used for uid and gid allocation are the default ranges
15
 
        configured by "idmap uid" and "idmap gid".
16
 
        </p><p>
17
 
        Furthermore, since there is only one global allocating backend
18
 
        responsible for all domains using writeable idmap backends,
19
 
        any explicitly configured domain with idmap backend tdb
20
 
        should have the same range as the default range, since it needs
21
 
        to use the global uid / gid allocator. See the example below.
22
 
        </p></div><div class="refsect1" title="IDMAP OPTIONS"><a name="id266361"></a><h2>IDMAP OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">range = low - high</span></dt><dd><p>
 
7
        order to create new mappings.
 
8
        </p></div><div class="refsect1" title="IDMAP OPTIONS"><a name="id266342"></a><h2>IDMAP OPTIONS</h2><div class="variablelist"><dl><dt><span class="term">range = low - high</span></dt><dd><p>
23
9
                        Defines the available matching uid and gid range for which the
24
10
                        backend is authoritative.
25
 
                        If the parameter is absent, Winbind fails over to use
26
 
                        the "idmap uid" and "idmap gid" options
27
 
                        from smb.conf.
28
 
                </p></dd></dl></div></div><div class="refsect1" title="EXAMPLES"><a name="id266838"></a><h2>EXAMPLES</h2><p>
 
11
                </p></dd></dl></div></div><div class="refsect1" title="EXAMPLES"><a name="id266365"></a><h2>EXAMPLES</h2><p>
29
12
        This example shows how tdb is used as a the default idmap backend.
30
 
        It configures the idmap range through the global options for all
31
 
        domains encountered. This same range is used for uid/gid allocation.
32
 
        </p><pre class="programlisting">
33
 
        [global]
34
 
        # "idmap backend = tdb" is redundant here since it is the default
35
 
        idmap backend = tdb
36
 
        idmap uid = 1000000-2000000
37
 
        idmap gid = 1000000-2000000
38
 
        </pre><p>
39
 
        This (rather theoretical) example shows how tdb can be used as the
40
 
        allocating backend while ldap is the default backend used to store
41
 
        the mappings.
42
 
        It adds an explicit configuration for some domain DOM1, that
43
 
        uses the tdb idmap backend. Note that the same range as the
44
 
        default uid/gid range is used, since the allocator has to serve
45
 
        both the default backend and the explicitly configured domain DOM1.
46
 
        </p><pre class="programlisting">
47
 
        [global]
48
 
        idmap backend = ldap
49
 
        idmap uid = 1000000-2000000
50
 
        idmap gid = 1000000-2000000
51
 
        # use a different uid/gid allocator:
52
 
        idmap alloc backend = tdb
53
 
 
54
 
        idmap config DOM1 : backend = tdb
55
 
        idmap config DOM1 : range = 1000000-2000000
56
 
        </pre></div><div class="refsect1" title="AUTHOR"><a name="id266872"></a><h2>AUTHOR</h2><p>
 
13
        This configured range is used for uid and gid allocation.
 
14
        </p><pre class="programlisting">
 
15
        [global]
 
16
        # "backend = tdb" is redundant here since it is the default
 
17
        idmap config * : backend = tdb
 
18
        idmap config * : range = 1000000-2000000
 
19
        </pre></div><div class="refsect1" title="AUTHOR"><a name="id266838"></a><h2>AUTHOR</h2><p>
57
20
        The original Samba software and related utilities
58
21
        were created by Andrew Tridgell. Samba is now developed
59
22
        by the Samba Team as an Open Source project similar