Install OpenLDAP Server on CentOS

This section provides a tutorial example on how to install OpenLDAP server on a CentOS 6 computer.

How To Install OpenLDAP Server on CentOS Systems? There are two options to install OpenLDAP on CentOS Systems:

Here are steps to install OpenLDAP Server on CentOS 6.

1. Set the "base" package repository to getpagespeed.com, which is the only repository available for CentOS 6 packages.

herong$ sudo curl https://www.getpagespeed.com/files/centos6-eol.repo \
  --output /etc/yum.repos.d/CentOS-Base.repo

2. Install OpenLDAP server package.

herong$ sudo yum install openldap-servers

Installed:
  openldap-servers.i686 0:2.4.40-16.el6

3. Start the OpenLDAP server.

herong$ sudo service slapd start
Starting slapd:                                            [  OK  ]

herong$ sudo service slapd status
slapd (pid  24192) is running...

4. Verify the server installation.

herong$ sudo slaptest
  60597f72 bdb_db_open: warning -
    no DB_CONFIG file found in directory /var/lib/ldap: (2).
  Expect poor performance for suffix "dc=my-domain,dc=com".
  config file testing succeeded

herong$ sudo slapcat
  6059383f The first database does not allow slapcat;
    using the first available one (2)
  6059383f bdb_db_open: warning -
    no DB_CONFIG file found in directory /var/lib/ldap: (2).
  Expect poor performance for suffix "dc=my-domain,dc=com".

The output tells us that:

See other tutorials on how to configure OpenLDAP server and add directory entries.

Table of Contents

 About This Book

 Introduction to Linux Systems

 Cockpit - Web Portal for Administrator

 Process Management

 Files and Directories

 Users and Groups

 File Systems

 Block Devices and Partitions

 LVM (Logical Volume Manager)

 Installing CentOS

 SELinux - Security-Enhanced Linux

 Network Connection on CentOS

 Internet Networking Tools

 SSH Protocol and ssh/scp Commands

 Software Package Manager on CentOS - DNF and YUM

 vsftpd - Very Secure FTP Daemon

LDAP (Lightweight Directory Access Protocol)

 What Is LDAP

 What Is OpenLDAP

Install OpenLDAP Server on CentOS

 Configure OpenLDAP Server on CentOS

 Use OpenLDAP Client Tools

 Delete or Modify LDAP Entries

 LDIF File Format

 Hierarchical Structure of LDAP Entries

 Install OpenLDAP Server on CentOS 8

 Configure Mozilla Thunderbird to Use LDAP

 LDAP Attributes Mapping in Mozilla Thunderbird

 Configure Apple iPhone to Use LDAP

 Administrative Tasks

 References

 Full Version in PDF/EPUB