Hello,

As this has become a bit of a roadblock in implementing security, I'd like to ask anyone out there two things:

1) Is it even possible to use a custom user princpal within a realm that is retrievable within a servlet (via presumably the request or otherwise) in Tomcat?

2) If the answer to #1 is yes, how is this done? Does anyone have a working code snippet that demonstrates this?

Thanks, I'm about to head to the developer list to ask this question, as its pretty crucial for our security implementation.

Brad

Brad O'Hearne wrote:

Response below:

Wendy Smoak wrote:

From: "Brad O'Hearne" <[EMAIL PROTECTED]>

I would have expected that designation of the user class name would have resulted in my being returned the class I specified for the user class name from the requestion.getUserPrincpal() method, but it doesn't.



What version of Tomcat are you using? As far as I know, it works the way you want on 5.0.28. I remember trying it with and without the class name, and writing that comment to remind myself.

Could this be it? http://issues.apache.org/bugzilla/show_bug.cgi?id=37044

I am using 5.0.28, and I'm not seeing the expected behavior. Hmmm.....was there anything else that has to be done to be able to access your own custom user principal?

Brad



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to