This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
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.