Ubuntu LDAP Installation Configuration

Source: Internet
Author: User
Tags ldap openssl openssl version openldap

Recently in an LDAP project, pre-learning

Ubuntu installation

The first step

Apt-get Update

Apt-get Upgrade

Step Two

Installing the SLAPD tool

Apt-get Install SLAPD ldap-utils

Installing OpenSSL

wget https://www.openssl.org/source/openssl-1.1.0c.tar.gz
Tar-xzf openssl-1.1.0c.tar.gz
CD openssl-1.1.0c
./config--prefix=/usr/local/openssl
./config-t
Make
Make install
Ldd/usr/local/openssl/bin/openssl
which OpenSSL
OpenSSL version

Here may encounter a library file no, not in a hurry can add a conf file inside the/ETC/LDCONFIG.D to specify your library file, mine is/usr/local/openssl/lib

Then/sbin/ldconfig make the configuration effective

Then Ldd/usr/local/openssl/bin/openssl won't have a library file link.

Install the BerkeleyDB Oracle Web site to

Http://download.oracle.com/otn/berkeley-db/db-6.2.23.tar.gz?AuthParam=1482997395_460a0a084997e82f527416a7fb9cb5eb
TAR-ZXVF db-6.2.23.tar.gz
CD db-6.2.23
CD Build_unix
.. /dist/configure--prefix=/usr/local/berkeleydb6.2.23//path can be customized, but preferably placed under/usr/local
Make
Make install

Note the need to copy

cp/usr/local/berkeleydb6.2.23/lib/*/usr/lib

cp/usr/local/berkeleydb6.2.23/include/*/usr/include

Final installation OpenLDAP

wget ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.44.tgz
TAR-ZXVF openldap-2.4.44.tgz
CD openldap-2.4.44.tgz

./configure--prefix=/usr/local/openldap
Make depend
Make
Make test//This step takes a lot of time

Make install

When the service is started

View PS aux | grep SLAPD

Finally, you can install Phpldapadmin

Apt-get Install Phpldapadmin

Access via Ip/phpldapadmin

Ubuntu LDAP Installation Configuration

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.