Professional Documents
Culture Documents
Ldap Documentation 2021.8
Ldap Documentation 2021.8
Ldap Documentation 2021.8
Prepared by:
Aala Omer Taha Ali
add the olcRootPW value and put that hashed password that we copy
olcRootPW : {SSHA}bHSiwuPJEypHS6zHSE2Uy7M69sQjmkPL
add tls certificate path of tls file and key file and hash them or add them after generate keys
olcTLSCertificateFile: /etc/pki/tls/certs/ldap.pem
olcTLSCertificateKeyFile: /etc/pki/tls/certs/ldapkey.pem
Copy the below lines and paste inside the file /root/base.ldif
dn: dc=ldap,dc=com
objectClass: top
objectClass: dcObject
objectclass: organization
o: ldap com
dc: ldap
dn: cn=Manager,dc=ldap,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager
dn: ou=People,dc=ldap,dc=com
objectClass: organizationalUnit
ou: People
dn: ou=Group,dc=ldap,dc=com
objectClass: organizationalUnit
ou: Group
Ldap configuration is done, now we need to share ldap users home directory via NFS .so
users how logged in client server will also be able to save their data remotely on LDAP server.
NFS configuration
1. In server Edit the file /etc/exports and add an entry as below to export the home directory.
# vi /etc/exports
/home *(rw,sync)
4. In client server mount the ldap users home directory by adding this line in /etc/fstab as below
#vim /etc/fstab
server.ldap.com:/home /home auto defaults 0 0
2. The Extra Packages for Enterprise Linux (EPEL) release updates have to be installed because
phpLDAPadmin is not available in the main repository.
# yum install epel-release
# yum -y install phpldapadmin
The following changes are to be made in the php code Line 332 will define your domain
details, change it appropriately.
$servers_>setValue('login','bind_id','cn=Manager,dc=ldap,dc=com')
Line 397 should be uncommented to ensure the login credentials used are the domain name
details and not the user identification (so comment out line 398)
$servers->setValue('login','attr','dn');
//$servers->setValue('login','attr','uid')