The Shibboleth V1 software has reached its End of Life and is no longer supported. This documentation is available for historical purposes only.
RegExpAttributeDefinition
Configuring a RegExAttribute Definition
The RegExAttributeDefinition allows regular expression based replacements on attribute values, using the regex syntax
allowed by java.util.regex.Pattern. Capturing groups can be specified in the regex string using parenthesis and in
the replacement string using $i, where i = 0-9. Case-insensitive matches can be specified using the 'ignoreCase'
attribute set to true. No other flags allowed by java.util.regex.Pattern are deemed useful and hence not supported
yet, but are easy to add if needed.
Configuring the Definition
Create a RegExAttributeDefinition element with its id attribute.
Add necessary dependencies (i.e. DataConnectorDependency).
Example Configuration
<RegExAttributeDefinition
id="urn:mace:dir:attribute-def:eduPersonAffiliation"
sourceName="eduPersonAffiliation"
regex=".*STAFF.*"
replacement="staff"
ignoreCase="true">
<DataConnectorDependency requires="directory"/>
</RegExAttributeDefinition>