[PATCH] idmap autorid extension to support rid greater than rangesize
Abhidnya S Joshi
achirmul at in.ibm.com
Tue Apr 2 04:38:35 MDT 2013
Hi,
Please find attached patch for multiple range support in autorid idmap
module. This patch applies to master branch.
The autorid man page says:
"SIDs with RIDs larger than rangesize cannot be mapped, are ignored and
the corresponding map is discarded. Choose this value carefully, as this
should not be changed after the first ranges for domains have been
defined, otherwise mappings between domains will get intermixed leading to
unpredictable results. As the parameter cannot be changed later, please
plan accordingly for your expected number of users in a domain with safety
margins."
In production environment, it sometimes becomes difficult to plan max rid
in advance and thus rangesize. With this patch, autorid module will be
able to support rids larger than rangesize.(Provided range is available)
e.g. The existing method is ID = IDMAP UID LOW VALUE + DOMAINRANGENUMBER *
RANGESIZE + RID
This patch will use ID = IDMAP UID LOW VALUE + DOMAINRANGENUMBER *
RANGESIZE + RID – ( MULTIPLIER * RANGESIZE)
where Multiplier is an unsigned integer which defines the number of
ranges to skip while allocating a range. It is calculated by dividing
incoming RID with RangeSize.
Note: This is just extension to autorid and will not hanmper existing
functionality
Thanks and Regards
Abhidnya Joshi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-winbindd-autorid-multiple-range-support.patch
Type: application/octet-stream
Size: 5234 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130402/2fd5e25a/attachment.obj>
More information about the samba-technical
mailing list