Experimental environment:
REDHAT6.3
LDAP server:172.24.30.20
LDAP clent:172.24.30.25
Preparatory work:
Turn off iptables and SELinux before configuring to avoid errors during configuration.
# Service Iptables Stop
# Setenforce 0
# Vi/etc/sysconfig/selinux
---------------
Selinux=disabled
---------------
1.LDAP Server-side configuration:
Install LDAP Service (installed using Yum Local CD)
# yum Install openldap-*-y
Tip Install the following 4 packages
Openldap-devel-2.4.23-26.el6.x86_64
Openldap-clients-2.4.23-26.el6.x86_64
Openldap-2.4.23-26.el6.x86_64
Openldap-servers-2.4.23-26.el6.x86_64
Copy LDAP configuration file to LDAP directory (redhat6.3):
# cd/etc/openldap/
# Cp/usr/share/openldap-servers/slapd.conf.obsolete Slapd.conf
redhat6.0 or version 6.1 configuration files have backups in the home directory:
# cd/etc/openldap/
# CP Slapd.conf.bak slapd.conf
Create LDAP Administrator password:
# SLAPPASSWD
Here I entered the password is redhat, enter the password, return a string of ciphertext, first saved to the Clipboard
{ssha}pfajm+jja4ec2y8gjtc8umejpor5ykly
Compiling configuration files
# vi/etc/openldap/slapd.conf
Find 115 lines, default as shown:
Modified to: