You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by p gelont <p_...@yahoo.com> on 2001/04/17 13:33:08 UTC

Basic Auth Problem in Tomcat

Hi

Is there any difference between NT and Linux for
the Basic Auth-handling?

I use Tomcat v3.2.1.
My Webapp in NT works fine, the same Webapp under
Linux
does not care about my restrictions.

(web.xml):
<security-constraint>
  <web-resource-collection>
         <web-resource-name>Protected
Area</web-resource-name>
	 <!-- Define the context-relative URL(s) to be
protected -->
         <url-pattern>/restricted/*</url-pattern>
	 <http-method>DELETE</http-method>
         <http-method>GET</http-method>
         <http-method>POST</http-method>
	 <http-method>PUT</http-method>
      </web-resource-collection>
      <auth-constraint>
         <role-name>tomcat</role-name>
	 <role-name>role1</role-name>
      </auth-constraint>
    </security-constraint>

    <login-config>
      <auth-method>BASIC</auth-method>
      <realm-name>Example Basic Authentication
Area</realm-name>
    </login-config>


Did I forget something? I would really appreciate to
recieve an answer.

Thanks
peter 

__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/