On 2013-01-14, Claudio Jeker <cje...@diehard.n-r-g.com> wrote: > On Mon, Jan 14, 2013 at 05:41:36PM -0200, Friedrich Locke wrote: >> Hi, >> >> i am trying to get openldap running, but my experience has been not that >> good. >> I have built and installed from ports. I can get it up and running but as >> soon as qmail tries to bind into it, it begins to consume memory up to all >> my available memory. >> >> I asked for help in the openldap mailing list and they got baffled, pretty >> baffled. >> I was told that in linux some special flags need to be supplied to BDB in >> order to get it working well. >> What about OpenBSD ? Have you tryied qmail-ldap + openldap on OBSD ? Faced >> anything similar ? >> I am aware that this problem persist from about two years ago, when i tried >> to get them working and the same problem arose. >> I waited beleving it would be fixed in a near future ... >> >> I am really interested in get it solved, although i have no knownledge on >> BDB internals ...... >> >> I am willing to hear .... >> > > Install openldap-server-2.3.43 and use LDBM. BDB on 64bit archs is borked. > We have the old version exactly for that around. >
I'm running 2.4.33 with BDB on amd64 and haven't seen this problem but my current use of it is not exactly heavyweight though, just mail routing, password, antispam config for a few hundred user accounts (using dovecot/postfix/amavis). I haven't run qmail-ldap for at least 10 years but your description "as soon as qmail tries to bind into it, it begins to consume memory" suggests that maybe it works with other clients - is that correct? any idea what qmail-ldap is doing differently? If you haven't already got reasonable logs you can add 'local4.* /var/log/ldap' to /etc/syslog.conf, touch /var/log/ldap, /etc/rc.d/syslogd reload - iirc this is enough to get binds/queries logged and might help shed some light.