After conducting a lot of research, i finally was able to get LDAP installed on CentOS, and make it as my Central Authentication Server.
this is what i did.
#
SERVER
#
yum -y install openldap openldap-clients openldap-servers cyrus nss-pam-ldapd pam_ldap
yum -y install nscd
cd /etc/openldap/slapd.d/cn\=config/
vi olcDatabse*
edited all the olcDatabase files which had dn.base: dc=my-domain,dc=com to dc=example,dc=com
and cnRoot to cn=admin,dc=example,dc=com
slappasswd -h {SHA}
password:
re-type password:
{SHA}htbwnsaklreh=
copy the output and paste it in olcDatabase*bdb.ldif
olcRootPW: {SHA}htbwnsaklreh=
cd /etc/sysconfig
vi ldap
change SLAPD_LDAPS=no to yes
start log for slapd
echo "local4.* /var/log/slapd.log" >> /etc/rsyslog.conf
service rsyslog restart
/etc/init.d slapd start
cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG
chown -R ldap:ldap /var/lib/ldap/DB_CONFIG
chown -R ldap:ldap /etc/openldap/slapd.d
iptables -A INPUT -m state --state new -m tcp -p tcp --dport 389 -j ACCEPT
#
CLIENT and Tree initialization
#
for the client config, i followed the steps mentioned by Mr. Adrian, in his post on here
http://wiki.centos.org/AdrianHall/CentralizedLDAPAuth
THIS SHOULD HELP YOU SET-UP openLDAP on centOS 6 as well as CentOS6.4, i have tried it on these two versions Personally.