aspose file tools*
The moose likes Portals and Portlets and the fly likes How to use LDAP to our own custom login screen(portlet) than default one. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "How to use LDAP to our own custom login screen(portlet) than default one." Watch "How to use LDAP to our own custom login screen(portlet) than default one." New topic
Author

How to use LDAP to our own custom login screen(portlet) than default one.

Vinod Vijay
Ranch Hand

Joined: Sep 13, 2011
Posts: 137

I have setup & configured LDAP using Apache Directory Studio. On the other hand (Liferay Portal 6.1), using its Control Panel->Portal Settings->Authentication->LDAP, I have given all the correct information like enabled LDAP checkbox, provided correct port no. on which the LDAP server is running, Base DN, etc . Liferay can successfully listen to LDAP also and can work with my LDAP users using Liferay Portal Default Login Screen(out of box provided by the framework).

Now my question is, we have done all these from GUI(i.e. at Control panel level of Liferay) so it is working. But now I have created a new custom page. I have also created and added my own custom Portlet on this page. This custom portlet is nothing but a very basic Login Page, showing a login screen with username and password and a submit button. Now what I want is my newly created custom login screen to behave and work same as that of default login screen provided out of box by Liferay. Means I want to integrate same LDAP to my custom login portlet, autheticate it and proceed. Please tell me how to achieve it. What all the liferay classes I need to work at code level. I don't know whether it can be done from Control Panel or not(I believe no from GUI) and also want to keep the session of that user after its authentication.
I would really appreciate your help.

Thanks a lot in advance.

Vinod Vijay Nair
 
jQuery in Action, 2nd edition
 
subject: How to use LDAP to our own custom login screen(portlet) than default one.