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 22:06:22 +0000 (00:06 +0200)
commit6e08f5a7924fbf55477a1f53a72f23236c01c1d6
tree7e5ced066657957f7d8c526700daf27289f5b472
parent69dbc1577b113918e0ac7ffbfcfa1b54f51daf71
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>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/winbindd/idmap_autorid_tdb.c