Using OpenLDAP and phpLDAPadmin
Posted by on 21 March 2012 12:52 PM
|
||
Applicable Plans - All Cloud Hosting PlansOpenLDAP and phpLDAPadminOverviewOpenLDAP is a framework for directory services, which can be used by individuals or organizations to create shared address books or listings of resources. eApps Hosting provides the OpenLDAP server, and also the phpLDAPadmin web interface that can be used to manage your OpenLDAP directory services. This user guide will walk you through installing OpenLDAP and phpLDAPadmin, and demonstrate how to create a simple shared address book that can be accessed by your users (usually through their e-mail clients). OpenLDAP is a very complex application, and the address book example given in this user guide is only a very small fraction of what can be done. If you are setting up a more involved scenario with OpenLDAP, start with the official documentation, located here - http://www.openldap.org/doc/admin24/. The OpenLDAP group maintains a list of useful articles, books, and web pages here - http://www.openldap.org/faq/data/cache/73.html Installing OpenLDAP and phpLDAPadmin OpenLDAP configuration with phpLDAPadmin Installing OpenLDAP and phpLDAPadminOpenLDAP is available with any CentOS template and can be installed from the Control Panel. If you are going to use phpLDAPadmin, you will need to install PHP first, and then phpLDAPadmin. Installing OpenLDAP and phpLDAPadmin from a Control PanelInstalling OpenLDAP, phpLDAPadmin, and PHP using the ISPmanager Control PanelIf you are using the ISPmanager Control Panel, you can install OpenLDAP (and PHP and phpLDAPadmin) from the Control Panel.
Information on how to tell which version of ISPmanager you are using can be found here - ISPmanager versions
Information on how to install PHP extensions is found in the PHP User Guide - PHP extensions. This covers both ISPmanager 4 and ISPmanager 5. Installing OpenLDAP and phpLDAPadmin from the command lineOpenLDAP, phpLDAPadmin (and PHP, if necessary) can be installed from the command line of the Virtual Server using You will need to use the [root@eapps-example ~]# yum install -y php php-ldap [root@eapps-example ~]# yum install -y openldap [root@eapps-example ~]# yum install -y phpldapadmin OpenLDAP configuration with phpLDAPadminThis section of the user guide will walk you through creating a simple address book, and adding an entry to it. This address book can be shared with your users. The most common set up is the creation of a company or organization address book that all the users can access through their e-mail client. This is just a simple example of what can be done with OpenLDAP and phpLDAPadmin. For more complex examples, please refer to the official OpenLDAP documentation. Connecting to phpLDAPadminTo connect to phpLDAPadmin, browse to http://eapps-example.com/ldapadmin (substitute your own domain name for eapps-example.com). This takes you to the phpLDAPadmin main screen, where you can log in. ![]()
![]()
Once you have entered your login information, click on Authenticate. This takes you to the main phpLDAPadmin screen. ![]() Creating a simple address bookOnce you have logged in, you can now create a simple address book that can be shared with other users. For example, this address book could be used as a company directory that listed all the contact information for your employees. In the My LDAP Server section of the main phpLDAPadmin screen, click on Import. ![]()
![]()
![]() Once you have pasted in the text, click Proceed >>.
![]() Adding address book entriesIn the left navigation pane, under My LDAP Server, click the [+] (plus sign) to the left of dc=my-domain,dc=com (2). This will expand the listing. The LDIF file you just imported creates an entry (called an "Organizational Unit" or "ou" in OpenLDAP) called ou=people. Click on people to create an entry in the address book. ![]()
![]()
![]()
![]()
![]()
![]()
![]() Once you have entered the information, click on Create Object.
![]() If everything is correct, click Commit. If anything is incorrect, you will have an opportunity to update in the next screen. After you click on Commit, you should see this message: ![]() Also you will see a way to update any information in the entry just below this message.
![]() To add more users, simply go through the Adding address book entries process for each user. | ||
|