RegexSplit syntaxing
Filipozzi, Luca
luca.filipozzi at ubc.ca
Fri Apr 24 16:39:30 EDT 2015
Don't you need to define a match group? The first match group is returned as the value of the attribute, I believe. In other words, something like "(\d{9})\b"?
--
Luca Filipozzi, UBC IT Enterprise Architecture
On 2015-04-24, 13:35, "Goggins, Patrick" <gogginsp at uwgb.edu> wrote:
>I'm running into an issue with the RegexSplit type, it's a pretty simple return the last 9 digits scenario.
>
>The below works and outputs an integer longer than 9 digits
>
> <resolver:AttributeDefinition xsi:type="ad:Simple" id="CampusID" sourceAttributeID="employeeNumber">
> <resolver:Dependency ref="myLDAP" />
> <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:1.2.840.113556.1.2.610" friendlyName="CampusID" />
> </resolver:AttributeDefinition>
>
>The below is returning no values
>
> <resolver:AttributeDefinition xsi:type="RegexSplit" xmlns="urn:mace:shibboleth:2.0:resolver:ad" id="CampusID" sourceAttributeID="employeeNumber" regex="\d{9}\b">
> <resolver:Dependency ref="myLDAP" />
> <resolver:AttributeEncoder xsi:type="enc:SAML2String" name="urn:oid:1.2.840.113556.1.2.610" friendlyName="CampusID" />
> </resolver:AttributeDefinition>
>
>Ideas?
>
>Thanks,
>
>~Patrick
>--
>To unsubscribe from this list send an email to users-unsubscribe at shibboleth.net
More information about the users
mailing list