you will probably have to write your own filter to do this. I don't think
you can bypass the auth on a context.

you could use a valve to allow your block of ip's if only that block would
be used. It is not clear from your email if users with name/pass are also in
this ip block. if any ip is allowed with user/pass, then you will have to do
it all in a filter.

Charlie

> -----Original Message-----
> From: Kevin Andryc [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 20, 2002 11:57 AM
> To: Tomcat Users List
> Subject: Access by IP Address
> 
> 
> I have an application that I would like to authenticate using 
> IP address and
> also username/password. For example, if a user has a 
> username/password then
> he/she could just log in as normal. If, however, the user is 
> coming from a
> known range of IP addresses, then I wish to assign them a 
> temporary username
> and have them connect to the application. Else, I just want to reject
> everyone else. In my server.xml file, I have several context 
> elements, so I
> only this to apply to a certain context. How do I do this? If 
> I assign a
> temporary username, then do I store this in a session 
> variable? Thanks for
> all your help.
> 
> 
> Kevin Andryc
> Web Systems Engineer
> MISER
> http://www.umass.edu/miser/
> Phone: (413)-545-3460
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to