• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBCRealm class

 
Pepe Cardozo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic