tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nacho <na...@siapi.es>
Subject RE: BASIC Authentication
Date Fri, 06 Oct 2000 18:59:11 GMT
Hola, Micky

I have contexts of Tomcat 3.2 Beta4 with BASIC and others with FORM,
without problems, and your web.xml excerpt looks correct to me..... are
you able to use the security examples??? are located in
http://localhost:8080/examples/jsp/security/protected accesing this
directory in your tomcat install, makes FORM security work, modifiying
the web.xml file for the examples context ( in fact uncomment a fragment
that is in the web.xml file ) you can turn the examples to BASIC
security, this works for me without problems , please test it..

Saludos ,
Ignacio J. Ortega


> -----Mensaje original-----
> De: Micky Mimo [mailto:micky@truexchange.com]
> Enviado el: viernes 6 de octubre de 2000 20:47
> Para: tomcat-user@jakarta.apache.org
> Asunto: BASIC Authentication
> 
> 
> I have tried setting up Basic Authentication for tomcat and 
> can not seem to
> get it to work on directories that are not part of the basic 
> install. It
> works fine when I set this up with the /ROOT directory. I 
> have read through
> the news groups and have not found a solution to this 
> problem. Although, I
> see a lot of similar problems. Do I need to do more with the 
> other xml files
> in the conf directory. I am running tomcat 3.2 beta4. I can 
> not get this to
> work on 3.1 as well. My web.xml looks like the following.
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
>     "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> 
> <web-app>
> 
>     <security-constraint>
>       <web-resource-collection>
>          <web-resource-name>Protected Area</web-resource-name>
>          <url-pattern>/secure/*</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>admin</role-name>
>       </auth-constraint>
>     </security-constraint>
> 
>     <login-config>
>       <auth-method>BASIC</auth-method>
>       <realm-name>Admin</realm-name>
>     </login-config>
> 
> 
> </web-app>
> 
> /===============================\
> | Micky Mimo                    |
> | Systems Specialist            |
> | (781) 869 - 3677   ext.505    |
> | micky@truexchange.com         |
> \===============================/
> 
> 

Mime
View raw message