On Mon, 29 Jul 2002, Tim McLaughlin wrote:
> Date: Mon, 29 Jul 2002 16:00:17 -0700
> From: Tim McLaughlin <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Custom org.apache.catalina.authenticator
>
> Hello,
>
> The Question:
> How do I specify a class other than
> org.catalina.authenticator.BasicAuthenticator to handle Basic
> authentication?
>
There is a properties file in the org.apache.catalina.authenticator
package that defines the mapping of authentication method to classname.
You would need to customize this file in
$CATALINA_HOME/server/lib/catalina.jar.
Or, an easier approach would be to copy your customized version of this
file into the
$CATALINA_HOME/server/classes/org/apache/catalina/authenticator directory
(which you'd have to create). This works because the Catalina class
loaders load from the "classes" directory before they load from JAR files
in the corresponding "lib" directory -- this works both for the server
class loader (server/classes before server/lib), the common class loader
(common/classes before common/lib) and the webapp class loader
(WEB-INF/classes before WEB-INF/lib).
Craig
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>