template attribute definition possible bug?
Krug, Jeff
Jeff.Krug at gtri.gatech.edu
Mon Nov 2 15:48:55 EST 2015
I have something extremely similar to what you have in IDP3 and it works fine for me (references 2 other Attribute Definitions and them combines them based on a template). I would suggest not having your attribute definition use the same name as the LDAP attribute... Whether that is the root of the problem or not, it's only going to confuse you and be a potential source of errors... So change the attr1 definition to something like this:
<resolver:AttributeDefinition xsi:type="Mapped" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
id="myAttr1" sourceAttributeID="attr1" dependencyOnly="true">?
then have the dependency and the source in the testing attribute reference myAttr1.
You would have to make a similar uniqueness change to attr2.
________________________________
From: users <users-bounces at shibboleth.net> on behalf of Athanasios Douitsis <aduitsis at gmail.com>
Sent: Monday, November 2, 2015 3:39 PM
To: Shib Users
Subject: Re: template attribute definition possible bug?
On Mon, Nov 2, 2015 at 10:34 PM, Cantor, Scott <cantor.2 at osu.edu<mailto:cantor.2 at osu.edu>> wrote:
It's entirely possible.
Always glad to hear that, but at this point the solution eludes me :)
Assuming a number of mapped attributes like this:
<resolver:AttributeDefinition xsi:type="Mapped" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
id="attr1" sourceAttributeID="attr1" dependencyOnly="true">
<resolver:Dependency ref="myLDAP" />
<DefaultValue>undefined</DefaultValue>
<ValueMap>
<ReturnValue>$1</ReturnValue>
<SourceValue>(.+)</SourceValue>
</ValueMap>
</resolver:AttributeDefinition>
Would kindly suggest what would I need to change in the template of my original mail ?
<resolver:AttributeDefinition xsi:type="Template" xmlns="urn:mace:shibboleth:2.0:resolver:ad" id="testing">
<resolver:Dependency ref="attr1" />
<resolver:Dependency ref="attr2" />
<Template>
<![CDATA[
${attr1}:${attr2}
]]>
</Template>
<SourceAttribute>attr1</SourceAttribute>
<SourceAttribute>attr2</SourceAttribute>
</resolver:AttributeDefinition>
Cheers and thanks,
--
Athanasios Douitsis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/users/attachments/20151102/cab4e619/attachment.html>
More information about the users
mailing list