According to the OrientDB's website:

Download

Both Realms are hosted on Gitorious, here.

To clone the Tomcat 6 Realm, run

git clone git://gitorious.org/tomcat-orientdb-realm/tomcat6-orientdb-realm.git

To clone the Tomcat 7 Realm, run

git clone git://gitorious.org/tomcat-orientdb-realm/tomcat7-orientdb-realm.git

Compilation

Compilation can be made with Maven. Run:

mvn clean package

Note for the Tomcat 6 Realm: If org.apache.tomcat:tomcat-catalina:jar:6.0.32 and org.apache.tomcat:tomcat-juli:jar:6.0.32 are missing, go into the dependencies folder and run:

mvn install:install-file -DgroupId=org.apache.tomcat -DartifactId=tomcat-catalina -Dversion=6.0.32 -Dpackaging=jar -Dfile=catalina.jar

and

mvn install:install-file -DgroupId=org.apache.tomcat -DartifactId=tomcat-juli -Dversion=6.0.32 -Dpackaging=jar -Dfile=tomcat-juli.jar

and then re-run

mvn clean package

Installation

Extract all the jars archived in the lib folder of the newly created target/tomcat[6|7]-orientdb-realm-<version>-bin.zip into your Tomcat's lib directory.

Configuration

The realm's attributes are:

Example:

<Realm className="ca.inocybe.tomcat.OrientDBRealm"
       orientHost="myorienthost.com"
       orientHostPort="2424"
       orientDbName="database"
       orientUsername="admin"
       orientPassword="password"
       userClass="users"
       passwordProperty="password"
       rolesProperty="groups" />

Bugs, questions and feedback

Contact jonathan.tellier@gmail.com

OrientDBRealm (last edited 2011-06-08 20:50:36 by JonathanTellier)