tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From colin lloyd <clloy...@gmail.com>
Subject how to configure a custom valve?
Date Mon, 04 Apr 2011 19:01:25 GMT
I am using Tomcat 7.0 and need to pass some additional data to my JAAS login
module during authentication with standard FORM logins.   By default using
the FORM login in the web application causes Tomcat to invoke the
FormAuthenticator valve which only passes username and password to the login
module.   I have created a custom FormAuthenticator valve, placed it in a
jar file in CATALINA_HOME/lib and updated the Authenticator.properties file
in the catalina.jar file to point to my new class.  Also in the webapp's
web.xml I  have changed the <authmethod> element in my <login-config> to
have the new label associated with my class in the Authenticator.properties
file.  Do I need to create an MBean XML descriptor file as well and if so
where should it go?

Colin

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message