<div dir="ltr"><div><div><div>Hello and thanks for the reply,<br><br></div>Unfortunately it doesn't work no matter what. I tried what you suggested. <br><br>This has all the makings of a bug, seeing that the value of attr1 gets placed in both $attr1 and $attr2. So I always get 2 different values for the final templated attribute, first val1:val1 and then val2:val2. If I have 3 attributes in my template, I get 3 different values. The number of dependencies or source attributes does not play a role, only what attributes are mentioned in the template expression. Go figure. If I put in 6 dependencies and 6 source attributes but I only say $attr1:$attr2:$attr3, I will get 3 values, val1:val1:val1, val2:val2:val3 and val3:val3:val3. I don't suppose the ':' has any special meaning in templates.<br><br>I cannot imagine a normal way for this to be happening. All the source attribute names and all the ids are different from one another. <br><br></div>Cheers,<br></div>Athanasios<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 2, 2015 at 10:48 PM, Krug, Jeff <span dir="ltr"><<a href="mailto:Jeff.Krug@gtri.gatech.edu" target="_blank">Jeff.Krug@gtri.gatech.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div 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 class=""><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><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 style="display:inline-block;width:98%">
<div dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> users <<a href="mailto:users-bounces@shibboleth.net" target="_blank">users-bounces@shibboleth.net</a>> on behalf of Athanasios Douitsis <<a href="mailto:aduitsis@gmail.com" target="_blank">aduitsis@gmail.com</a>><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 class="h5">
<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></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>Athanasios Douitsis<br>
<br>
<br>
</div>
</div>
</div>
</div>
</div></div></div>
</div>

<br>--<br>
To unsubscribe from this list send an email to <a href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">Athanasios Douitsis<br><br><br></div>
</div>