IDMAP_RID(8)
π idmap_rid β Samba's idmap_rid Backend for Winbind π
okay bestie, this is idmap_rid(8), a System Administration tool from section 8 of the manual, and it's genuinely one of the cuter little backends out there. let's get into it π«Ά
β¨ NAME β¨
idmap_rid β Samba's idmap_rid Backend for Winbind. that's the whole name, that's the whole vibe. πΈ
π DESCRIPTION π
so the idmap_rid backend is the girl who does math instead of keeping receipts. it provides a way to use an algorithmic mapping scheme to map UIDs/GIDs and SIDs. no database is required in this case, because the mapping is deterministic β like, it just knows. β¨
currently, there should to be an explicit idmap configuration for each domain that should use the idmap_rid backend, using disjoint ranges. (yes, "should to be" β that's the original wording, we don't touch the sacred text π
)
NOTE: theidmap_ridbackend can NOT be used as the default backend. one usually needs to define a writeable default idmap range, using a backend liketdborldapthat can create unix ids, in order to be able to map theBUILTINsids and other domains, and also in order to be able to create group mappings. see the example below. π
π IDMAP OPTIONS π
range = low - highβ defines the available matching uid and gid range for which the backend is authoritative. note that the range acts as a filter. if algorithmically determined UID or GID fall outside the range, they are ignored and the corresponding map is discarded. it is intended as a way to avoid accidental UID/GID overlaps between local and remotely defined IDs. it's giving bouncer at the club π«base_rid = INTEGERβ defines the base integer used to build SIDs out of a UID or a GID, and to rebase the UID or GID to be obtained from a SID. this means SIDs with a RID less than the base rid are filtered. the default is not to restrict the allowed rids at all, i.e. abase_ridvalue of0.
Use of this parameter is deprecated. π
π¦ THE MAPPING FORMULAS π¦
the Unix ID for a RID is calculated this way:
ID = RID - BASE_RID + LOW_RANGE_ID.
correspondingly, the formula for calculating the RID for a given Unix ID is this:
RID = ID + BASE_RID - LOW_RANGE_ID.
math ate, honestly. π₯
π EXAMPLES π
this example shows how to configure two domains with idmap_rid, the principal domain and a trusted domain, leaving the default id mapping scheme at tdb. the example also demonstrates the use of the base_rid parameter for the trusted domain. π§
[global]
security = domain
workgroup = MAIN
idmap config * : backend = tdb
idmap config * : range = 1000000-1999999
idmap config MAIN : backend = rid
idmap config MAIN : range = 10000 - 49999
idmap config TRUSTED : backend = rid
idmap config TRUSTED : range = 50000 - 99999
idmap config TRUSTED : base_rid = 500000
π AUTHOR π
the original Samba software and related utilities were created by Andrew Tridgell. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed. legends only, no cap. π
and that's the whole page, bestie! this was Samba 4.24.7, dated 09/09/2026 β idmap_rid, out. stay deterministic, slay algorithmic, and don't you dare set it as your default backend. mwah ππ β¨
π¦ where this page comes from
- fedora 44: samba-winbind 2:4.24.7-1.fc44 Β· GPL-3.0-or-later AND LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms