dsdb-ridalloc: Fix RID pools - RID numbers increase too quickly
authorAndrew Bartlett <abartlet@samba.org>
Sat, 22 Jun 2013 09:30:50 +0000 (19:30 +1000)
committerStefan Metzmacher <metze@samba.org>
Thu, 4 Jul 2013 18:13:05 +0000 (20:13 +0200)
commit2763cad409430c183f7f1f6f57bc6b38ae616ed9
treed332657afdf811befdfc7c2817dd44dbb2718b36
parent2536ee8b640c1257dbe28a977ae0b48a62093d0c
dsdb-ridalloc: Fix RID pools - RID numbers increase too quickly

A patch by Cove Schneider <cove_s@yahoo.com> who reports:

I noticed that the RID numbers seem to increase incrementally, then
will suddenly jump by 124501. Unless I'm misunderstanding, shouldn't
RID pool allocations just be 500 at a time?

e.g.  Adding accounts one after another on a single test instance here's how they're incrementing (from 4.0.6):
1596
1597
1598
1599
126100
126101
126102
...
126599

251100
...

251599

376100
...

The problem is that this complicates using sssd's AD integration, as
that it doesn't expect the RIDs to increase in a single domain so
quickly.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Stefan Metzmacher <metze@samba.org>
Autobuild-Date(master): Thu Jul  4 20:13:05 CEST 2013 on sn-devel-104
source4/dsdb/samdb/ldb_modules/ridalloc.c