Here is a quick recipe to get started.
-
Copy jar to Tomcat's lib/
-
Add the following line to conf/logging.properties for testing
org.jasig.tomcat.valves.level = FINE
-
Add the following to conf/server.xml inside
"localhost" Host
just before other valves<Valve className="org.jasig.tomcat.valves.RemoteUserValve" userHeader="HTTP_USER_NAME" />
-
Restart Tomcat
-
Check catalina.out for logging from
RemoteUserValve