lemonldap-ng/contribs/lemonldap-valve-tomcat/INSTALL.TXT

66 lines
2.3 KiB
Plaintext
Raw Normal View History

2008-07-21 14:00:35 +02:00
This valve is only available for tomcat 5.5 or greater
An up2date documentation can be found here:
http://wiki.lemonldap.objectweb.org/xwiki/bin/view/NG/DocAppTomcatValve
2009-06-29 13:28:44 +02:00
2008-07-21 14:00:35 +02:00
COMPILATION
=====================================
2009-06-29 13:28:44 +02:00
Required:
2008-07-21 14:00:35 +02:00
* ant
* jre > 1.6
2008-07-21 14:00:35 +02:00
* tomcat >= 5.5
2009-06-29 13:28:44 +02:00
Configure your tomcat home in build.properties file (be careful of path for windows user)
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
Path must contains "/". For example:
c:/my hardisk/tomcat/
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
Run ant command:
$ ant
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
ValveLemonLDAPNG.jar is created under /dist directory.
2008-07-21 14:00:35 +02:00
INSTALLATION
======================================
2009-06-29 13:28:44 +02:00
Copy ValveLemonLDAPNG.jar in <TOMCAT_HOME>/server/lib
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
Add on your server.xml file a new valve entry like this (in host section):
2008-07-21 14:00:35 +02:00
<Valve className="org.lemonLDAPNG.SSOValve" userKey="AUTH-USER" roleKey="AUTH-ROLE" roleSeparator="," allows="127.0.0.1" passThrough="true"/>
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
Configure attributes :
- userKey: Key in the HTTP header sent by LemonLDAP::NG containing user login
- roleKey: Key in the HTTP header sent by LemonLDAP::NG containing roles. If LemonLDAP send some roles split by some commas, use roleSeparator
* roleSeparator: See above
* allows: You can filter remote IP. IP defined in this attribute are allowed (use "," separator for multiple IP). Just set the LemonLDAP::NG server IP in this attribute in order to add more security. If this attribute is missed, all hosts are allowed.
* passThrough: Allow anonymous access or not. When it takes "false", HTTP headers have to be sent by LemonLDAP::NG to make authentication and if the user is not recognized or HTTP headers not present, a 403 error is send. If "true", HTTP requests without headers will pass trough the valve (use with caution).
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
(-) Required attributes
2008-07-21 14:00:35 +02:00
(*) Optional attributes
2009-06-29 13:28:44 +02:00
2008-07-21 14:00:35 +02:00
QUICK TEST AN DEBUGGING TIPS
=======================================
2009-06-29 13:28:44 +02:00
Download for example probe application (great administration tool for tomcat) at http://www.lambdaprobe.org
2008-07-21 14:00:35 +02:00
Install valve and configure it.
2009-06-29 13:28:44 +02:00
Send via LemonLDAP::NG a user with the role "probeuser" or "manager"
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
Probe doesn't ask authentification, you're logged.
2008-07-21 14:00:35 +02:00
2009-06-29 13:28:44 +02:00
For debugging, this valve can print some helpfull information in debug level. Configure logging in tomcat (see tomcat.apache.org/tomcat-5.5-doc/logging.html)
2008-07-21 14:00:35 +02:00
CONTACT
=======================================
swapon666 (at) users.sourceforge.net
2009-06-29 13:28:44 +02:00
http://lemonldap.ow2.org