• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JDBCRealm class

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Honk if you love justice! And honk twice for tiny ads!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic