Skip to main content

mapping role with more groups (JDBC REALM)

No replies
rastislav
Offline
Joined: 2013-01-27
Points: 0

i assigned username to all 3 groups and i ask for role in my web application isUserInRole("FULL") it is true its ok..

but i am always in role FULL if my username is assigned at least one of them .. its like OR among the <group-name> elements .

but what i need :::: i need be FULL if username has all groups assigned its mean AND among elements <group-name>

piece of example this code map role god to 3 groups...

example sun-web.xml

<security-role-mapping>
        <role-name>FULL</role-name>

        <group-name>CUSTOMER</group-name>
        <group-name>ADMIN</group-name>
        <group-name>MANAGER</group-name>

</security-role-mapping>