tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miles Daffin" <>
Subject Container Managed Security - Basic authentication will not work.
Date Thu, 16 Nov 2000 22:48:31 GMT

TC version: 3.1
Java version: "1.3.0-C"
OS: Win 2000 (SP 1)

Has anyone else tested the Example Basic Authentication Area (see TOMCAT_HOME\readme.txt)
in the example web app?

I placed an index.html in '/examples/jsp/security/protected' directory and tried the following
1: http://localhost:8080/examples/jsp/security/protected/
2: http://localhost:8080/examples/jsp/security/protected/index.html
3: http://localhost:8080/examples/jsp/security/protected/index.jsp

In each case a Basic Authentication dialog opens OK & I enter a user ID and password combination
as defined in TOMCAT_HOME/conf/tomcat-users.xml.

This is what happens:-

1: A listing of directories that DO NOT EXIST within 'examples/jsp/security/protected' - they
are in the 'examples' directory. 
      Directory Listing for: /examples/jsp/security/protected/ 
      Up to: /examples/jsp/security 
            images/           Sun, 05 Nov 2000 14:26 GMT+01:00 
            jsp/           Sun, 05 Nov 2000 14:26 GMT+01:00 
            servlets/           Sun, 05 Nov 2000 14:26 GMT+01:00 
      Tomcat Web Server v3.1 

2: Error 404
Error: 404
Location: /examples/jsp/security/protected/index.html
File Not Found

There is DEFINITELY an index.html in this location

3: Error 404 - same as above but for 'index.jsp'

If I press make 3 bad attempts to log-in OR press cancel I get a blank page - wonderful!

Any ideas? - please. 

Finally: The project I am involved in intends to run TomCat as a standalone - no Apache. 
* Can anyone direct me to a decent source of info on how to configure Basic and other forms
of access control to protected resources using JUST TomCat?
* Is it possible to hook TomCat up to an LDAP server (users, groups & roles)?
* Can I define users (as in TOMCAT_HOME/conf/tomcat-users.xml) separately for each web app?

Thanks in advance .....


Miles Daffin 
Java Developer, Netherlands.  

Land: +31 (0)10 476 2412
Mobile: +31 (0)6 2959 1423
Permanent email:


View raw message