I have followed installing openLDAP from http://www.openldap.org/doc/admin24/quickstart.html and follow the tasks up to # 9. when I run [ su root -c /usr/local/libexec/slapd ] it asks for password and after I type the password no indication of if server has been started or not. When I run [ ldapsearch -x -b '' -s base '(objectclass=*)' namingContexts ] I get this error [ ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) ] I can't figure it out what is the problem. Can anyone help?
Thanks
It may be that slapd finds your configuration invalid, and therefore doesn't start.
To test this, run slaptest, with the same options and permissions. This should output error messages if something is wrong with the config. So something like:
try following commands to check whether slapd actually started:
something like below will come:
OR
something like below will come:
If slpad process is not listed by any of the above commands it means slapd is not started.
In this case you can try to run slpad with debug options:
-1 will enable all debugging. There are various other options you can google for these.
When you run
ps
is the slapd process listed? What is in the logs?