Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

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

Ranch Hand
Posts: 165
Tomcat Server Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic