Hello,

The answer to your question is that you cannot serve the User database (now
tomcat-users.xml) from inside a .war file as it cannot be read from in there
but you can change its location to be below your webapps directory. This can
be achieved by changing the path to it which is currently in Server.xml.

You need not use a flat file format though to serve your username/password
combinations just because you are using Basic Authentication. The two are
separate issues:
issue one is:
What type of authentication do I want? Form, Basic, Digest, Client-Cert.
This is a Sun servlet secification issue/list version 2.2 of which can be
found here:
 http://java.sun.com/products/servlet/2.2/

Issue two is:
Where am I going to store my database of users? Database (JDBC Realm), LDAP
directory (JNDI Realm), Flat File (Memory Realm), etc.
This is a Tomcat container specific issue/list which can be found here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/realm-howto.html

Hope this all helps,
Andoni.
----- Original Message ----- 
From: "Michal Kwiatek" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Thursday, November 11, 2004 4:25 PM
Subject: Basic authentication


I would like to use container-based declarative authentication without
the need to modify any files in $CATALINA_HOME/conf directory.

To simplify my question a bit: is it somehow possible to make tomcat
read tomcat-users.xml from the war file, and not from
$CATALINA_HOME/conf?

Michal.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to