lmdb dn2id code (was: Re: [ROADMAP] Catalyst's focus on Samba)

Andrew Bartlett abartlet at samba.org
Fri Apr 7 02:54:08 UTC 2017

On Tue, 2017-03-21 at 12:44 +0100, Arvid Requate via samba-technical
> Hi Andrew & Metze,
> Am Dienstag, 21. März 2017, 11:49:21 schrieb Stefan Metzmacher via
> samba-
> technical:
> > 
> Please also note that increasing the number of named databases in
> LMDB comes 
> at a price for startup, see mdb_env_set_maxdbs in the API:
> http://www.lmdb.tech/doc/group__mdb.html#gaa2fc2f1f37cb1115e733b62cab
> 2fcdbc
> OpenLDAP back-mdb currently limits this to 128 at compile time. You
> could 
> probably change that limit at runtime too though, when opening the 
> environment.
> The other limit too look out for are the 511 byte default key size
> limit. See 
> dn2id of back-mdb for a way around that. 

Thanks for the heads-up on that.

> I've isolated and re-implemented that 
> algorithm here: https://github.com/reqa/ldap-lmdb-dntree

I don't know if that is any use, but AGPLv3 is really awkward for a
licence on that code.  I'm curious why did you re-licence it away from
the OpenLDAP licence for a toy demo?

I any case, LDB needs to be LGPLv3 or later.  I don't expect we will
want to re-use that code, but you never know and I wanted to give you a
heads-up about the conflict.


Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team         https://samba.org
Samba Development and Support, Catalyst IT   

More information about the samba-technical mailing list