On Wed, 20 Mar 2002, G�nter Kukies wrote:
> Date: Wed, 20 Mar 2002 14:06:00 +0100
> From: G�nter Kukies <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: extends JDBCRealm
>
> Hello,
>
> I want to write a new MyRealm class that extend from JDBCRealm. The new
> class should do a BASE64 password protection.
> The compilation of the class was sucessfull.
>
Of course, you can do this with the standard version, by using the
"digest" property on the <Realm> element ...
> Where should I place that class and what entries do I need in the
> server.xml.
>
To be visible to the Tomcat internals, your class needs to be in one of
two places:
* In an unpacked directory $CATALINA_HOME/server/classes (create it if
you need), with subdirectories to mirror the package structure in the
usual way
* In a JAR file in $CATALINA_HOME/server/lib (which is how all the
standard Tomcat server classes are shipped)
To tell Tomcat to use your realm implementation, simply change the
"className" attribute of the <Realm> element to the fully qualified class
name of your own implementation, instead of
"org.apache.catalina.realm.JDBCRealm".
> G�nter
Craig
--
To unsubscribe: <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>