Install OpenLDAP with phpldapadmin
1. Install OpenLDAP in Ubuntu server
sudo apt-get install slapd ldap-utils
During the installtion it will ask the password for LDAP admin account. Enter your admin
password here.
2. Configure OpenLDAP
Open the “/etc/ldap/ldap.conf” file and find and edit the lines as shown below with your domain
name and IP Address.
3. Run the Configuration assistant.
ldapserver@server:~$ sudo dpkg-reconfigure slapd
4. Test LDAP server
5. Install phpldapadmin
ldapserver@server:~$ sudo apt-get install phpldapadmin
Create a symbolic link for phpldapadmin directory.
ldapserver@server:~$ sudo ln s /usr/share/phpldapadmin/ /var/www/phpldapadmin
Now open the “/etc/phpldapadmin/config.php” file and replace the domain names with your
own values. Goto “Define LDAP Servers” section in the config file and edit the following lines as shown below.
6. Go to your browser: http://server-ip/phpldapadmin
we will got the below page:
login with the user name and password that we put during the installations.
7. Create the directory structure depend on your Organazations
This Directory structure is just a sample to create the Organization structure.
Enjoy,
No comments:
Post a Comment