• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

Ranch Hand
Posts: 165
Java Tomcat Server Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!