This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes mutiple groups to same security role Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "mutiple groups to same security role" Watch "mutiple groups to same security role" New topic
Author

mutiple groups to same security role

uday s
Greenhorn

Joined: Jan 31, 2006
Posts: 10
i'm using Active Directory as authentication mechanism and tomcat is my application server .

How do we add mutiple groups to be linked to same security role in web.xml of an-application in tomcat.

an evrything runs fine when one security role is tagged to one groups tagged to same security role.i get authorization error only when i tag multiple groups to same security role

eg: part of my web.xml--> which gives error

<security-role-ref>
<role-name>ADMIN</role-name>
<role-link>admin_from_department_1</role-link>
</security-role-ref>
<security-role-ref>

<security-role-ref>
<role-name>ADMIN</role-name>
<role-link>admin_from_department_2</role-link>
</security-role-ref>
<security-role-ref>

eg: part of my web.xml--> which works with no error

<security-role-ref>
<role-name>ADMIN</role-name>
<role-link>admin_from_department_1</role-link>
</security-role-ref>
<security-role-ref>

<security-role-ref>
<role-name>DIFFERENT_ROLE</role-name>
<role-link>admin_from_department_2</role-link>
</security-role-ref>
<security-role-ref>

what is the difference ? i cannot add people from dept1 and dep2 as ADMIN
thanks in advance for any pointers
uday s
Greenhorn

Joined: Jan 31, 2006
Posts: 10
sorry code was a bit out of shape due to ctrl-c ctrl-v
here it is again

eg: part of my web.xml--> which gives error

<security-role-ref>
<role-name>ADMIN</role-name>
<role-link>admin_from_department_1</role-link>
</security-role-ref>


<security-role-ref>
<role-name>ADMIN</role-name>
<role-link>admin_from_department_2</role-link>
</security-role-ref>


eg: part of my web.xml--> which works with no error

<security-role-ref>
<role-name>ADMIN</role-name>
<role-link>admin_from_department_1</role-link>
</security-role-ref>


<security-role-ref>
<role-name>DIFFERENT_ROLE</role-name>
<role-link>admin_from_department_2</role-link>
</security-role-ref>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mutiple groups to same security role
 
Similar Threads
Security roles in web.xml
web container on mutiple jvms
Q:security-role-ref
Question on web-app security
Authorization verses Authentication ?