s3:pdb_tdb and winbind_idmap.tdb

Michael Adam ma at sernet.de
Tue Dec 16 11:12:55 GMT 2008

Stefan (metze) Metzmacher wrote:
> I noticed pdb_tdb still uses winbind_idmap.tdb to store the "RID_COUNTER".
> That's very bad by design and also breaks cluster installations
> as winbind_idmap.tdb isn't syncronized between nodes, while
> passdb.tdb is.

Indeed, discussing this issue  with Metze yesterday, I was
shocked to learn that RID_COUNTER is stored (without use of
dbwrap) in the winbindd_tdb, and that the _only_ user of this
record sits in pdb_tdb.c ...

This had somehow escaped my attention up to now.

> I'd like change pdb_tdb to store the "NEXT_RID" counter in
> passdb.tdb. But we need to change the TDBSAM_VERSION to 4, that's
> why I think we should include that change into 3.3.0.
> I have attached the proposed patches (against master)
> Comments please:-)

+1 on the patches.

We definitely should fix this for 3.3.0.

Cheers - Michael

Michael Adam <ma at sernet.de>
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.SerNet.DE, mailto: Info @ SerNet.DE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 206 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20081216/d43c8884/attachment.bin

More information about the samba-technical mailing list