I am new to Red Hat Enterprise Linux 5.3(Tikanga) as well as to open ldap.As openldap comes by default with the red hat.So i have installed berkeley database db-5.3.15.tar.gz

Version of already installed OpenLdap: openldap-2.3.43-3.el5

When I am running slapd by command:

service ldap start

It is showing

Starting slapd: [ OK ]

but no slapd process is starting. Please suggest what is the problem.

Thanks.


first off, are you sure its not running by checking the following commands;

You can check that the ldap is actually running by using the command netstat -lntp | grep 389 and it should show something like this;

# netstat -lntp | grep 389
tcp        0      0 0.0.0.0:389                 0.0.0.0:*                   LISTEN      28783/slapd         
tcp        0      0 :::389                      :::*                        LISTEN      28783/slapd

If it is not running then try and start the command from the command line (so you can see any error messages to standard outout/error) like so;

# /usr/sbin/slapd -d 1
@(#) $OpenLDAP: slapd 2.3.43 (Feb 22 2012 15:59:04) $
        [email protected]:/builddir/build/BUILD/openldap-2.3.43/openldap-2.3.43/build-servers/servers/slapd
daemon_init: listen on ldap:///
daemon_init: 1 listeners to open...
...
slapd starting

my log file seems to be located by default in /var/log/slapd.log , so that is the first place to look for additional information.

If it is definitely not starting, then you can edit the /etc/openldap/slapd.conf file to increase the logging activity with the loglevel command;

#<http://www.zytrax.com/books/ldap/ch6/#loglevel>
#loglevel 3333
#loglevel filter
#loglevel stats
#loglevel ACL