Does anyone have an example of how to use regexsplit
Leonard Kroll
Leonard.Kroll at umb.edu
Tue Sep 25 13:52:20 EDT 2012
Hi, I need to split the title attribute. I want to pull "Student", "Staff" and "Faculty" off the beginning of the attribute.
i.e. "Faculty/pt", "Staff/ne", "Student/li"
Does anyone have an example of regexsplit showing how to use it?
I have it setup as but it is not working.
<resolver:AttributeDefinition xsi:type="ad:Scoped" id="eduPersonScopedAffiliation" scope="umb.edu"
sourceAttributeID="title">
<resolver:Dependency ref="myLDAP" />
<resolver:AttributeEncoder xsi:type="enc:SAML1ScopedString"
name="urn:mace:dir:attribute-def:eduPersonScopedAffiliation" />
<resolver:AttributeEncoder xsi:type="enc:SAML2ScopedString" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.9"
friendlyName="eduPersonScopedAffiliation" />
</resolver:AttributeDefinition>
<!-- -->
<resolver:AttributeDefinition xsi:type="RegexSplit" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
id="SPLIT_TITLE"
sourceAttributeID="title"
regex="[Student][Faculty][Staff]">
<resolver:Dependency ref="eduPersonScopedAffiliation" />
</resolver:AttributeDefinition>
<!-- -->
Thank you for your help
~lennyK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 10101 bytes
Desc: not available
Url : http://shibboleth.net/pipermail/users/attachments/20120925/3093faee/attachment.bin
More information about the users
mailing list