s3:idmap:autorid: simplify the id->sid calculation
authorMichael Adam <obnox@samba.org>
Thu, 25 Apr 2013 18:24:36 +0000 (20:24 +0200)
committerChristian Ambach <ambi@samba.org>
Mon, 6 May 2013 14:33:40 +0000 (16:33 +0200)
commit9c6594dadbdd800470d4b217f1351fbba87989ba
tree214e5981e9ce341bad446e503e612529d149d022
parent7b9a567b8943e0c3d0b6fa97bea72f1b89aea4ab
s3:idmap:autorid: simplify the id->sid calculation

To make it more intutive.

rid = reduced_rid + domain_range_index * range_size

where

reduced_rid = (id - id_low) % range_size

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/winbindd/idmap_autorid.c