Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Schema Name and Location

This xsi:type is defined by in the urn:mace:shibboleth:2.0:resolver schema 3 namespace 3.3, the schema for which can be located at http://shibboleth.net/schema/idp/shibboleth-attribute-resolver.xsd.

Prior to V3.3 supplied plugins were defined by a schema type (xsi: type ) in the urn:mace:shibboleth:2.0:resolver:ad namespace, the schema for which is located at http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-ad.xsd. This is still supported, but every element or type in the  urn:mace:shibboleth:2.0:resolver:ad old namespace has an equivalently named (but not necessarily identical) version in the urn:mace:shibboleth:2.0:resolver namespace. The use of the urn:mace:shibboleth:2.0:resolver namespace also allows a relaxation of the ordering requirements of child elements to reduce strictness.

...

Any of the common attributes can be specified. In addition, the following attributes are defined:

NameTypeReq?DefaultDescription
regex
stringY
 

Provides the regular expression to apply
caseSensitive
boolean
 

falseWhether the match is case sensitive or not

Child Elements

Any of the common child elements can be specified.

...

Code Block
languagexml
<AttributeDefinition id="exampleRegexp" xsi:type="RegexSplit" sourceAttributeID="uid" regex="Pre-(.+)-Post">
	<Dependency ref="myLDAP" />
	<AttributeEncoder xsi:type="SAML2String" name="http://example.org/example" friendlyName="regexp"/>
</AttributeDefinition>

If this matcher definition was given supplied with an attribute with the input values "Fred", "Pre-And-Post", it would produce an output attribute with one value "And".