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

Arvid Requate requate at univention.de
Mon Apr 10 09:55:59 UTC 2017


On Fri, 7. April 2017, 14:54:08 Andrew Bartlett wrote:
> On Tue, 2017-03-21 at 12:44 +0100, Arvid Requate via samba-technical
> 
> wrote:
> > 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 reimplemented the code for an internal cache used in UCS and just took the 
license boilerplate from UCS. Thanks for poking me about that, I've changed it 
to be OpenLDAP.

> 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.

Ah, ok, good to know.

Cheers,
Arvid


-- 
Arvid Requate
Open Source Software Engineer

Univention GmbH
be open.
Mary-Somerville-Str.1
28359 Bremen
Tel. : +49 421 22232-52
Fax : +49 421 22232-99

Geschäftsführer: Peter H. Ganten
HRB 20755 Amtsgericht Bremen
Steuer-Nr.: 71-597-02876



More information about the samba-technical mailing list