diff options
author | Michael Adam <obnox@samba.org> | 2013-04-26 01:06:58 +0200 |
---|---|---|
committer | Christian Ambach <ambi@samba.org> | 2013-05-06 18:23:56 +0200 |
commit | 8d34f2fe1e219a0be28bc6b8ce9f93620d39a5b2 (patch) | |
tree | 5abb140fb1727438690c91d7241bd573cc4e82f8 /docs-xml | |
parent | 7bc9563c96c0b91628ec501f8226c1adc24d083d (diff) | |
download | samba-8d34f2fe1e219a0be28bc6b8ce9f93620d39a5b2.tar.gz samba-8d34f2fe1e219a0be28bc6b8ce9f93620d39a5b2.tar.bz2 samba-8d34f2fe1e219a0be28bc6b8ce9f93620d39a5b2.zip |
docs: update the description of the formulas in the idmap_autorid manpage
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
Diffstat (limited to 'docs-xml')
-rw-r--r-- | docs-xml/manpages/idmap_autorid.8.xml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs-xml/manpages/idmap_autorid.8.xml b/docs-xml/manpages/idmap_autorid.8.xml index 8ce281d10d..c35f903d54 100644 --- a/docs-xml/manpages/idmap_autorid.8.xml +++ b/docs-xml/manpages/idmap_autorid.8.xml @@ -88,20 +88,20 @@ <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> |