Tomcat valve

The Tomcat valve was provided by Pascal Pejac.

This valve is only available for tomcat 5.5 or greater.

Compilation

Note: source and compiled valve can be found in the download area.

Required : Configure your tomcat home in build.properties files.

Note: be careful for Windows user, path must contains "/".

Example:
c:/my hardisk/tomcat/


Next run ant command:
ant


ValveLemonLDAPNG.jar is created under /dist directory.

Installation



Copy ValveLemonLDAPNG.jar on <TOMCAT_HOME>/server/lib

Add on your server.xml file a new valve entry like this (in host section):

<Valve className="org.lemonLDAPNG.SSOValve" userKey="AUTH-USER" roleKey="AUTH-ROLE" roleSeparator="," allows="127.0.0.1"/>


Configure attributes:

Quick test and debugging tips



Download for example probe application (great administration tool for tomcat): http://www.lambdaprobe.org.

Install valve and configure it.

Send via LemonLDAP::NG user with role = probeuser or other user with role = manager.

Probe doesn't ask authentication, you're logged...

For debugging, this valve can print some helpful information in debug level. Configure logging in tomcat (see http://tomcat.apache.org/tomcat-5.5-doc/logging.html) .