This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Security and the fly likes web.xml <security-constraint> accept any role Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » Security
Bookmark "web.xml <security-constraint> accept any role" Watch "web.xml <security-constraint> accept any role" New topic

web.xml <security-constraint> accept any role

Mike Nason

Joined: Apr 19, 2006
Posts: 20
We are using LDAP authentication, so when user enter Active Directory user/pass he is able to view jsp page.

I need all users(any role users) that authenticated successfully using LDAP will be able to process to site, so I am able to show apropriate content based on their roles.
How can I configure security-constraint to allow any role get in?
<role-name>*</role-name> doesn't work!

Wanna code??
Alexander Curvers

Joined: Apr 03, 2009
Posts: 26
im no expert on this, but this seems correct, did you define the roles too in the web.xml ? or they wont work

I agree. Here's the link:
subject: web.xml <security-constraint> accept any role
Similar Threads
related to auth constraint
Marcus Green Quiz 1 - Mock Exam Question Doubt
Tips on form-based authetication
Get Error messages/Exceptions from Active Directory Server(ADS) with Weblogic 9.2
EJB and Security (JAAS)