-
1. Re: FormAuthenticator with User Output
j2ee_junkie Mar 23, 2006 9:08 AM (in response to notarzt-hd)Micheal,
If you want to use the org.jboss.web.tomcat.security.FormAuthenticator (or your modified version) you need make sure Tomcat knows to use this authenticator when asked to do FORM authentication. Tomcat has a mapping of authentication type (i.e. BASIC, DIGEST, FORM, etc.) to authenticator (i.e. BasicAuthenticator, DigestAuthenticator, FormAuthenticator, etc.) in a file org/apache/catalina/startup/Authenticators.properties. When Tomcat is started, this property file is loaded. When your application specifies an authentication type via the auth-method element, the matching authenticator is loaded for your app's context. By default, Tomcat uses org.apache.catalina.authenticators.FormAuthenticator when FORM auth-method is specified. To specify a different authenticator there are three things you can do.
1: unpack $YOUR_SERVER/deploy/jbossweb-tomcatXX.sar/catalina.jar. Modify Authenticators.properties file. Repack catalina.jar. Restart server.
2: Same as 1, only leave catalina.jar unpacked.
3: Use JBoss > 4.0.2. Now there is a way to specify authenticators in Tomcat's service descriptor file.
Hope this helps, cgriffith -
2. Re: FormAuthenticator with User Output
notarzt-hd Mar 23, 2006 5:30 PM (in response to notarzt-hd)Hi cgriffith,
thank you very much! After i copied my "self made Authenticator CLASS" to the catalina JAR and made the reference in the properties File: It is working :))
Thx and greetings,
Michael