1IDMAP_RID(8)              System Administration tools             IDMAP_RID(8)
2
3
4

NAME

6       idmap_rid - Samba's idmap_rid Backend for Winbind
7

DESCRIPTION

9       The idmap_rid backend provides a way to use an algorithmic mapping
10       scheme to map UIDs/GIDs and SIDs. No database is required in this case
11       as the mapping is deterministic.
12
13       Note that the idmap_rid module has changed considerably since Samba
14       versions 3.0. and 3.2. Currently, there should to be an explicit idmap
15       configuration for each domain that should use the idmap_rid backend,
16       using disjoint ranges. One usually needs to define a writeable default
17       idmap range, using a backent like tdb or ldap that can create unix ids,
18       in order to be able to map the BUILTIN sids and other domains, and also
19       in order to be able to create group mappings. See the example below.
20
21       Note that the old syntax idmap backend = rid:"DOM1=range DOM2=range2
22       ..."  is not supported any more since Samba version 3.0.25.
23

IDMAP OPTIONS

25       range = low - high
26           Defines the available matching uid and gid range for which the
27           backend is authoritative. Note that the range acts as a filter. If
28           algorithmically determined UID or GID fall outside the range, they
29           are ignored and the corresponding map is discarded. It is intended
30           as a way to avoid accidental UID/GID overlaps between local and
31           remotely defined IDs.
32
33       base_rid = INTEGER
34           Defines the base integer used to build SIDs out of a UID or a GID,
35           and to rebase the UID or GID to be obtained from a SID. This means
36           SIDs with a RID less than the base rid are filtered. The default is
37           not to restrict the allowed rids at all, i.e. a base_rid value of
38           0. A good value for the base_rid can be 1000, since user RIDs by
39           default start at 1000 (512 hexadecimal).
40
41           Use of this parameter is deprecated.
42

THE MAPPING FORMULAS

44       The Unix ID for a RID is calculated this way:
45
46                          ID = RID - BASE_RID + LOW_RANGE_ID.
47
48
49       Correspondingly, the formula for calculating the RID for a given Unix
50       ID is this:
51
52                          RID = ID + BASE_RID - LOW_RANGE_ID.
53
54
55

EXAMPLES

57       This example shows how to configure two domains with idmap_rid, the
58       principal domain and a trusted domain, leaving the default id mapping
59       scheme at tdb. The example also demonstrates the use of the base_rid
60       parameter for the trusted domain.
61
62                [global]
63                security = domain
64                workgroup = MAIN
65
66                idmap config * : backend        = tdb
67                idmap config * : range          = 1000000-1999999
68
69                idmap config MAIN : backend     = rid
70                idmap config MAIN : range       = 10000 - 49999
71
72                idmap config TRUSTED : backend  = rid
73                idmap config TRUSTED : range    = 50000 - 99999
74                idmap config TRUSTED : base_rid = 1000
75
76

AUTHOR

78       The original Samba software and related utilities were created by
79       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
80       Source project similar to the way the Linux kernel is developed.
81
82
83
84Samba 3.6                         04/11/2016                      IDMAP_RID(8)
Impressum