ntdb in Samba?

Jakub Hrozek jakub.hrozek at posteo.se
Sat Mar 14 14:37:49 MDT 2015


> On 13 Mar 2015, at 09:27, Andrew Bartlett <abartlet at samba.org> wrote:
>> 
>> And to be honest, NTDB is technologically an incremental, not
>> revolutionary enhancement.  Without the benefit of years of testing
>> which TDB has.
> 
> I've wondered if you think it might help in ldb?  I've not done the
> performance work to understand what (if anything) is 'slow', but have
> pondered if backing on ntdb or Howard's lmdb would be worthwhile.
> 
> Andrew Bartlett

Hi,

I've done some work on a mdb-based ldb backend in my spare time:
	https://github.com/jhrozek/samba-ldb-mdb/tree/mdb

It's by no means complete, but I hope it would be in some time. There's also a big amount of duplication between the tdb and mdb back ends, but I was planning to remove the duplication only when I knew the new backend would be useful. Also, even if the mdb back end wasn't accepted by Samba, I think the small fixes in the ldb code, documentation and tests could still be useful.

And while mentioning tests -- would Samba accept unit tests of the ldb API written using cmocka now that cmocka has a subunit output module? As far as I can see, the tests in tree mostly call the CLI ldb utilities, but don't test the API directly. I'm used to cmocka and I like it because it's lightweight yet powerful, but so far I've just added a cmocka-based test for my own code verification, so it would be nice to know if this part of my work could be merged to Samba at all.

Have a nice weekend!


More information about the samba-technical mailing list