tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donie Kelly <donie.ke...@tecnomen.ie>
Subject RE: Getting USERNAME/PASSWORD from HTTP headers
Date Thu, 23 May 2002 20:19:22 GMT
Thanks Llyod, I'm using Tomcat in standalone mode and getRemoteUser()
returned null?? I'm using tomcat 4.0.1

Thanks
Donie


 -----Original Message-----
From: 	Lloyd Meinholz [mailto:Meinholz@bmpcoe.org] 
Sent:	23 May 2002 20:48
To:	'Tomcat Users List'
Subject:	RE: Getting USERNAME/PASSWORD from HTTP headers

This nice way is: request.getRemoteUser(). However, this doesn't seem to
work with mod_webapp, I haven't figured out why and no one had an
explanation when I asked. I'm using an ugly base64 decode as a work around
until I get another connector working. getRemoteUser() does seem to work
(from what others have posted) with jk if you put the following in the
connector part of you server.xml

tomcatAuthentication="false"

I haven't figured out what relation coyote has to all this, related to jk,
competitor, etc. Seems to be different than mod_webapp.

Lloyd


> -----Original Message-----
> From: Donie Kelly [mailto:donie.kelly@tecnomen.ie]
> Sent: Thursday, May 23, 2002 3:35 PM
> To: 'Tomcat Users List'
> Subject: RE: Getting USERNAME/PASSWORD from HTTP headers
> 
> 
> That's grand but I then have to base64 decode the result. I 
> was hoping there
> was a nice way ;)
> 
> Donie
> 
> 
>  -----Original Message-----
> From: 	Phillip Morelock 
> [mailto:subscriptions@phillipmorelock.com] 
> Sent:	23 May 2002 20:38
> To:	Tomcat Users List
> Subject:	Re: Getting USERNAME/PASSWORD from HTTP headers
> 
> request.getHeader()
> 
> see the documentation for HttpServletRequest
> 
> 
> 
> 
> On 5/23/02 12:27 PM, "Donie Kelly" <donie.kelly@tecnomen.ie> wrote:
> 
> > Hi all
> > 
> > How do I get the username and password from the http authentication
> > headers...
> > 
> > Thanks
> > 
> > Donie
> > 
> > 
> > 
> > --
> > To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> > 
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: 
> <mailto:tomcat-user-help@jakarta.apache.org>
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message