{"id":3286,"date":"2022-12-20T17:02:14","date_gmt":"2022-12-20T20:02:14","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/idmap_rid-man8\/"},"modified":"2022-12-20T17:02:14","modified_gmt":"2022-12-20T20:02:14","slug":"idmap_rid-man8","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/idmap_rid-man8\/","title":{"rendered":"IDMAP_RID (man8)"},"content":{"rendered":"<h1 align=\"center\">IDMAP_RID<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#IDMAP OPTIONS\">IDMAP OPTIONS<\/a><br \/> <a href=\"#THE MAPPING FORMULAS\">THE MAPPING FORMULAS<\/a><br \/> <a href=\"#EXAMPLES\">EXAMPLES<\/a><br \/> <a href=\"#AUTHOR\">AUTHOR<\/a> <\/p>\n<hr>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">idmap_rid \u2212 Samba&#8217;s idmap_rid Backend for Winbind<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The idmap_rid backend provides a way to use an algorithmic mapping scheme to map UIDs\/GIDs and SIDs. No database is required in this case as the mapping is deterministic.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Currently, there should to be an explicit idmap configuration for each domain that should use the idmap_rid backend, using disjoint ranges.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">NOTE: The idmap_rid backend can NOT bet used as the default backend. One usually needs to define a writeable default idmap range, using a backend like <i>tdb<\/i> or <i>ldap<\/i> that can create unix ids, in order to be able to map the BUILTIN sids and other domains, and also in order to be able to create group mappings. See the example below.<\/p>\n<h2>IDMAP OPTIONS <a name=\"IDMAP OPTIONS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">range = low \u2212 high<\/p>\n<p style=\"margin-left:17%;\">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.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">base_rid = INTEGER<\/p>\n<p style=\"margin-left:17%;\">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. a base_rid value of 0.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">Use of this parameter is deprecated.<\/p>\n<h2>THE MAPPING FORMULAS <a name=\"THE MAPPING FORMULAS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">The Unix ID for a RID is calculated this way:<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"8%\"> <\/td>\n<td width=\"69%\"> <\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"7%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"8%\"><\/td>\n<td width=\"69%\">\n<p>ID = RID \u2212 BASE_RID + LOW_RANGE_ID.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:11%; margin-top: 1em\">Correspondingly, the formula for calculating the RID for a given Unix ID is this:<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">RID = ID + BASE_RID \u2212 LOW_RANGE_ID.<\/p>\n<h2>EXAMPLES <a name=\"EXAMPLES\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">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.<\/p>\n<p style=\"margin-left:17%; margin-top: 1em\">[global]<\/p>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>security = domain<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>workgroup = MAIN<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>idmap config bodies manpages.csv script_extrae_body.sh script.sh usr : backend = tdb<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>idmap config bodies manpages.csv script_extrae_body.sh script.sh usr : range = 1000000\u22121999999<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>idmap config MAIN : backend = rid<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>idmap config MAIN : range = 10000 \u2212 49999<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>idmap config TRUSTED : backend = rid<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"8%\"><\/td>\n<td width=\"92%\">\n<p>idmap config TRUSTED : range = 50000 \u2212 99999<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<h2>AUTHOR <a name=\"AUTHOR\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">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.<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  idmap_rid \u2212 Samba&#8217;s idmap_rid Backend for Winbind <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[5,52,419,4],"class_list":["post-3286","post","type-post","status-publish","format-standard","hentry","category-8-administracion-del-sistema","tag-5","tag-administracion","tag-idmap_rid","tag-man8"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3286","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=3286"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/3286\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=3286"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=3286"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=3286"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}