Fetching user credentials on non-secure EAR
Hello forum,
I have an Enterprise Application EAR1 which is security-enabled (means requires username/password to access the application using J2EE security defined in web.xml). On the same WebSphere Application Server I have another EAR2 which is non-secure (means user need not require username/password to access the application).
Now the user login from Portal EAR (authenticating through LDAP) and access the EAR1 which is secure. To understand which is the user, I do a request.getUserPrincipal() and get the user credential who logged in. This is FINE.
Now when the user is coming to EAR2 (which is non-secure) I get userprincipal null. How can I get the user credentials if hes logged-in and comes to EAR2? Is there any mechanism/configuration in LDAP LTPA or WAS by which I can fetch the user credential when he comes to non-secure EAR2 application. The reason is that I need to store the user transaction in EAR2 with his logged-in user credential IF hes logged-in.
I appreciate any feedback or solution from fellow forum members.
Thanks and ciao!!!

