Why Does My slapd Starts So Slow

Hi guys. I am very new to FreeBSD. I am currently trying to configure an LDAP server on a jail system. But, whenever I try running service slapd restart, it takes like a few minutes just to start.

I checked the /var/log/debug.log after setting log level to any but there isn't much useful information that I could find. But just to give more context (I am not sure why does the second line takes 4 minutes to run):

Code:
Oct 12 19:40:21 host slapd[26592]: slapd stopped.
Oct 12 19:40:21 host slapd[91278]: @(#) $OpenLDAP: slapd 2.4.49 (Oct  9 2023 15:13:05) $     root@host:/var/ports/basejail/usr/ports/net/openldap24-server/work/openldap-2.4.49/servers/slapd
Oct 12 19:44:29 host slapd[91278]: /usr/local/etc/openldap/slapd.conf: line 71 (database        mdb)

I have configured an LDAP server and client on the same jail if that matters (cuz because I think it only started doing this once I have configured it, but I am not 100% sure).

I also doubt that it is a database issue, because I only have less than 10 entries in it.

Any help would be greatly appreciated. Thanks a lot guys.
 
I read something similar recently, I'm not sure if it was this.

Other causes:


UPDATED:

I was wrong, it was more recent:

PR 141890
 
Back
Top