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