24.6. OpenLDAP Setup Overview

24.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 24.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 15, 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.