[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Starting OpenLDAP: slapd - failed





--On Friday, March 20, 2009 03:11:59 PM -0700 Eldon Phukuile <ehpmail@yahoo.com> wrote:


I am following the tutorial at https://help.ubuntu.com/8.10/serverguide/C/openldap-server.html. Everything worked until...

Command:
sudo /etc/init.d/slapd restart

Output:
Stopping OpenLDAP: slapd.
Starting OpenLDAP: slapd - failed.
The operation failed but no output was produced. For hints on what went
wrong please refer to the system's logfiles (e.g. /var/log/syslog) or
try running the daemon in Debug mode like via "slapd -d 16383" (warning:
this will create copious output).

What do you see in the log file? Unless you have directed it somewhere else that is /var/log/syslog.


You also might try slaptest to make sure your configuration file is not broken.

Bill

Below, you can find the command line options used by this script to
run slapd. Do not forget to specify those options if you
want to look to debugging output:
 slapd -h 'ldap://127.0.0.1:389/ ldaps:/// ldapi:///' -g openldap -u
openldap -F /etc/ldap/slapd.d/

Command:
slapd -d 16383

Output:
@(#) $OpenLDAP: slapd 2.4.11 (Nov 8 2008 09:42:18) $
   Â
buildd@palmer:/build/buildd/openldap-2.4.11/debian/build/servers/slapd
ldap_pvt_gethostbyname_a: host=MORPHEUS.matrix.corp, r=0
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
ldap_url_parse_ext(ldap:///)
daemon: bind(7) failed errno=13 (Permission denied)
daemon: bind(7) failed errno=13 (Permission denied)
slap_open_listener: failed on ldap:///
slapd stopped.
connections_destroy: nothing to destroy.








+--------------------------------------------------------
| Bill MacAllister <whm@stanford.edu>
| Systems Software Programmer, ITS Unix Systems, Stanford University