[Last Call] Learn how to a build a cloud-first strategyRegister Now


How to use JDBCRealm in Tomcat?

Posted on 2006-05-10
Medium Priority
Last Modified: 2012-05-05
I know how to set this JDBCRealm in Tomcat and from what I know it use the j_security_check to call jdbcRealm.class to authenticate and authorize the user.  

My question is, is there  a way I can use the JDBCRealm without going through the j_security_check call at my log in?
Question by:fylix0000
LVL 10

Expert Comment

ID: 16653522
There are several ways -- you can use JDBCRealm with the various authentication methods (BASIC, DIGEST, CLIENT-CERT, or FORM)

j_security_check is a FORM method.

The method is controlled by <auth-method> element in <login-config> of the deployment descriptor for your application.


Author Comment

ID: 16655201
My application use IIS as the server and it has the redirector to send any .jsp to tomcat.  My IIS takes care of the authentication since it will use the window NT user name and password, now i want tomcat to do only the authorization to check the role.

From what I have seen so far, j_security_check does not work at all when I access it through IIS ,seems like a bug or something.

I think in this case only CLIENT-CERT may do what i need but I dont even know if  it is possible to do what i want.
LVL 23

Accepted Solution

rama_krishna580 earned 1500 total points
ID: 16661575

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question