• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

mutiple groups to same security role

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Why am I so drawn to cherry pie? I can't seem to stop. Save me tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic