<div dir="ltr"><div dir="ltr"><div>Hi All,</div><div><br></div><div>We run Shibboleth IdP 3.3.1 but I'm currently testing out the InCommon Shibboleth Docker image at <a href="https://github.internet2.edu/docker/shib-idp/archive/3.4.0_181002.zip">https://github.internet2.edu/docker/shib-idp/archive/3.4.0_181002.zip</a>. Looks like it's not the most recent version, but it's the version referenced at <a href="https://spaces.at.internet2.edu/display/ShibInstallFest/InCommon+Shibboleth+IdP+Training+-+Linux+Installation">https://spaces.at.internet2.edu/display/ShibInstallFest/InCommon+Shibboleth+IdP+Training+-+Linux+Installation</a>.</div><div><br></div><div>We have a few scripted attributes in our 3.3.1 instance but I'm unable to get a scripted attribute released in 3.4.0_181002. This is the attribute definition in my attribute-resolver.xml:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>    <AttributeDefinition xsi:type="ScriptedAttribute" id="eduPersonAffiliation"></div></div><div><div>        <AttributeEncoder xsi:type="SAML1String" name="urn:mace:dir:attribute-def:eduPersonAffiliation" /></div></div><div><div>        <AttributeEncoder xsi:type="SAML2String" name="urn:oid:1.3.6.1.4.1.5923.1.1.1.1" friendlyName="eduPersonAffiliation" /></div></div><div><div><br></div></div><div><div>        <Script><![CDATA[</div></div><div><div>            var BasicAttribute = Java.type("edu.internet2.middleware.shibboleth.common.attribute.provider.BasicAttribute");</div></div><div><div>            eduPersonAffiliation = new BasicAttribute("eduPersonAffiliation");</div></div><div><div>            eduPersonAffiliation.getValues().add("test");</div></div><div><div>        ]]></Script></div></div></blockquote><div dir="ltr"><div><br></div><div>    </AttributeDefinition></div><div><br></div><div>And this is what I have in attribute-filter.xml:</div><div><br></div></div><blockquote style="margin:0 0 0 40px;border:none;padding:0px"><div><div>    <AttributeFilterPolicy id="whatever"></div></div><div><div>        <PolicyRequirementRule xsi:type="ANY"/></div></div><div><div><br></div></div><div><div>       [ ...other attributes ommitted... ]</div></div><div><div><br></div></div><div><div>        <AttributeRule attributeID="eduPersonAffiliation"></div></div><div><div>            <PermitValueRule xsi:type="ANY"/></div></div><div><div>        </AttributeRule></div></div><div><div><br></div></div><div><div>    </AttributeFilterPolicy></div></div></blockquote><div dir="ltr"><div><br></div><div>When I browse to <a href="https://ourhost/idp/profile/admin/resolvertest?requester=anything&principal=myusername">https://ourhost/idp/profile/admin/resolvertest?requester=anything&principal=myusername</a> I get other attributes returned with correct values (commonName, email, etc) but no eduPersonAffiliation attribute is returned.</div><div><br></div><div>I imagine I'm missing something simple. Any suggestions?</div><div><br></div><div>Thanks,</div><div>Jason</div><div><br></div><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><pre cols="72">Jason Rotunno
System & Security Administrator
Swarthmore College
500 College Ave
Swarthmore, PA 19081
610.328.8505<br></pre><pre cols="72">Think BEFORE You Click!! Emails from Swarthmore College ITS won't be in your
Quarantine or Spam folder. We won't threaten you either! If you
receive any phishing emails, please forward them to <a href="mailto:phishing@swarthmore.edu" target="_blank">phishing@swarthmore.edu</a>.<br></pre></div></div></div></div></div></div></div>