1 <samba:parameter name="idmap config DOMAIN : OPTION"
4 xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
8 ID mapping in Samba is the mapping between Windows SIDs and Unix user
9 and group IDs. This is performed by Winbindd with a configurable plugin
10 interface. Samba's ID mapping is configured by options starting with the
11 <smbconfoption name="idmap config"/> prefix.
12 An idmap option consists of the <smbconfoption name="idmap config"/>
13 prefix, followed by a domain name or the asterisk character (*),
14 a colon, and the name of an idmap setting for the chosen domain.
18 The idmap configuration is hence divided into groups, one group
19 for each domain to be configured, and one group with the
20 asterisk instead of a proper domain name, which specifies the
21 default configuration that is used to catch all domains that do
22 not have an explicit idmap configuration of their own.
26 There are three general options available:
31 <term>backend = backend_name</term>
33 This specifies the name of the idmap plugin to use as the
34 SID/uid/gid backend for this domain. The standard backends are
36 (<citerefentry><refentrytitle>idmap_tdb</refentrytitle> <manvolnum>8</manvolnum> </citerefentry>),
38 (<citerefentry><refentrytitle>idmap_tdb2</refentrytitle> <manvolnum>8</manvolnum></citerefentry>),
40 (<citerefentry><refentrytitle>idmap_ldap</refentrytitle> <manvolnum>8</manvolnum></citerefentry>),
42 (<citerefentry><refentrytitle>idmap_rid</refentrytitle> <manvolnum>8</manvolnum></citerefentry>),
44 (<citerefentry><refentrytitle>idmap_hash</refentrytitle> <manvolnum>8</manvolnum></citerefentry>),
46 (<citerefentry><refentrytitle>idmap_autorid</refentrytitle> <manvolnum>8</manvolnum></citerefentry>),
48 (<citerefentry><refentrytitle>idmap_ad</refentrytitle> <manvolnum>8</manvolnum></citerefentry>)
50 (<citerefentry><refentrytitle>idmap_nss</refentrytitle> <manvolnum>8</manvolnum></citerefentry>).
51 The corresponding manual pages contain the details, but
55 The first three of these create mappings of their own using
56 internal unixid counters and store the mappings in a database.
57 These are suitable for use in the default idmap configuration.
58 The rid and hash backends use a pure algorithmic calculation
59 to determine the unixid for a SID. The autorid module is a
60 mixture of the tdb and rid backend. It creates ranges for
61 each domain encountered and then uses the rid algorithm for each
62 of these automatically configured domains individually.
63 The ad backend uses unix ids stored in Active Directory via
64 the standard schema extensions. The nss backend reverses
65 the standard winbindd setup and gets the unix ids via names
66 from nsswitch which can be useful in an ldap setup.
71 <term>range = low - high</term>
73 Defines the available matching uid and gid range for which the
74 backend is authoritative. For allocating backends, this also
75 defines the start and the end of the range for allocating
79 winbind uses this parameter to find the backend that is
80 authoritative for a unix ID to SID mapping, so it must be set
81 for each individually configured domain and for the default
82 configuration. The configured ranges must be mutually disjoint.
85 Note that the low value interacts with the <smbconfoption name="min domain uid"/> option!
90 <term>read only = yes|no</term>
92 This option can be used to turn the writing backends
93 tdb, tdb2, and ldap into read only mode. This can be useful
94 e.g. in cases where a pre-filled database exists that should
95 not be extended automatically.
101 The following example illustrates how to configure the <citerefentry>
102 <refentrytitle>idmap_ad</refentrytitle> <manvolnum>8</manvolnum>
103 </citerefentry> backend for the CORP domain and the
104 <citerefentry><refentrytitle>idmap_tdb</refentrytitle>
105 <manvolnum>8</manvolnum></citerefentry> backend for all other
106 domains. This configuration assumes that the admin of CORP assigns
107 unix ids below 1000000 via the SFU extensions, and winbind is supposed
108 to use the next million entries for its own mappings from trusted
109 domains and for local groups for example.
113 idmap config * : backend = tdb
114 idmap config * : range = 1000000-1999999
116 idmap config CORP : backend = ad
117 idmap config CORP : range = 1000-999999
121 <related>min domain uid</related>