1IDMAP_TDB2(8) System Administration tools IDMAP_TDB2(8)
2
3
4
6 idmap_tdb2 - Samba´s idmap_tdb2 Backend for Winbind
7
9 The idmap_tdb2 plugin is a substitute for the default idmap_tdb backend
10 used by winbindd for storing SID/uid/gid mapping tables in clustered
11 environments with Samba and CTDB.
12
13 In contrast to read only backends like idmap_rid, it is an allocating
14 backend: This means that it needs to allocate new user and group IDs in
15 order to create new mappings. The allocator can be provided by the
16 idmap_tdb2 backend itself or by any other allocating backend like
17 idmap_tdb or idmap_ldap. This is configured with the parameter idmap
18 alloc backend.
19
20 Note that in order for this (or any other allocating) backend to
21 function at all, the default backend needs to be writeable. The ranges
22 used for uid and gid allocation are the default ranges configured by
23 "idmap uid" and "idmap gid".
24
25 Furthermore, since there is only one global allocating backend
26 responsible for all domains using writeable idmap backends, any
27 explicitly configured domain with idmap backend tdb2 should have the
28 same range as the default range, since it needs to use the global uid /
29 gid allocator. See the example below.
30
32 range = low - high
33 Defines the available matching uid and gid range for which the
34 backend is authoritative. If the parameter is absent, Winbind fails
35 over to use the "idmap uid" and "idmap gid" options from smb.conf.
36
38 The tdb2 idmap backend supports a script for performing id mappings
39 through the smb.conf option idmap : script. The script should accept
40 the following command line options.
41
42 SIDTOID S-1-xxxx
43 IDTOSID UID xxxx
44 IDTOSID GID xxxx
45
46
47 And it should return one of the following responses as a single line of
48 text.
49
50 UID:yyyy
51 GID:yyyy
52 SID:yyyy
53 ERR:yyyy
54
55
56 Note that the script should cover the complete range of SIDs that can
57 be passed in for SID to Unix ID mapping, since otherwise SIDs unmapped
58 by the script might get mapped to IDs that had previously been mapped
59 by the script.
60
62 This example shows how tdb2 is used as a the default idmap backend. It
63 configures the idmap range through the global options for all domains
64 encountered. This same range is used for uid/gid allocation.
65
66 [global]
67 idmap backend = tdb2
68 idmap uid = 1000000-2000000
69 idmap gid = 1000000-2000000
70
71
73 The original Samba software and related utilities were created by
74 Andrew Tridgell. Samba is now developed by the Samba Team as an Open
75 Source project similar to the way the Linux kernel is developed.
76
77
78
79Samba 3.5 08/02/2011 IDMAP_TDB2(8)