ridalloc: Don't skip the first RID of a pool
commit2a3b82ae2373c39a0a113d75a27a196b5233fe32
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 1 Jun 2021 00:03:38 +0000 (1 12:03 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 11 Jun 2021 07:41:38 +0000 (11 07:41 +0000)
treebbcf3228b638ad02b322838ef2b64f1e005c7a76
parent59d293b60608172ae61551c642d13d3b215924e4
ridalloc: Don't skip the first RID of a pool

Previously, if either of the rIDPreviousAllocation and rIDNextRID
attributes were not present in a RID Set, the first RID in
rIDAllocationPool was skipped over when determining their values.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
python/samba/samdb.py
python/samba/tests/dsdb.py
source4/dsdb/samdb/ldb_modules/ridalloc.c