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
o its own thing based on the user ID.
Thanks again.
Joe
-Original Message-
From: David Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 18, 2006 10:50 AM
To: Tomcat Users List
Subject: Re: Confused about getRemoteUser and Apache authentication
I can fix one issue for you --
006 10:50 AM
To: Tomcat Users List
Subject: Re: Confused about getRemoteUser and Apache authentication
I can fix one issue for you -- if you add the attribute
tomcatAuthentication="false" to the connector element in server.xml, the
remote user will start coming through from Apache
I can fix one issue for you -- if you add the attribute
tomcatAuthentication="false" to the connector element in server.xml, the
remote user will start coming through from Apache httpd.
Never tried to do security constraints in web.xml and use
tomcatAuthentication="false" together. You could
Sheesh. I'm tired.
I said:
"I'm not sure whether I the security constraints define in the
application's web.xml."
I meant:
"I'm not sure whether I need the security constraints defined in the
application's web.xml."
-
To st
I am trying to authenticate via Apache and use getRemoteUser in Tomcat.
I want to serve static pages via Apache and run a web application
through Tomcat. I am receiving a null for getRemoteUser in my simple
Spy servlet. I have read in different places where the AJP connector
requires the keyword
Hi,
I use J2EE securitty in my application. I need to know username of
authenticated user. So are there any differences between
request.getRemoteUser() and request.getUserPrincipal().getName()? I
know, I'd get NPE with second call with unauthorized user, but some more
differences?
--
Mikola
13 matches
Mail list logo