Sorry all - my bad.
Suggestion 3 in the WIKI (http://wiki.apache.org/tomcat/HowTo#head-
cb66e750a22dea34b56f508dd675ed3c2e2e221a) works perfectly as advertised.
For the archive, my problem was due to an old JAR lurking in server/
lib that I thought had gone, so my custom principal interface
Well, I'm not 100% sure about this as I've not proven all of it, but
what I believe is happening from the various Tomcat docs I've read is:
1) My custom realm's authenticate() method(s) are invoked and these
instantiate and return the custom principal objects (this bit is
proven). If I do
> From: Darren Clarke [mailto:[EMAIL PROTECTED]
> request.getUserPrincipal().getClass().toString() returns
> "poc.security.TestPrincipal"
>
> (request.getUserPrincipal() instanceof
> poc.security.I_TestPrincipal returns false
Ah. Are you loading everything through the sa
"Darren Clarke" <[EMAIL PROTECTED]>
To:
Sent: Thursday, September 21, 2006 7:53 AM
Subject: Custom Principal casting problem
Hi
Apologies in advance if I'm going over old ground here - I have spent
a day and a bit searching the web and have found people with the same
problem,
Sent: Thursday, September 21, 2006 7:53 AM
Subject: Custom Principal casting problem
> Hi
>
> Apologies in advance if I'm going over old ground here - I have spent
> a day and a bit searching the web and have found people with the same
> problem, but I'm not finding t
Hi
Apologies in advance if I'm going over old ground here - I have spent
a day and a bit searching the web and have found people with the same
problem, but I'm not finding the solution anywhere...
I've created my own Tomcat Realm that performs custom
authentication. The various authentic