Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


share|improve this question
Any relevant log records? – Khaled Apr 24 '12 at 7:16
where can i see the log? – Infotechie Apr 24 '12 at 7:26
besides this already installed openldap. I have installed both openldap and berkley db and tried to run it through slapd instead of service ldap start but that is also not running. Is it something like on red hat linux we can run openldap through "service ldap start" only? – Infotechie Apr 24 '12 at 7:29
up vote 1 down vote accepted

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       *                   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) $
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;

#loglevel 3333
#loglevel filter
#loglevel stats
#loglevel ACL
share|improve this answer
Thanks for the valuable information. It really helped me.Can you please guide how can I change the default port? – Infotechie Apr 24 '12 at 12:39
put something like SLAPD_OPTIONS="-h ldap://localhost:12345" in /etc/sysconfig/ldap – Tom H Apr 24 '12 at 13:58
there is no such directory/file named ldap i.e. i am only able to get /etc/openldap/ Inside this there is not ldap options. Any idea? – Infotechie Apr 25 '12 at 4:31
i have run the following command and it worked: slapd -h ldap://localhost:12345 -f usr/local/openldap_2.4/slapd.conf. But now i have another query how can i know which BDB it is referring as there are two bdb one is default and other is installed by me? – Infotechie Apr 25 '12 at 6:06
Its dependent on how you configured the additional root. I'd need to see the slapd.conf file. You can award this answer and paste the slapd.conf in another question and link to it here, and ill take a look. – Tom H Apr 25 '12 at 8:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.