Hi, I'm a n00b so bare with me! I've got Tomcat 5.5 installed on my machine to the default location c:\Tomcat5.5
I'm trying to get a simple example of BASIC auth running and I'm not having any luck. I created the folder C:\Tomcat5.5\webapps\security\ In there I have C:\Tomcat5.5\webapps\security\index.html with just a simple "Hello World" and C:\Tomcat5.5\webapps\security\WEB-INF\web.xml In the web.xml file I have <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4"> <security-constraint> <web-resource-collection> <web-resource-name>Protected Area</web-resource-name> <!-- Define the context-relative URL(s) to be protected --> <url-pattern>/security/*</url-pattern> </web-resource-collection> <auth-constraint> <!-- Anyone with one of the listed roles may access this area --> <role-name>dau</role-name> </auth-constraint> </security-constraint> <!-- Default login configuration uses form-based authentication --> <login-config> <auth-method>BASIC</auth-method> <realm-name>Example BASIC Authentication Area</realm-name> </login-config> <!-- Security roles referenced by this web application --> <security-role> <role-name>dau</role-name> </security-role> </web-app> and in the conf/tomcat-users.xml I added the dau role. This is not working. When I run the page I'm taken to the Hello World page, why am I not prompted for the password? It has to be something simple!? Thanks! --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]