<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>On Mon, 4 Feb 2013, at 12:11 , Rod Widdowson &lt;<a href="mailto:rdw@steadingsoftware.com">rdw@steadingsoftware.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span style="font-family: Helvetica; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; display: inline !important; float: none; ">can you enter a JIRA case?</span></blockquote><br></div>I confess to not knowing at all how to do that...<div><br><div></div></div></div><div><div>On Mon, 4 Feb 2013, at 12:11 , Rod Widdowson &lt;<a href="mailto:rdw@steadingsoftware.com">rdw@steadingsoftware.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">WAG: Could you be encoding a non scoped attribute definition ( xsi:type = "simple") with a scoped attribute encoder? &nbsp;</blockquote></div><div><br></div><div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(255, 147, 0); "><span style="color: #323333">&nbsp;&nbsp;</span><span style="color: #091480">&lt;resolver:AttributeDefinition </span><span style="color: #098021">id=</span>"eduPersonPrincipalName"<span style="color: #091480"> </span><span style="color: #098021">xsi:type=</span>"Script"<span style="color: #091480"> </span><span style="color: #4b5a7d">xmlns=</span>"urn:mace:shibboleth:2.0:resolver:ad"<span style="color: #091480">&gt;</span></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(9, 20, 128); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span>&lt;resolver:Dependency <span style="color: #098021">ref=</span><span style="color: #ff9300">"myLDAP"</span> /&gt;</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(9, 20, 128); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span>&lt;resolver:Dependency <span style="color: #098021">ref=</span><span style="color: #ff9300">"uasystemid"</span> /&gt;</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(9, 20, 128); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span>&lt;resolver:Dependency <span style="color: #098021">ref=</span><span style="color: #ff9300">"uaadsystemid"</span> /&gt;</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); min-height: 16px; "><br></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(255, 147, 0); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #091480">&lt;resolver:AttributeEncoder </span><span style="color: #098021">xsi:type=</span>"SAML1ScopedString"<span style="color: #091480"> </span><span style="color: #4b5a7d">xmlns=</span>"urn:mace:shibboleth:2.0:attribute:encoder"</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(255, 147, 0); "><span style="color: #091480">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #098021">name=</span>"urn:mace:dir:attribute-def:eduPersonPrincipalName"<span style="color: #091480"> /&gt;</span></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); min-height: 16px; "><br></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(255, 147, 0); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #091480">&lt;resolver:AttributeEncoder </span><span style="color: #098021">xsi:type=</span>"SAML2ScopedString"<span style="color: #091480"> </span><span style="color: #4b5a7d">xmlns=</span>"urn:mace:shibboleth:2.0:attribute:encoder"</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(255, 147, 0); "><span style="color: #091480">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </span><span style="color: #098021">name=</span>"urn:oid:1.3.6.1.4.1.5923.1.1.1.6"<span style="color: #091480"> </span><span style="color: #098021">friendlyName=</span>"eduPersonPrincipalName"<span style="color: #091480"> /&gt;</span></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #091480">&lt;Script&gt;</span></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(75, 90, 125); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span>&lt;![CDATA[</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; importPackage(Packages.org.slf4j);</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); min-height: 16px; "><br></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; logger = LoggerFactory.getLogger("edu.internet2.middleware.shibboleth.resolver.Script.scriptTest");</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; logger.debug("Starting eduPersonPrincipalName Attribute Resolver Script:");</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); min-height: 16px; "><br></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; if (eduPersonPrincipalName == null) {</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eduPersonPrincipalName = new BasicAttribute("eduPersonPrincipalName");</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); min-height: 16px; "><br></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; if (typeof uasystemid != "undefined" &amp;&amp; uasystemid != null &amp;&amp; uasystemid.getValues().size() != 0){</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logger.debug("EDIR LDAP Values: " + uasystemid.getValues());</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ( i = 0; i &lt; uasystemid.getValues().size(); i++ ){</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value = uasystemid.getValues().get(i);</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eduPersonPrincipalName.getValues().add(new ScopedAttributeValue(value, "<a href="http://alaska.edu">alaska.edu</a>"));</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; else {</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (typeof uaadsystemid != "undefined" &amp;&amp; uaadsystemid != null &amp;&amp; uaadsystemid.getValues().size() != 0){</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logger.debug("AD LDAP Values: " + uaadsystemid.getValues());</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for ( i = 0; i &lt; uaadsystemid.getValues().size(); i++ ){</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; value = uaadsystemid.getValues().get(i);</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eduPersonPrincipalName.getValues().add(new ScopedAttributeValue(value, "<a href="http://alaska.edu">alaska.edu</a>"));</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; }</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; logger.debug("eduPersonPrincipalName values:" + eduPersonPrincipalName.getValues());</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; logger.debug("Completed eduPersonPrincipalName Attribute Resolver Script");</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(50, 51, 51); ">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #4b5a7d">]]&gt;</span></div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(9, 20, 128); "><span style="color: #323333">&nbsp; &nbsp; &nbsp; &nbsp; </span>&lt;/Script&gt;</div><div style="margin: 0px; font-size: 13px; font-family: 'Lucida Sans'; color: rgb(9, 20, 128); "><span style="color: #323333">&nbsp; &nbsp; </span>&lt;/resolver:AttributeDefinition&gt;</div></div><div><br></div><div><br></div><div><br></div></body></html>