Liferay Integration with LDAP

Download ApcheDS  and install it  http://archive.apache.org/dist/directory/apacheds/stable/1.0/

Download LDAP browser and Install it  http://jxplorer.org/downloads/users.html

Input Users 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 Bruno will be added. Enter cn= bruno in the Enter RDN field and click OK.

 

 

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

12.       Enter bruno in the givenName line.

13.       For the mail enter bruno@7cogs.com.

14.       For the userpassword enter bruno

15.       Click Submit.

 

LDAP Integration

1.      Login as a Administrator

2.      Go to Control Panel->Settings->Authentication->LDAP

3.      Check  the Enable Box.

4.      If the Required box is checked only users in the LDAP server will be able to log into Liferay Portal.

5.      Choose Default Value Apache Directory Server. 

6. Check Connection, provide given values and Test LDAP Connection

BaseProviderURL:   ldap://localhost:10389

BaseDN:  dc=example,dc=com

Principal:  uid=admin,ou=system

Credential:  secret  

 

7. Test LDAP users

8. Check on Import Enabled box. 

Blogs
nice explanation with easy steps.. thanks for helping newbies
Clean Explanation with step by step procedures. Good Nidhi!
A really clear guide!
But something went wrong when I try to login with a ldap user. I get a wrong password message.

What password type did you use?
Hi Nidhi,
i followed this kind of steps but once start the server it is throwing connection time out error.
How i can solve this issue?
And the we dont have more help on the net.
How can we develop a good portal using Liferay?
Hi,

Can you send me screenshots of tomcat's console or log file

Thanks
Nidhi Singh
once i excute the jxpolorer after
<!--[if !supportLists]-->11. <!--[endif]-->In the Table Editor enter bruno in the SN line.

<!--[if !supportLists]-->12. <!--[endif]-->Enter bruno in the givenName line.

<!--[if !supportLists]-->13. <!--[endif]-->For the mail enter bruno@7cogs.com.

<!--[if !supportLists]-->14. <!--[endif]-->For the userpassword enter bruno

<!--[if !supportLists]-->15. <!--[endif]-->Click Submit.


It is showing an error "All Mandatory Attributes must have values!"
I do step by step above but i don't login liferay by ldap user. Can you help me?
I am facing one problem here, without starting apacheds server after configuration, if we try to log in user or admin authentication error is occurring how to over come? and one more is after configuration of LDAP how to use it? how it is useful? please can anybody explain briefly?
Hello Nidhi,

Thanks for easy explaining of that complicated thing.I appreciate your helpful work to other liferay user.
I need learn Liferay Alfresco any SSO and LDAP would please guide or help me to perform this task.Please.......
I also thankful to you to reply my last question.,it's successful work.
Thanks & Regards,
Tapan Avasthi
thanks Nidhi for this tuto..
when i try to connect with JXplorer it the 5th step he appear this error

javax.naming.AuthenticationException: [LDAP: error code 49 - Bind failed]

how can i solve this issu??
hi..
i followed the steps mentioned by you.but after running the tomcat server,it gave me an error in tomcat.can you tell me whether i need to change any files or not.i am using apache directory studio and liferay 5.2.3.i am not integrating sso.as mention in 7th step i am not able to see the users.it just displays "ldap is integrated.

please provide me full detailed step.
Hi Ankit,

Have you enter the field of mail?

It is mandatory and with proper validation of the mail id.
Then it will not give you any exception.

Regards,
Amit Doshi