Tuesday, February 23, 2010

Installing OpenLDAP(Linux)

Introductions:
What is LDAP
a)History
b)Protocol
LDAP vs relational DBASE
LDAP advantages

Requirements:

1) PC atleast PII
2) Linux OS: (CentOS,Fedora)
3) Directory Design(your simple directory)


Download:
Berkeley DataBase(you can choose 4.8 version)
http://www.oracle.com/technology/software/products/berkeley-db/db/index.html
OpenLDAP
ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.4.21.tgz
openldap-2.3.43-3.el5.i386
openldap-clients-2.3.43-3.el5.i386
openldap-servers-2.3.43-3.el5.i386


Howto:
A)Installing deficiencies:
Please skip this step if you have the following files active running
gcc
gcc-devel
[root@localhost local]# yum install gcc

B.1)Fix the evironment variable on CLI:
[root@localhost local]# CPPFLAGS="-I/usr/local/BerkeleyDB.4.8/include"
[root@localhost local]# export CPPFLAGS
[root@localhost local]# LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib -R/usr/local/BerkeleyDB.4.8/lib"
[root@localhost local]# export LDFLAGS
[root@localhost local]# LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.8/lib"
[root@localhost local]# export LD_LIBRARY_PATH CPPFLAGS LDFLAGS

B.2)Or setting the environment permanently
[root@localhost local]# vi /etc/profile
Add the following

____________________________________________________________________________
CPPFLAGS
="-I/usr/local/BerkeleyDB.4.8/include"
LDFLAGS="-L/usr/local/lib -L/usr/local/BerkeleyDB.4.8/lib -R/usr/local/BerkeleyDB.4.8/lib"
LD_LIBRARY_PATH="/usr/local/BerkeleyDB.4.8/lib"
export LD_LIBRARY_PATH CPPFLAGS LDFLAGS
---------------------------------------------------------------------------------------------------------------------------------------

C) The installations procedures

./configure
make depend
make
make install


Server Side
Configuring LDAP server:

Adding LDIF:

Apache Authentications:

Client Side

Conclusion:

No comments:

Post a Comment