RegexSplit syntaxing

Christopher Bongaarts cab at umn.edu
Fri Apr 24 16:37:55 EDT 2015


On 4/24/2015 3:35 PM, Goggins, Patrick wrote:
> I'm running into an issue with the RegexSplit type, it's a pretty simple return the last 9 digits scenario.
> [...]
> 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>

The regex matches against the entire value, not just a substring. Try 
regex=".*\d{9}" instead.

-- 
%%  Christopher A. Bongaarts   %%  cab at umn.edu          %%
%%  OIT - Identity Management  %%  http://umn.edu/~cab  %%
%%  University of Minnesota    %%  +1 (612) 625-1809    %%



More information about the users mailing list