A
adamcrume
I work for a company with complex security needs. Rather than just
belonging to groups, users often have group membership based on
department. To accomplish this, we have group names that are
department ID + simple group name. For example, a user might be a
member of 01-viewlogs, 01-updatelogs, and 02-viewlogs. To be able to
check for group membership, I have to list every group in web.xml.
This is obviously a problem, because I'd have to have (number of
departments) * (number of simple groups) entries. In other words:
<security-role>
<role-name>01-viewlogs</role-name>
</security-role>
<security-role>
<role-name>02-viewlogs</role-name>
</security-role>
<security-role>
<role-name>01-updatelogs</role-name>
</security-role>
<security-role>
<role-name>02-updatelogs</role-name>
</security-role>
....
Is there any way around this, perhaps by using wildcards? As far as I
can tell, the spec only allows listing exact group names.
belonging to groups, users often have group membership based on
department. To accomplish this, we have group names that are
department ID + simple group name. For example, a user might be a
member of 01-viewlogs, 01-updatelogs, and 02-viewlogs. To be able to
check for group membership, I have to list every group in web.xml.
This is obviously a problem, because I'd have to have (number of
departments) * (number of simple groups) entries. In other words:
<security-role>
<role-name>01-viewlogs</role-name>
</security-role>
<security-role>
<role-name>02-viewlogs</role-name>
</security-role>
<security-role>
<role-name>01-updatelogs</role-name>
</security-role>
<security-role>
<role-name>02-updatelogs</role-name>
</security-role>
....
Is there any way around this, perhaps by using wildcards? As far as I
can tell, the spec only allows listing exact group names.