s4: rid pool and other provision fixes
Andrew Bartlett
abartlet at samba.org
Sat Jun 26 02:52:58 MDT 2010
On Sat, 2010-06-26 at 10:23 +0200, Stefan (metze) Metzmacher wrote:
> Hi Andrew,
>
> >> And x is always 0, but I found that we need to create the RID Set for the
> >> local dc in provision, instead of runtime (when the first account is
> >> created).
> >
> > If we do this (and your logic sounds correct), then please add a test
> > that creates a new RID set manually in the testsuite. The 'make test'
> > vampire DC code - when eventually landed - should do this implicitly,
> > but an explicit test would be better. Otherwise, I fear that this code
> > will be untested, or when tested not easily debugged.
> >
> > I understand there may already be a bug here, caused by the way the rid
> > allocation code interacts with the objectclass_attrs code.
>
> after a 'make test TESTS=large.dc' we have this
>
> dn: CN=RID Set,CN=LOCALDC,OU=Domain Controllers,DC=samba,DC=example,DC=com
> rIDUsedPool: 1
> rIDAllocationPool: 1600-2099
> rIDPreviousAllocationPool: 1600-2099
> rIDNextRID: 2003
>
> after a full 'make test' we have this:
>
> dn: CN=RID Set,CN=LOCALDC,OU=Domain Controllers,DC=samba,DC=example,DC=com
> rIDUsedPool: 3
> rIDAllocationPool: 2600-3099
> rIDPreviousAllocationPool: 2600-3099
> rIDNextRID: 2859
>
> I think we don't need more explicit tests.
Ahh, great. Thanks for checking this.
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Cisco Inc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20100626/4e604301/attachment.pgp>
More information about the samba-technical
mailing list