[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...

sudo /etc/init.d/slapd restart

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.


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:// ldaps:/// ldapi:///' -g openldap -u
openldap -F /etc/ldap/slapd.d/

slapd -d 16383

@(#) $OpenLDAP: slapd 2.4.11 (Nov 8 2008 09:42:18) $
ldap_pvt_gethostbyname_a: host=MORPHEUS.matrix.corp, r=0
daemon_init: <null>
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
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