Openldap MDB - more questions!

Da Rock freebsd-questions at herveybayaustralia.com.au
Mon Nov 24 16:08:10 UTC 2014


I'm also now trying to get openldap to play nice with mdb given that it 
is the "recommended" database backend for it now- although the conf 
wasn't an issue excepting I'm playing with the new cn=config setup we're 
expected to use now as well (even though it is mainly broken).

My issue is that it seems to not respond like the older bdb/hdb 
databases. And when I say respond, I mean it hangs the ldapadd and makes 
slapd go into conniptions. I see slapd go to 100% WCPU and not come down 
as well as going into a uwait state. I've left it going for 10 minutes 
or more with no change, and I'm only adding 1 small entry of less the 10 
lines. Strangely, I can still view other entries in the specific db as 
well access the rest of the server, which I won't complain about (aren't 
threads a wonderful invention? :) ).

Anyone heard of this? Got a fix at all? Or should I just go back to ye 
'olde db backends? At this point I have a db I can't add anything to.

And before anyone asks, there is practically nothing in the logs that I 
can see; and I set the logging to everything (-1). I see recognition of 
the user in the acl and then nothing. The only curious entry is some 
blank lines and a number (that changes each time), so nothing informative.

I set it up using the cn=config (and I'm still not entirely convinced 
that I will keep cn=config, but apparently it could be gone next version 
according to the grapevine, so the consensus is to suck it up and get 
used to it or your panties will get in a bunch and around your ankles 
when upgrade comes along), and I've got only olcDBMaxSize. olcSizeLimit 
(not sure exactly which of these 2 can go just yet), olcDBMode, 
olcDBDirectory, and olcDatabase and the obviously root attrs. My max 
size I've set larger than 50M (so 7 digits) which is larger than what I 
have in another db so far, and I figure I can add more if needed - 
currently it is sitting at 64k.

Openldap version is 2.4.40_1 with bdb and mdb set in config. But I 
notice lmdb is not installed - is this right?

I'm on this for several days now with no further advancement so any help 
would be very welcome at this point. No googling seems to find anything 
remotely similar either.

TIA


More information about the freebsd-questions mailing list