<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Thanks, Nate. &nbsp;I will define the attributes on my side using the unknown value for the format.</span></div><div><br></div>  <div style="font-size: 12pt; font-family: arial, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Nate Klingenstein &lt;ndk@internet2.edu&gt;<br> <b><span style="font-weight: bold;">To:</span></b> Shib Users &lt;users@shibboleth.net&gt; <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, June 20, 2012 11:25 AM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Getting attributes from an OpenAM 10 Idp<br> </font> </div> <br>
Mike,<br><br>&gt; I am running Shibboleth 2.x on IIS.<br>&gt;<br>&gt; I am trying to get attributes to pass from an Idp based on the&nbsp; <br>&gt; OpenAM 10 service.&nbsp; We connect just fine.&nbsp; Just trying to get the&nbsp; <br>&gt; attributes to pass through...<br>&gt;<br>&gt; They are passing a standard LDAP mail attribute.<br><br>This isn't really "standard".&nbsp; The name is hopelessly not unique.&nbsp; The&nbsp; <br>proper unique name for the mail attribute would be name="urn:oid:0.9.2342.19200300.100.1.3 <br>", friendlyName="mail", and a nameFormat of NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri <br>".<br><br>But it may not be too feasible to make this change on their end, so to&nbsp; <br>make a change on yours, read on.<br><br>&gt; From their assertion:<br>&gt;<br>&gt; &lt;saml:AttributeStatement&gt;<br>&gt; &lt;saml:Attribute Name="mail"&gt;<br>&gt; &lt;saml:AttributeValue xmlns:xs="http://www.w3.org/ 2001/XMLSchema"&nbsp;
 <br>&gt; xmlns:xsi="<a href="http://www.w3.org/" target="_blank">http://www.w3.org/</a> 2001/XMLSchema-instance"&nbsp; <br>&gt; xsi:type="xs:string"&gt;auser@ someplace.com&lt;/saml: AttributeValue&gt;<br>&gt; &lt;/saml:Attribute&gt;<br>&gt; &lt;/saml:AttributeStatement&gt;<br>&gt;<br>&gt; And their configuration defines mail as this:<br>&gt;<br>&gt; &lt;saml:Attribute Name="mail"&gt;<br>&gt; &lt;saml:AttributeValue xmlns:xs="<a href="http://www.w3.org/" target="_blank">http://www.w3.org/</a> 2001/XMLSchema"&nbsp; <br>&gt; xmlns:xsi="<a href="http://www.w3.org/" target="_blank">http://www.w3.org/</a> 2001/XMLSchema-instance"&nbsp; <br>&gt; xsi:type="xs:string"&gt;cayetano@ adobe.com&lt;/saml: AttributeValue&gt;<br>&gt; &lt;/saml:Attribute&gt;<br>&gt;<br>&gt; Now I have mail defined as this (default definition that came with&nbsp; <br>&gt; Shib):<br>&gt;<br>&gt;&nbsp; &nbsp;  &lt;Attribute name="urn:mace:dir:attribute- def:mail"
 id="mail"/&gt;<br>&gt;<br>&gt; I am going to guess that the mace urn is not going to fly for them&nbsp; <br>&gt; on this.&nbsp; For another customer I defined an attribute for them like&nbsp; <br>&gt; this:<br>&gt;&nbsp; &nbsp; &nbsp; &lt;Attribute name="qcmail" nameFormat="urn:oasis:names: tc:SAML: <br>&gt; 2.0:attrname-format: basic" id="qcmail"&gt;<br>&gt; &lt;AttributeDecoder xsi:type=" StringAttributeDecoder"&nbsp; <br>&gt; caseSensitive="false"/&gt;<br>&gt; &lt;/Attribute&gt;<br>&gt;<br>&gt; And that worked fine.&nbsp; I am guessing that I will need to do a&nbsp; <br>&gt; similar definition for mail (non MACE) for this to pass through.&nbsp; My&nbsp; <br>&gt; questions are:<br>&gt;<br>&gt; Is the MACE name indeed what prevents the attribute from passing?&nbsp;  <br>&gt; Since they would not match that name value on their side...<br><br>It's not that the MACE name is "preventing" an attribute from&nbsp; <br>passing.&nbsp; The SP is receiving an
 attribute with a name and nameFormat&nbsp; <br>that it doesn't recognize and it doesn't know how to handle it.<br><br>&gt; Next question (assuming that the MAC name is not going to fly...):<br>&gt;<br>&gt; If I re-define, let's say, mail for example and I do it like this:<br>&gt;<br>&gt;&nbsp; &nbsp; &nbsp; &lt;Attribute name="mail" nameFormat="urn:oasis:names: tc:SAML: <br>&gt; 2.0:attrname-format: basic" id="mail"&gt;<br>&gt; &lt;AttributeDecoder xsi:type=" StringAttributeDecoder"&nbsp; <br>&gt; caseSensitive="false"/&gt;<br>&gt; &lt;/Attribute&gt;<br><br>This is close, but with no nameFormat in the attribute, I believe&nbsp; <br>you'll want :attrname-format:undefined rather than :attrname- <br>format:basic.<br><br>&gt; Will the duplicate ID value of 'mail' conflict with the MACE version&nbsp; <br>&gt; of the attribute?<br><br>The ID determines which header/environment variable the attribute is&nbsp; <br>placed into and how it is known to the rest of
 the SP.&nbsp; You may map&nbsp; <br>many SAML attributes to one internal ID, or each SAML attribute to its&nbsp; <br>own internal ID; pick the behavior that you desire.<br><br>Take care,<br>Nate.<br>--<br>To unsubscribe from this list send an email to <a ymailto="mailto:users-unsubscribe@shibboleth.net" href="mailto:users-unsubscribe@shibboleth.net">users-unsubscribe@shibboleth.net</a><br><br><br> </div> </div>  </div></body></html>