diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2021-06-01 12:03:38 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2021-06-11 07:41:38 +0000 |
commit | 2a3b82ae2373c39a0a113d75a27a196b5233fe32 (patch) | |
tree | bbcf3228b638ad02b322838ef2b64f1e005c7a76 /python/samba/samdb.py | |
parent | 59d293b60608172ae61551c642d13d3b215924e4 (diff) | |
download | samba-2a3b82ae2373c39a0a113d75a27a196b5233fe32.tar.gz |
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>
Diffstat (limited to 'python/samba/samdb.py')
-rw-r--r-- | python/samba/samdb.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/samba/samdb.py b/python/samba/samdb.py index 66e95edff78..424d6d2e88a 100644 --- a/python/samba/samdb.py +++ b/python/samba/samdb.py @@ -1469,8 +1469,8 @@ schemaUpdateNow: 1 if prev_pool == uint64_max or next_rid == uint32_max: prev_pool = alloc_pool next_rid = prev_pool & uint32_max - - next_rid += 1 + else: + next_rid += 1 # Now check if our current pool is still usable prev_pool_lo = prev_pool & uint32_max |