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

NAME

6       idmap_autorid - Samba's idmap_autorid Backend for Winbind
7

DESCRIPTION

9       The idmap_autorid backend provides a way to use an algorithmic mapping
10       scheme to map UIDs/GIDs and SIDs that is more deterministic than
11       idmap_tdb and easier to configure than idmap_rid.
12
13       The module works similar to idmap_rid, but it automatically configures
14       the range to be used for each domain, so there is no need to specify a
15       specific range for each domain in the forest, the only configuration
16       that is needed is the range of uid/gids that shall be used for
17       user/group mappings and an optional size of the ranges to be used.
18
19       The mappings of which domain is mapped to which range is stored in
20       autorid.tdb, thus you should backup this database regularly.
21
22       Due to the algorithm being used, it is the module that is most easy to
23       use as it only requires a minimal configuration.
24

IDMAP OPTIONS

26       rangesize = numberofidsperdomain
27           Defines the available number of uids/gids per domain. The minimum
28           needed value is 2000. SIDs with RIDs larger than this value cannot
29           be mapped, are ignored and the corresponding map is discarded.
30           Choose this value carefully, as this should not be changed after
31           the first ranges for domains have been defined, otherwise mappings
32           between domains will get intermixed leading to unpredictable
33           results. Please note that RIDs in Windows Domains usually start
34           with 500 for builtin users and 1000 for regular users. As the
35           parameter cannot be changed later, please plan accordingly for your
36           expected number of users in a domain with safety margins.
37
38           One range will be used for local users and groups. Thus the number
39           of local users and groups that can be created is limited by this
40           option as well. If you plan to create a large amount of local users
41           or groups, you will need set this parameter accordingly.
42
43           The default value is 100000.
44

THE MAPPING FORMULAS

46       The Unix ID for a RID is calculated this way:
47
48                          ID = IDMAP UID LOW VALUE + DOMAINRANGENUMBER * RANGESIZE + RID
49
50
51       Correspondingly, the formula for calculating the RID for a given Unix
52       ID is this:
53
54                          RID = ID - IDMAP UID LOW VALUE - DOMAINRANGENUMBER * RANGESIZE
55
56
57

EXAMPLES

59       This example shows you the minimal configuration that will work for the
60       principial domain and 19 trusted domains.
61
62                [global]
63                security = ads
64                workgroup = CUSTOMER
65                realm = CUSTOMER.COM
66
67                idmap config * : backend = autorid
68                idmap config * : range = 1000000-1999999
69
70
71
72       This example shows how to configure idmap_autorid as default for all
73       domains with a potentially large amount of users plus a specific
74       configuration for a trusted domain that uses the SFU mapping scheme.
75       Please note that idmap ranges and sfu ranges are not allowed to
76       overlap.
77
78                [global]
79                security = ads
80                workgroup = CUSTOMER
81                realm = CUSTOMER.COM
82
83                idmap config * : backend = autorid
84                idmap config * : range = 1000000-19999999
85                idmap config * : rangesize = 1000000
86
87                idmap config TRUSTED : backend  = ad
88                idmap config TRUSTED : range    = 50000 - 99999
89                idmap config TRUSTED : schema_mode = sfu
90
91

AUTHOR

93       The original Samba software and related utilities were created by
94       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
95       Source project similar to the way the Linux kernel is developed.
96
97
98
99Samba 3.6                         04/11/2016                  IDMAP_AUTORID(8)
Impressum