Deployment steps of OpenLDAP server in Ubuntu

Source: Internet
Author: User
Tags install openssl openldap

Deployment steps of OpenLDAP server in Ubuntu

Deployment steps of OpenLDAP server in Ubuntu

1: Install zlib

Download zlib-1.2.3.tar.gz (or another version)

Wget http://down1.chinaunix.net/distfiles/zlib-1.2.3.tar.gz

#./Configure -- shared

# Make

# Make install

2: Install openssl

Do not uninstall the Openssl provided by the system. Otherwise, many services will not be available.

Wget http: // 101.44.1.124/files/613900000275279B/mirrors.163.com/gentoo/distfiles/openssl-1.0.1j.tar.gz

#./Config shared # Note that./config will be installed in/usr/local/ssl

# Make

# Make install

Error:

"POD document had syntax errors at/usr/bin/pod2man line 71.
Make: *** [install_docs] Error 25"

Edit the/usr/bin/pod2man file and comment out 71st lines.

# Configure the library file search path

# Echo "/usr/local/ssl/lib">/etc/ld. so. conf

# Ldconfig-v

3: Install BerkeleyDB

Download db-5.3.28.tar.gz

Decompress to folder db-5.3.28

Go to the folder db-5.3.28/build_unix

# ../Dist/configure -- sysconfdir =/etc # default path/usr/local/BerkeleyDB.5.3

# Make

# Make install

# Configure the library file search path

# Echo "/usr/local/BerkeleyDB.5.3/lib">/etc/ld. so. conf

# Ldconfig-v

4. Install openldap

Download openldap-2.4.30.tgz

Unzip to openldap-2.4.30

Go to folder openldap-2.4.30

# Env CPPFLAGS = "-I/user/ include-I/usr/local/BerkeleyDB.5.3/include-I/usr/local/ssl/include-D_GNU_SOURCE" LDFLAGS = "-L/usr/ lib-L/usr/local/BerkeleyDB.5.3/lib-L/usr/local/ssl/lib ". /configure -- prefix =/usr/local/openldap -- with-tls = openssl-enable-dynamic (note that the three temporary variables introduced need to correspond to the library file folder directories of BerkeleyDB and openSSL)

# Make depend

# Make

# Make test # This step takes a long time

# Make install

# Configure the library file search path

# Echo "/usr/local/openldap/lib">/etc/ld. so. conf

# Ldconfig-v

Start LDAP:

/Usr/local/openldap/libexec/slapd

Write a test. ldif Data File

Dn: dc = Tree, dc = com
ObjectClass: dcObject
ObjectClass: organization
Dc: Tree
O: Tree Company

Dn: cn = Manager, dc = Tree, dc = com
ObjectClass: organizationalRole
ObjectClass: top
Cn: Manager

Run:

/Usr/local/openldap/bin/ldapadd-x-D "cn = Manager, dc = Tree, dc = com"-w 123456-f test. ldif

If the import is successful, the deployment is complete.

Liferay Portal configuration uses Oracle and OpenLDAP

Axigen + OpenLDAP + BerkeleyDB + ejabberd multi-domain + WeChat chat detailed configuration

Deploy OpenLDAP authentication in CentOS

Install OpenLDAP server in CentOS Linux

OpenLDAP details: click here
OpenLDAP: click here

 

Related Article

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.