(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Category) Why did 'cd tests; make test' fail? : (Answer) make test failed with "ldap_bind: Can't contact LDAP server"
The ldap server could not be started successfully. Take a look at the log file (openldap installation home)/tests/test-db/master.log it should tell you why slapd did not start
jwkaltz@yahoo.com
If you installed additional shared support libraries, such as Berkeley DB 4, on a Linux system in order to build slapd, make sure that the shared library directories such as /usr/local/lib (or where ever you install them) appear in /etc/ld.so.conf AND that you execute "ldconfig" after updating it. Doh!
achowe@snert.com
In 2.2.11, there is no such directory as tests/test-db and no such file as master.log.
The closest thing I've been able to come up with is tests/testrun/slapd.1.log.
This is a problem that is commonly caused by a version mismatch of bdb. If you have just compiled a new version of bdb, this is may be what happened to you.

Before you run ./configure on OpenLDAP, use:

$ export CPPFLAGS="-I/usr/local/BerkeleyDB.4.2/include"
$ export LDFLAGS="-L/usr/local/BerkeleyDB.4.2/lib"
$ export LD_LIBRARY_PATH=/root/db-4.2.52.NC/build_unix/.libs

This will specify where the proper files are for the new version of bdb. Be sure to change the paths to match your situation. After this is done, run ./configure, make depend, and make. Your new make test should hopefully work.

A big thanks to dmay on the devshed forums for the solution.

Another possibility is a version mismatch of libsasl2.so.2. A solution that comes to mind is copying in the new version of it from /usr/local/lib to /usr/lib. That seems to have solved the problem for me.

Also, if you want more information on what your actual problem is, go into the servers/slapd folder (after compiling) and run:

./slapd -d 256


[Append to This Answer]
Previous: (Answer) slapd says "ldbm_db_errcall(): =< illegal flag", what do I do?
Next: (Answer) Did you check master.log for hints?
This document is: http://www.openldap.org/faq/index.cgi?file=552
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org