OpenLDAP database has vanished

Tim Wiser timw at
Wed Apr 3 11:29:08 BST 2002


I'm a newcomer to FreeBSD so please be gentle with me!  I've got a BSD
server up and running with a view to moving our company email onto it (it's
currently living on an Exchange box).  As such, I've installed it with
sendmail, qpopper and openldap to provide directory services.  All was
running fine until this morning when I discovered that the LDAP service was
no longer working.  Initially I thought that the daemon wasn't running as
the server was restarted last week during some diagnostic work.  This was
indeed the case, and I restarted the daemon. However, it now refuses to hand
out any info in response to queries.

I am using the following webpage for guidance on getting LDAP running, as
it's the guide I originally followed and found most useful when getting it
working first time round:

I've created an LDIF file containing all the LDAP info for the company, and
if I do an ldapadd, it accepts the data quite happily.  I'm still not able
to successfully query the database though:

mail# ldapsearch -L -b "o=Pennine, c=UK" "(cn=Tim)"

... even though there should be (and certainly USED to be) an entry in the
database file that I fed ldif2ldbm for that user (ie: myself).

Basically, it seems that slapd has either forgotten or lost the LDAP

One other thing is that if I go into the /usr/local/libexec folder and run
the slapd file, it gives:

mail# cd /usr/local/libexec
mail# ls -la
total 799
drwxr-xr-x   3 root  wheel     512 Mar 27 12:19 .
drwxr-xr-x  13 root  wheel     512 Mar 27 12:19 ..
drwxr-xr-x   2 root  wheel    1024 Mar 27 12:20 apache
-rwxr-xr-x   1 root  wheel    9932 Mar 14 12:58 fax500
-r-xr-xr-x   1 root  wheel   83824 Sep 14  2001 fetchmailconf.bin
-rwxr-xr-x   1 root  wheel   13284 Mar 14 12:58 go500
-rwxr-xr-x   1 root  wheel   16836 Mar 14 12:58 go500gw
-rwxr-xr-x   1 root  wheel   10612 Mar 14 12:58 in.xfingerd
-r-xr-xr-x   1 bin   bin     85986 Mar 14 12:50 mail.local
-rwxr-xr-x   1 root  wheel   20776 Mar 14 12:58 mail500
-rwxr-xr-x   1 root  wheel  114196 Sep 13  2001 maildap
-r-xr-xr-x   1 root  wheel  124956 Mar 13 09:03 qpopper
-rwxr-xr-x   1 root  wheel   13264 Mar 14 12:58 rcpt500
-rwxr-xr-x   1 root  wheel    9932 Mar 14 12:58 rp500
-rwxr-xr-x   1 root  wheel  170880 Mar 14 12:58 slapd
-rwxr-xr-x   1 root  wheel   45268 Mar 14 12:58 slurpd
-r-xr-xr-x   1 bin   bin     56431 Mar 14 12:50 smrsh
-rwxr-xr-x   1 root  wheel    1694 Mar 14 12:57 xrpcomp
mail# slapd
slapd: Command not found.


Any help would be greatfully received :)

Tim Wiser, IT Support Specialist
timw at

"Why isn't there mouse-flavored cat food?"

More information about the Ukfreebsd mailing list