IdPv3: Problem with back references in mapped attribute definition
Etienne Dysli-Metref
etienne.dysli-metref at switch.ch
Tue Mar 17 10:54:31 EDT 2015
Hi list!
The XML schema for attribute resolver configuration says that back
references (as supported by java.util.regex.Pattern) are supported in
the ReturnValue element (see
http://shibboleth.net/schema/idp/shibboleth-attribute-resolver-ad.xsd
complexType "ValueMapType"), but I can't get this to work. I have the
following mapped attribute definition and I'm using IdP version 3.1.0.
<resolver:AttributeDefinition xsi:type="ad:Mapped"
id="eduPersonAffiliation" sourceAttributeID="eduPersonAffiliation">
[...]
<ad:ValueMap>
<ad:ReturnValue>member</ad:ReturnValue>
<ad:SourceValue>staff|student|faculty|employee</ad:SourceValue>
</ad:ValueMap>
<ad:ValueMap>
<ad:ReturnValue>\\1</ad:ReturnValue>
<ad:SourceValue>(staff|student|faculty|employee)</ad:SourceValue>
</ad:ValueMap>
</resolver:AttributeDefinition>
For an initial value of "student", I get two values: "member" and "\1"
but I would like "member" and "student". So are back references really
supported or am I doing this wrong?
Cheers,
Etienne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
Url : http://shibboleth.net/pipermail/users/attachments/20150317/c36cf09b/attachment.bin
More information about the users
mailing list