docs: update the description of the formulas in the idmap_autorid manpage
authorMichael Adam <obnox@samba.org>
Thu, 25 Apr 2013 23:06:58 +0000 (01:06 +0200)
committerChristian Ambach <ambi@samba.org>
Mon, 6 May 2013 16:23:56 +0000 (18:23 +0200)
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
Autobuild-User(master): Christian Ambach <ambi@samba.org>
Autobuild-Date(master): Mon May  6 18:23:56 CEST 2013 on sn-devel-104

docs-xml/manpages/idmap_autorid.8.xml

index 8ce281d10d25e9fa34e6fe179d59968d668f9636..c35f903d541568bca557d4589abde865d55a3da2 100644 (file)
        <para>
                The Unix ID for a RID is calculated this way:
                <programlisting>
-                       ID = IDMAP UID LOW VALUE + DOMAINRANGENUMBER * RANGESIZE + RID
-                       - (MULTIPLIER * RANGESIZE)
+                       ID =  REDUCED RID + IDMAP RANGE LOW VALUE + RANGE NUMBER * RANGE SIZE
                </programlisting>
+               where REDUCED RID = RID % RANGE_SIZE
+               and a DOMAIN RANGE INDEX = RID / RANGE_SIZE is used together with the
+               domain sid to determine the RANGE NUMBER (stored in the database).
        </para>
        <para>
                Correspondingly, the formula for calculating the RID for a
                given Unix ID is this:
                <programlisting>
-                       RID = ID - IDMAP UID LOW VALUE - DOMAINRANGENUMBER * RANGESIZE
-                       + (MULTIPLIER * RANGESIZE)
+                       RID = (ID - LOW ID) % RANGE SIZE + DOMAIN RANGE INDEX * RANGE SIZE
                </programlisting>
-       </para>
-       <para>
-               MULTIPLIER is calculated as FLOOR(RID / RANGESIZE).
+               Where the DOMAIN RANGE INDEX is retrieved from the database along with the
+               domain sid by the RANGE NUMBER = (ID - LOW ID) / RANGE SIZE .
        </para>
 </refsect1>