25.6. OpenLDAP Setup Overview

25.6. OpenLDAP Setup Overview

This section provides a quick overview for installing and configuring an OpenLDAP directory. For more details, refer to the following URLs:

The basic steps for creating an LDAP server are as follows:

  1. Install the openldap, openldap-servers, and openldap-clients RPMs.

  2. Edit the /etc/openldap/slapd.conf file to specify the LDAP domain and server. Refer to Section 25.6.1, “Editing /etc/openldap/slapd.conf for more information.

  3. Start slapd with the command:

    /sbin/service ldap start

    After configuring LDAP, use chkconfig, /usr/sbin/ntsysv, or the Services Configuration Tool to configure LDAP to start at boot time. For more information about configuring services, refer to Chapter 16, Controlling Access to Services.

  4. Add entries to an LDAP directory with ldapadd.

  5. Use ldapsearch to determine if slapd is accessing the information correctly.

  6. At this point, the LDAP directory should be functioning properly and can be configured with LDAP-enabled applications.

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.