Redhat 6 to build the LDAP Service

Source: Internet
Author: User
Tags ldap administrator password iptables openldap

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:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.