How to Verify the LDAP or slapd Process in Zimbra

zimbraZimbra LDAP service running on OpenLDAP software. It is the directory service and identified when the Zimbra software is installed together with it’s own Zimbra schema. Zimbra LDAP service is used in Zimbra Collaboration Suite (ZCS) to store data for Zimbra Global configuration, user and authentication information, server, domain and class of service (COS) details. The following task will be very useful to zimbra system administrator in order to Verify the LDAP or slapd process in Zimbra. The command has been tested on ZCS 8.0.4 open-source version running on CentOS 6.4. I have documented these post as my own tutorial and also for my blog visitors reference.

READ  Three Ways to Configure Persistent Static Routes on Linux CentOS

1. How to verify ldap status in zimbra. Run as the zimbra user :

[zimbra@centos64 ~]$ ldap status
slapd running pid: 1351

2. How to verify that the slapd process is running or not :

ps auxww | grep zimbra | grep slapd

Example :

[zimbra@centos64 ~]$ ps auxww | grep zimbra | grep slapd
zimbra    1351  0.1  3.9 18840944 75268 ?      Ssl  16:44   0:08 /opt/zimbra/openldap/sbin/slapd -l LOCAL0 -u zimbra -h ldap://centos64.ehowstuff.local:389 ldapi:/// -F /opt/zimbra/data/ldap/config
zimbra   42865  0.0  0.0   6376   724 pts/0    S+   18:01   0:00 grep slapd

3. To detect connection failure on default ldap port, 389, run telnet command :

Result if run from zimbra server itself :

[zimbra@centos64 ~]$ telnet centos64.ehowstuff.local 389
Connected to centos64.ehowstuff.local.
Escape character is '^]'.
telnet> quit
Connection closed.

4. How to Stop and Start ldap in zimbra. Run as the zimbra user :
Start ldap :

[zimbra@centos64 ~]$ ldap stop
Killing slapd with pid 1351 done.

Stop ldap :

[zimbra@centos64 ~]$ ldap start
Started slapd: pid 47807

5. Verify ldap status from zmcontrol command :

[zimbra@centos64 ~]$ zmcontrol status
Host centos64.ehowstuff.local
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        memcached               Running
        mta                     Running
        opendkim                Running
        proxy                   Running
        snmp                    Running
        spell                   Running
        stats                   Running
        zmconfigd               Running
Leave a Reply

Your email address will not be published. Required fields are marked *

A world leading hosting company that provides fully-managed innovative and secure solutions, suitable for hosting small to medium-sized websites

Built on the best available technologies combined with Google Cloud for strong redundancy and application availability. Backed by skilled experts to address web security threats, a devops team to create advanced custom security solutions, and 24/7 sysadmins to watch over the platform. This powerful, hands-on approach makes your sites faster, safer, and easier to manage. Starting from only $3.95/mo.


* up to 30 days money back guarantee