aspose file tools*
The moose likes Tomcat and the fly likes JDBCRealm class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "JDBCRealm class" Watch "JDBCRealm class" New topic
Author

JDBCRealm class

Pepe Cardozo
Greenhorn

Joined: Dec 26, 2006
Posts: 1
I'm using Tomcat 5.5 and want to implement the authentication through jdbcrealm, i also want to use the MD5 as digest; my problem is that i cannot locate the JDBCRealm class, i looked up in the catalina.jar but couldn't find it.
Neerav Narielwala
Ranch Hand

Joined: Dec 08, 2006
Posts: 106
This type of realm involves storing the credentials of your users (i.e. their usernames, passwords and assigned roles) inside a database. Tomcat will then need to be configured to use this database and the JDBC realm option inside the configuration files will need to be enabled.

Setting up a JDBC Realm involves the following steps:

1.

Install and Setup The Database
2.

Install the JDBC Driver
3.

Setup the Database Tables
4.

Test The JDBC Driver and Connection
5.

Deploy and Test the Web Application
6.

Prepare the Necessary Login and Error HTML Files
7.

Edit Tomcat's server.xml To Enable JDBC Realm
8.

Edit the Web Application's web.xml To Require Authentication
9.

Start Tomcat and Test


<a href="http://www.java-tips.org/java-tutorials/tutorials/" target="_blank" rel="nofollow">Java Tutorials</a> | <a href="http://www.planet-java.org" target="_blank" rel="nofollow">Java Weblog</a> | <a href="http://computer-engineering.science-tips.org" target="_blank" rel="nofollow">Computing Articles</a>
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42620
    
  65
It doesn't really matter whether you know where the class is - Tomcat knows If you're really curious, it's in catalina-optional.jar, and its documentation is here.


Ping & DNS - my free Android networking tools app
 
Consider Paul's rocket mass heater.
 
subject: JDBCRealm class