How to use JDBCRealm in Tomcat?

Posted on 2006-05-10
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

    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

    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


    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now