<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>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:<br>
</p>
<p><br>
</p>
<p><span style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> </span><span style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<resolver:AttributeDefinition xsi:type="Mapped" xmlns="urn:mace:shibboleth:2.0:resolver:ad"</span><br style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);">
<span style="color: rgb(33, 33, 33); font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> id="myAttr1" sourceAttributeID="attr1" dependencyOnly="true"></span><br>
</p>
<p><br>
</p>
<p>then have the dependency and the source in the testing attribute reference myAttr1.<br>
</p>
<p><br>
</p>
<p>You would have to make a similar uniqueness change to attr2.<br>
</p>
<p><br>
</p>
<p><br>
</p>
<div style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> users <users-bounces@shibboleth.net> on behalf of Athanasios Douitsis <aduitsis@gmail.com><br>
<b>Sent:</b> Monday, November 2, 2015 3:39 PM<br>
<b>To:</b> Shib Users<br>
<b>Subject:</b> Re: template attribute definition possible bug?</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Nov 2, 2015 at 10:34 PM, Cantor, Scott <span dir="ltr">
<<a href="mailto:cantor.2@osu.edu" target="_blank">cantor.2@osu.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<span class=""></span>It's entirely possible.</blockquote>
</div>
<br>
</div>
<div class="gmail_extra">Always glad to hear that, but at this point the solution eludes me :)
<br>
<br>
</div>
<div class="gmail_extra">Assuming a number of mapped attributes like this:<br>
<br>
<resolver:AttributeDefinition xsi:type="Mapped" xmlns="urn:mace:shibboleth:2.0:resolver:ad"<br>
id="attr1" sourceAttributeID="attr1" dependencyOnly="true"><br>
<resolver:Dependency ref="myLDAP" /><br>
<DefaultValue>undefined</DefaultValue><br>
<ValueMap><br>
<ReturnValue>$1</ReturnValue><br>
<SourceValue>(.+)</SourceValue><br>
</ValueMap><br>
</resolver:AttributeDefinition><br>
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Would kindly suggest what would I need to change in the template of my original mail ?
<br>
<br>
<resolver:AttributeDefinition xsi:type="Template" xmlns="urn:mace:shibboleth:2.0:resolver:ad" id="testing"><br>
<resolver:Dependency ref="attr1" /><br>
<resolver:Dependency ref="attr2" /><br>
<Template><br>
<![CDATA[<br>
${attr1}:${attr2}<br>
]]><br>
</Template><br>
<SourceAttribute>attr1</SourceAttribute><br>
<SourceAttribute>attr2</SourceAttribute><br>
</resolver:AttributeDefinition><br clear="all">
</div>
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Cheers and thanks,<br>
</div>
<div class="gmail_extra">-- <br>
<div class="gmail_signature">Athanasios Douitsis<br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>