Linux environment to build LDAP server

Source: Internet
Author: User
Tags ldap administrator password openldap

First of all, ensure Linux normal networking

Yum Install OpenLDAP-servers- y

Copy configuration file

cd/usr/share/openldap-servers/

CP SLAPD. conf.OBSOLETE/ETC/OPENLDAP/SLAPD.conf

Create an LDAP administrator password

slappasswd

Input 123456 For example

New Password:

Re-enter New password:

{Ssha}lqzythq/qszjrapzvi+d08jnbamz9tws

Edit SLAPD configuration file

VIM/ETC/OPENLDAP/SLAPD. conf

Delete the default configuration (otherwise an error will be added when LDAP user)

RM-RF/ETC/OPENLDAP/SLAPD. D/*

Set directory Permissions

Chown- R ldap:ldap/etc/openldap/

Chown- R ldap:ldap/var/lib/ldap

Restart Service

Service SLAPD Restart

Daemon process

Chkconfig SLAPD on

Modify file owner and owning group

Chown-r Ldap:ldap/var/lib/ldap

Chown-r Ldap:ldap/etc/openldap

Regenerate slapd.conf

Slaptest-f/etc/openldap/slapd.conf-f/etc/openldap/slapd.d/

This displays the config file testing succeeded

Modify the owner and owning group of the newly generated file in the SLAPD.D directory and restart the SLAPD service

Chown-r ldap:ldap/etc/openldap/slapd.d/*

Service SLAPD Restart

Reference http://www.300176.net/detail/39204842120460507007.html

Reference http://blog.csdn.net/ztq157677114/article/details/50538176

Linux environment to build LDAP server

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.