Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

LDAP and Websphere Role Mapping / Authorization

843811Apr 28 2005 — edited Jul 4 2005
Hello.

I'm using Sun One LDAP server, and WSAD 5.1.2

Trying to implement some security for proof of concept. I've been able to configure application server so that Authentication with LDAP works using form based login.

I'm using information based on a tutorial found here:
http://www-106.ibm.com/developerworks/websphere/library/techarticles/0311_mitra /mitra.html#sec1

Having trouble with Authorization. How do I correctly map a J2EE role with my LDAP user? I've tried mapping role to group, user, etc, and trying all kinds of ldap naming to specify exact user, but I still get Authorization error while trying to acces web resource.

I removed all security contraints, and I'm able to access web resource. In this tutorial, the web resource with the security contraint is called TestServlet. It prints out username by calling request.getRemoteUser(). This is always null.

So, I'm assuming that my user information is not being passed from the login.jsp to the TestServlet, and that is why authorization if failing. What do I need to configure to ensure that user information gets passed?

Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 1 2005
Added on Apr 28 2005
5 comments
215 views