2. LDAP Integration

In this section you will learn about LDAP integration. The initial set of instructions will guide you through the installation of the Apache directory server and an LDAP browser. The instructions will then guide you to input a user into the LDAP browser. After the user has been entered into the browser the user will be integrated with Liferay Portal.

2.1. Installing Apache Directory Server

  1. Go to www.apache.org.

  2. Click Directory.

  3. Click Download.

  4. Click on the suggested mirror site for download.

  5. Click apacheds>stable>1.0>1.0 RC3>apacheds-1.0-RC3-win32-setup.exe

  6. Save file.

  7. Click on the Apache icon and follow the installation instructions.

  8. Click Start.

2.2. Installing LDAP Browser

  1. Go to www.jxplorer.org.

  2. Click Downloads>precompiled java package>Windows platform.

  3. Save file.

  4. Click on the LDAP browser icon and follow the installation instructions.

2.3. Inputting User in LDAP Browser

  1. Open the LDAP browser.

  2. Click File>Connect.

  3. Change the port to 10389.

  4. In the Level drop-down menu, choose User+Password.

  5. Insert uid=admin,ou=system in the User DN input field.

  6. The password is secret.

  7. Click Save and enter a name for the template.

  8. Right click on Example and click New.

  9. Add inetorgperson to the Selected Class.

  10. User Jane Smith will be added. Enter cn=janesmith in the Enter RDN field and click OK.

  11. In the Table Editor enter Smith in the SN line.

  12. Enter Jane in the givenName line.

  13. For the mail enter janesmith@liferay.com.

  14. For the userpassword enter test.

  15. Click Submit.

2.4. Integration

  1. With user Jane Smith entered into the LDAP browser, the user will now be integrated with Liferay Portal. Begin by logging into Liferay Portal as the Administrator.

  2. The login is test@liferay.com and the password is test.

  3. Currently, Jane Smith’s profile exists only on the LDAP browser. To integrate her information into Liferay Portal, click on the Users tab in the Admin portlet.

  4. Click Authentication.

  5. Click LDAP.

  6. Check the Enabled box.

  7. If the Required box is checked only users in the LDAP server will be able to log into Liferay Portal. For this demonstration leave the box unchecked.

  8. Liferay Portal supports other directory servers in addition to the ones provided. The Apache Directory Server, Microsoft Active Directory Server, and Novell eDirectory comes preconfigured.

  9. Select the Apache Directory Server and click Save.

  10. Once Jane Smith logs in to her account on Liferay Portal and agrees to the terms of use, her user information will be added to Liferay Portal. To demonstrate this, assume that Jane Smith has logged into her account. While logged in as the Administrator, a search for Jane Smith will show that the user has been integrated into Liferay Portal.