Install and configure your own summary version of Linux under OpenLDAP

Source: Internet
Author: User
Tags openldap

---restore content starts---

Some time ago the company needs to install OpenLDAP so go online to find relevant information, installation documentation is a lot but more or less a bit of a problem cause oneself has not been installed, so combined with English installation document stuttered

Installation is less, so the installation process is recorded for a rainy future

1: New and old version of OpenLDAP, configuration method has a lot of changes

1 , install the database I use the version is:Berkeley DB 4.7.25


Unzip: # tar XVF db-4.7.25.tar.gz

Installation:

# CD db_4.7.25

# CD build_unix/

#./dist/configure-prefix=/usr/local/berkeleydb

# make

# make Install

Perform next step in order to compile OpenLDAP without errors

# cp/usr/local/berkeleydb/include/*/usr/include/

# cp/usr/local/berkeleydb/lib/*/usr/lib/

Installing Berkeley DB is simple, basically no error .

2: Second Step installation OpenLDAP

My version is:openldap-2.4.9.tgz

# tar XVF openldap-2.4.15.tgz

# CD OPENLDAP-2.4.15/

#./configure--prefix=/usr/local/openldap

# make Depend

# make

# make Install

3: Configure the slapd.conf file 

#

# See slapd.conf (5) For details on configuration options.

# This file should is not being world readable.

#

Include/usr/local/openldap/etc/openldap/schema/core.schema Here I am using custom attributes so other schema files do not need to be added if needed can be added

# Define Global ACLs to disable default read access.

# Do not enable referrals until if you have a working directory

# Service and an understanding of referrals.

#referral ldap://root.openldap.org

Pidfile /usr/local/openldap/var/run/slapd.pid First Look at these two files that don't exist before I install it, it's not there, and it's been re-installed.

Argsfile /usr/local/openldap/var/run/slapd.args

#######################################################################

# BDB Database Definitions

#######################################################################

Database BdB

Suffix "dc=example,dc=com" root node

RootDN "cn=manager,dc=example,dc=com" User name

# cleartext passwords, especially for the RootDN, should

# be avoid. See SLAPPASSWD (8) and slapd.conf (5) for details.

# Use of strong authentication encouraged.

ROOTPW Secret password can be set by itself

# The database directory must exist prior to running SLAPD and

# should only is accessible by the SLAPD and slap tools.

# Mode recommended.

Directory/usr/local/openldap/var/openldap-data

# Indices to maintain

Index ObjectClass EQ

Basic completion after configuration

Use

cd/usr/local/openldap/libexec/

./slapd-d 256


Start complete as long as no error indicates installation success

---restore content ends---

Install and configure your own summary version of Linux under OpenLDAP

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.