RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
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] &

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
..@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

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Caldarale, Charles R
> 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:

Re: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Christopher Schultz
-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

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
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

Re: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Christopher Schultz
-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

Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
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