tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Collins, Jim" <>
Subject RE: combining remote address filter and basic authentication
Date Wed, 14 May 2003 10:23:30 GMT
You can put the ip address check in a filter and if this fails force the
user to authenticate by sending this in the response:

	response.setStatus ( HttpServletResponse.SC_UNAUTHORIZED );
      response.setHeader ( "WWW-Authenticate", "Basic realm=\"MyRealm\"");



> -----Original Message-----
> From: Vladimer Shioshvili []
> Sent: 13 May 2003 20:25
> To: Tomcat Users List
> 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:
> For additional commands, e-mail:

PLEASE READ: The information contained in this email is confidential
and intended for the named recipient(s) only. If you are not an intended
recipient of this email you must not copy, distribute or take any 
further action in reliance on it and you should delete it and notify the
sender immediately. Email is not a secure method of communication and 
Nomura International plc cannot accept responsibility for the accuracy
or completeness of this message or any attachment(s). Please examine this
email for virus infection, for which Nomura International plc accepts
no responsibility. If verification of this email is sought then please
request a hard copy. Unless otherwise stated any views or opinions
presented are solely those of the author and do not represent those of
Nomura International plc. This email is intended for informational
purposes only and is not a solicitation or offer to buy or sell
securities or related financial instruments. Nomura International plc is
regulated by the Financial Services Authority and is a member of the
London Stock Exchange.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message