s3:idmap:autorid prevent fatal configuration changes
authorChristian Ambach <christian.ambach@de.ibm.com>
Wed, 16 Feb 2011 18:05:21 +0000 (19:05 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 23 Feb 2011 15:54:39 +0000 (16:54 +0100)
commit6d360c4e9cf6a9e5a99c415ced707e27cb217f96
tree58f0cc769fe788c94b1c0962447569c51419f903
parent171cc2dfce95f679dc8cb10048afd37f169698ca
s3:idmap:autorid prevent fatal configuration changes

as the autorid module relies on a stable minimum uid/gid value
and rangesize, it now saves the values used at first successful start
and refuses to work if these values get changed in smb.conf later.
Changing the values after the first mapping was done will result
in unpredictable behaviour.
Another check covers the maximum uid value. If this gets decreased
later and domain range mappings already exist that would result
in uid values higher than the new uid value, initialization will
be aborted
(cherry picked from commit 8283cdbb1f28517d3e25a958aede0e5a31131f90)
source3/winbindd/idmap_autorid.c