You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Vladimer Shioshvili <vs...@qrc.com> on 2003/05/13 21:25:06 UTC
combining remote address filter and basic authentication
What I am trying to do is combine remote address filter and basic
authentication in the following way:
to allow access to anyone with ip address10.*.*.* and for the rest to use
basic authentication using users.xml file.
Has anyone done anything like this? I do mostly form based authentication
and this is something new I am facing..
Thanks,
Vlad
________________
Vladimer Shioshvili
QRC Division of Macro International Inc.
7315 Wisconsin Avenue, Suite 400W
Bethesda, MD 20814
Phone: (301) 657 3077 ext. 155
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: combining remote address filter and basic authentication
Posted by Giovanni Formenti <fo...@ariadne.it>.
I made a IP-AUTHENTICATION class that check the IP that is put with the
password; the users.xml contains for example:
USERNAME: gio
PASSWORD: password@ip
The class (that is the BasicAuthentication modified) check username,
password and ip.
Gio
----- Original Message -----
From: "Vladimer Shioshvili" <vs...@qrc.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Tuesday, May 13, 2003 9:25 PM
Subject: combining remote address filter and basic authentication
> What I am trying to do is combine remote address filter and basic
> authentication in the following way:
>
> to allow access to anyone with ip address10.*.*.* and for the rest to use
> basic authentication using users.xml file.
>
> Has anyone done anything like this? I do mostly form based authentication
> and this is something new I am facing..
>
> Thanks,
> Vlad
>
>
> ________________
> Vladimer Shioshvili
>
> QRC Division of Macro International Inc.
> 7315 Wisconsin Avenue, Suite 400W
> Bethesda, MD 20814
>
> Phone: (301) 657 3077 ext. 155
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
Re: combining remote address filter and basic authentication
Posted by Tim Funk <fu...@joedog.org>.
AFAIK, there is no elegant way to do this. But but probably want to use a
filter. The filter will check if the IP range is valid. If the ip range if
not valid, it will look for the WWW-Authenticate (?) header and decode it
according to the RFC. If there is no WWW-Authenticate - send a 401 redirect
challenge back to the client. Google is your firend with respect to the
topics above.
-Tim
Vladimer Shioshvili wrote:
> What I am trying to do is combine remote address filter and basic
> authentication in the following way:
>
> to allow access to anyone with ip address10.*.*.* and for the rest to
> use basic authentication using users.xml file.
>
> Has anyone done anything like this? I do mostly form based
> authentication and this is something new I am facing..
>
> Thanks,
> Vlad
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org