From 8d34f2fe1e219a0be28bc6b8ce9f93620d39a5b2 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 26 Apr 2013 01:06:58 +0200 Subject: docs: update the description of the formulas in the idmap_autorid manpage Signed-off-by: Michael Adam Reviewed-by: Christian Ambach Autobuild-User(master): Christian Ambach Autobuild-Date(master): Mon May 6 18:23:56 CEST 2013 on sn-devel-104 --- docs-xml/manpages/idmap_autorid.8.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'docs-xml') 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 @@ The Unix ID for a RID is calculated this way: - ID = IDMAP UID LOW VALUE + DOMAINRANGENUMBER * RANGESIZE + RID - - (MULTIPLIER * RANGESIZE) + ID = REDUCED RID + IDMAP RANGE LOW VALUE + RANGE NUMBER * RANGE SIZE + 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). Correspondingly, the formula for calculating the RID for a given Unix ID is this: - RID = ID - IDMAP UID LOW VALUE - DOMAINRANGENUMBER * RANGESIZE - + (MULTIPLIER * RANGESIZE) + RID = (ID - LOW ID) % RANGE SIZE + DOMAIN RANGE INDEX * RANGE SIZE - - - 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 . -- cgit