idmap_autorid: factor out domain range adding code into a separate function
authorMichael Adam <obnox@samba.org>
Fri, 30 Aug 2013 13:19:28 +0000 (18:49 +0530)
committerMichael Adam <obnox@samba.org>
Tue, 1 Oct 2013 08:49:16 +0000 (10:49 +0200)
commit876a279937c6b6328cc9594b09426ceec1f819c8
treed9bf4266bfcd64d1e12f3457500f2c5014f2b226
parent8f809d9d5df14e27c68e0246bdcabed50e644c08
idmap_autorid: factor out domain range adding code into a separate function

This also adds a new mode to the new idmap_autorid_addrange() function
that allows to set a provided range if the range is available, instead
of the original only mode of automatically allocating a new range
by incrementing the HWM counter.

Pair-Programmed-With: Atul Kulkarni <atul.kulkarni@in.ibm.com>

Signed-off-by: Michael Adam <obnox@samba.org>
Signed-off-by: Atul Kulkarni <atul.kulkarni@in.ibm.com>
source3/winbindd/idmap_autorid_tdb.c