Doug
-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com]
Sent: Monday, January 25, 2010 3:09 PM
To: Tomcat Users List
Subject: RE: Return from getRemoteUser and isUserInRole Inconsistent
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
&
..@christopherschultz.net]
Sent: Monday, January 25, 2010 2:38 PM
To: Tomcat Users List
Subject: Re: Return from getRemoteUser and isUserInRole Inconsistent
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Doug,
On 1/25/2010 4:59 PM, Fulford, William wrote:
> Attached are the relevant sections f
> From: Christopher Schultz [mailto:ch...@christopherschultz.net]
> Subject: Re: Return from getRemoteUser and isUserInRole Inconsistent
>
> If it's the functions above that return random stuff,
> I'd look at those.
I'd be looking for incorrect variable scope:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Doug,
On 1/25/2010 4:59 PM, Fulford, William wrote:
> Attached are the relevant sections from the server.xml and web.xml,
> respectively.
This mailing list often strips attachments. Could you copy/paste
relevant sections into your next post? It's imp
starting Tomcat, the user name is returned,
and isInRole is false. Otherwise the results are inconsistent.
Thanks,
Doug
-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Monday, January 25, 2010 12:46 PM
To: Tomcat Users List
Subject: Re: Return fr
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Doug,
On 1/25/2010 3:35 PM, Fulford, William wrote:
> I'm using Tomcat 6.0 with Firefox 3.0.12 and JNDIRealm for
> authentication. When I call HttpServletRequest.getRemoteUser() and
> HttpServletRequest.isUserInRole(), I get inconsistent results.
> S
I'm using Tomcat 6.0 with Firefox 3.0.12 and JNDIRealm for
authentication. When I call HttpServletRequest.getRemoteUser() and
HttpServletRequest.isUserInRole(), I get inconsistent results.
Sometimes I get null for user and other times I get the user name.
Sometimes I get false for isUserInRole() a