Error added: 2008-04-21T10:31:35Z
/etc/init.d/slapd stop slapadd -l your-recent-backup.ldif
put this command /usr/sbin/slapd_db_recover -v -h /var/lib/ldap
I commented out loglevel in slapd.conf. This fixes the err 22 and lets you run slapadd which will fix the id2entry.bdb error you will get until you slapadd something into the ldap database. Apparently the dbd freaks if it can\'t log. You can also leave the loglevel uncommented and put local4.* /var/log/slapd.log into /etc/syslog.conf and this will fix err 22 as well. Worked for me, good luck.
put this command /usr/sbin/slapd_db_recover -v -h /var/lib/ldap
What if you don\'t have a backup to restore? As in this is a fresh install of ldap and it gives this error?
If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people
struggling with this too.
If you want to be notified via email when this is solved, enter your email address here: