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!!!

[1096 byte] By [J2EEDeva] at [2007-11-27 10:12:42]
# 1

Any solution to this problem buddies..? Its bit of an urgency to my project and i'm running out of solution.

Any suggestion/feedback is appreciated.

ciao!!!

J2EEDeva at 2007-7-28 15:22:00 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...