Deployment steps for Ubuntu under OpenLDAP Server

Source: Internet
Author: User
Tags openssl library openldap

1: Install Zlib

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

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

#./configure--shared

# make

# make Install

2: Installing OpenSSL

Do not uninstall the system's own OpenSSL, or many services will not get up

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

#./config shared #注意这里是用./config will be installed to/usr/local/ssl

# make

# make Install

An error occurred:

"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 the 71st line.


#配置库文件搜索路径

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

# ldconfig-v

3: Install BerkeleyDB

Download db-5.3.28.tar.gz

Unzip to folder db-5.3.28

Go to Folder db-5.3.28/build_unix

# .. /dist/configure--sysconfdir=/etc #默认路径/usr/local/berkeleydb.5.3

# make

# make Install

#配置库文件搜索路径

# 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 the three groups of temporary variables introduced need to correspond to BerkeleyDB and OpenSSL library file folder directory)

# make Depend

# make

# Make Test #这一步时间会很长

# make Install

#配置库文件搜索路径

# 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

Perform:

/usr/local/openldap/bin/ldapadd-x-D "cn=manager,dc=tree,dc=com"-w 123456-f test. ldif

The import succeeds and the deployment is complete.

Deployment steps for Ubuntu under OpenLDAP 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.