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
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
Ranch Hand

Joined: Apr 03, 2009
Posts: 33
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
jQuery in Action, 3rd edition