Solved

tomcat 4.0.1 jdbc realm user-role question

Posted on 2002-06-21
5
260 Views
Last Modified: 2010-04-01
hi all,

how do i set tomcat not to look for a role when validating a user using jdbcrealm? if i omit the
<auth-constraint> it wont' validate anything it will just forward you to the resouce.

thanks.

    <security-constraint>
     
     <web-resource-collection>
         <web-resource-name>User Protected Area</web-resource-name>
          <url-pattern>/ovdc/*</url-pattern>
            <http-method>DELETE</http-method>
          <http-method>GET</http-method>
            <http-method>POST</http-method>
           <http-method>PUT</http-method>
      </web-resource-collection>

      <auth-constraint>
       <role-name></role-name>
      </auth-constraint>

    </security-constraint>
0
Comment
Question by:ahuen
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 19

Accepted Solution

by:
cheekycj earned 25 total points
ID: 7098913
try overriding the hasRole() method.

CJ
0
 

Author Comment

by:ahuen
ID: 7098961
CJ,

where? in JDBCRealm?
I am subclassing JDBCRealm.

thanks.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7098969
yes when you subclass JDBC Realm you should override the hasRole() method to always return true.. Its just an idea but it should work.

CJ
0
 

Author Comment

by:ahuen
ID: 7098976
awesome....

thanks.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 7098985
Thanx for the "A".  Good luck.

CJ
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Running Java Servlet inside Eclipse Luna 6 168
Struts tiles for layout structure along with Angular JS. 4 176
'exit' is not valid keyword in java 14 163
by zero exception 10 69
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

735 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