s3:idmap:autorid prevent fatal configuration changes
commit8283cdbb1f28517d3e25a958aede0e5a31131f90
authorChristian Ambach <christian.ambach@de.ibm.com>
Wed, 16 Feb 2011 18:05:21 +0000 (16 19:05 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 23 Feb 2011 14:59:11 +0000 (23 15:59 +0100)
treef70fb4e4b0a38d707a1a57ef96ea44ecff2df20b
parentab64634a2070042d96da7aadc7fff2ea97199c0e
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
source3/winbindd/idmap_autorid.c