Liferay LDAP Configuration Manual
Goto LDAP settings from Control Panel->Portal Settings. Under Configuration, click Authentication->LDAP.
To enable LDAP, check "Enable", simple enough.
Under Import/Export, check "Import Enabled". When checked, Liferay will periodically synchronize with LDAP. The interval Liferay does this can be changed in your portal-ext.properties.
"Import on Startup Enabled" should be self-explanatory. Check it.
We'll leave "Export Enabled" unchecked. As we are not going to export our data to Directory Server as of now.
Now then, click "Add" to add your LDAP Server.
Type in the name of your LDAP Server at the top. We will notice that there is a radio button list of default choices (Optional).
Now create Connection with LDAP by filling up following values
A) Base Provider URL: The LDAP Base Provider URL format is ldap: //host: port.
For example ldap://10.0.0.116:389
B) Base DN: The Base DN specifies the initial search context for users and is
optional. For example dc=ktree,dc=org where dc is domain component of the
C) Principal: It is User Principal Name. These are generally in the format of
<sAMAccountName>@<UPN Suffix>. Example cn=Manager,dc=ktree,dc=org
d) Credentials: Fill up the correct credential for LDAP Server to which Liferay is
going to connect with.
NOTE: CHECK THE CONNECTION If all are correct Liferay will prompt a message "Liferay has successfully connected to the LDAP server.”
Now fill up the USER Fields
Authentication Search Filter : Enter the search filter that will be used to test the validity of a user. The tokens @company_id@, @email_address@, @screen_name@, and @user_id@ are replaced at runtime with the correct values.
For example : (mail=@screen_name@).
Import Search Filter : Used for checking filter while importing data on LDAP.
If we don't want to apply import search filter when we import user then simple fill this it is as (objectClass=person).
Now fill up the following attribute in order to import data on LDAP
Screen Name : cn (common name or canonical name)
Password : usePassword (users password)
Email Address : mail
Full Name : cn (ldap-full-name-attribute-help)
First Name : cn (ldap-full-name-attribute-help)
Middle Name : (leave it)
Last Name : sn (sir name)
Job Title : (leave it)
Portrait : (leave it)
Group : ou (organization unit)
UUID : uidNumber / uid (universal id)
Note: Click Check LDAP Users button. If everything is fine it will pop a list of users
Leave the other fields as it is and click save button in order to use this LDAP configuration.