<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Thanks Rod. I can’t change the name in attributeEncoder because that is the name Vendor required. Instead I changed the sourceAttributeID that resolved the error. Now I got this &nbsp;error when ran&nbsp;<span style="font-family: Menlo; font-size: 11px;">aacli.sh</span>
<div><font face="Menlo"><span style="font-size: 11px;"><br>
</span></font></div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<div style="margin: 0px;"><br>
</div>
<div style="margin: 0px;">2015-01-14 13:45:21,678 - ERROR [net.shibboleth.idp.profile.impl.ResolveAttributes:233] - Profile Action ResolveAttributes: Error resolving attributes</div>
<div style="margin: 0px;">net.shibboleth.idp.attribute.resolver.ResolutionException: Attribute Definition 'skillsoftdeptNumber': unable to execute script</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; at net.shibboleth.idp.attribute.resolver.ad.impl.ScriptedAttributeDefinition.doAttributeDefinitionResolve(ScriptedAttributeDefinition.java:152)</div>
<div style="margin: 0px;">Caused by: javax.script.ScriptException: ReferenceError: &quot;importPackage&quot; is not defined in &lt;eval&gt; at line number 1</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; at jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:586)</div>
<div style="margin: 0px;">Caused by: jdk.nashorn.internal.runtime.ECMAException: ReferenceError: &quot;importPackage&quot; is not defined</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; at jdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:58)</div>
</div>
<div><br>
</div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">I also see this warning in the log. The warning was generated when I restarted Tomcat. I don’t understand what it mean.</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">2015-01-14 13:43:43,920 - WARN [net.shibboleth.idp.saml.attribute.mapping.AbstractSAMLAttributeMapper:223] - Scoped Attribute Mapper 'MapperForeduPersonScopedAffiliation': Attribute 'urn:oid:1.3.6.1.4.1.5923.1.1.1.9'
 value conversion yielded no suitable values</div>
<div><br>
</div>
<div>From attribute-resolver.xml</div>
<div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&lt;resolver:AttributeDefinition id=&quot;skillsoftdeptNumber&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:ad&quot;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; xsi:type=&quot;Script&quot;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sourceAttributeID=&quot;uid&quot;&gt;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;myLDAP&quot; /&gt;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;SAML2String&quot; xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;skillsoftdept&quot;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; friendlyName=&quot;dept name for skillsoft&quot;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nameFormat=&quot;urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified&quot; /&gt;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &lt;Script&gt;&lt;![CDATA[</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;&nbsp; &nbsp; &nbsp; importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; // Create attribute to be returned from definition</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; skillsoftdept = new BasicAttribute(&quot;skillsoftdept”);</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; &nbsp; &nbsp; ...</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp; &nbsp; ]]&gt;&lt;/Script&gt;</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;">
<br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">&lt;/resolver:AttributeDefinition&gt;</div>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br>
</div>
<div style="margin: 0px; font-size: 11px; font-family: Menlo;">
<div style="margin: 0px;">
<div style="margin: 0px;">&lt;resolver:AttributeDefinition id=&quot;eduPersonScopedAffiliation&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; xsi:type=&quot;Scoped&quot; xmlns=&quot;urn:mace:shibboleth:2.0:resolver:ad&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; scope=&quot;%{idp.scope}&quot; sourceAttributeID=&quot;eduPersonAffiliation&quot;&gt;</div>
<div style="margin: 0px; min-height: 13px;"><br>
</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:Dependency ref=&quot;myLDAP&quot; /&gt;</div>
<div style="margin: 0px; min-height: 13px;"><br>
</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML1ScopedString&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;urn:mace:dir:attribute-def:eduPersonScopedAffiliation&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; encodeType=&quot;false&quot; /&gt;</div>
<div style="margin: 0px; min-height: 13px;"><br>
</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;resolver:AttributeEncoder xsi:type=&quot;enc:SAML2ScopedString&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; name=&quot;urn:oid:1.3.6.1.4.1.5923.1.1.1.9&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; friendlyName=&quot;eduPersonScopedAffiliation&quot;</div>
<div style="margin: 0px;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; encodeType=&quot;false&quot; /&gt;</div>
<div style="margin: 0px;">&lt;/resolver:AttributeDefinition&gt;</div>
<div style="margin: 0px;"><br>
</div>
<div style="margin: 0px;"><br>
</div>
</div>
</div>
<div>
<div>
<div>On Jan 14, 2015, at 1:21 PM, Rod Widdowson &lt;<a href="mailto:rdw@steadingsoftware.com">rdw@steadingsoftware.com</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Well that was exciting. &nbsp;The trouble comes with the name for this encoder:<br>
<br>
&lt;resolver:AttributeEncoder xsi:type=&quot;SAML2String&quot;<br>
xmlns=&quot;urn:mace:shibboleth:2.0:attribute:encoder&quot;<br>
&nbsp;&nbsp;name=&quot;skillsoftdept&quot;<br>
&nbsp;&nbsp;friendlyName=&quot;dept name for skillsoft&quot;<br>
&nbsp;&nbsp;nameFormat=&quot;urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified&quot; /&gt;<br>
<br>
By giving it the name &quot;skillsoftdept&quot;, you override the name of the<br>
attribute &quot;skillsoftdept&quot;. &nbsp;So when the attribute resolver goes to resolve<br>
the dependencies it say: &quot;I don't see an attribute called skillsoftdept,<br>
just this encoder&quot;. &nbsp;Bang<br>
<br>
Actually, I'm surprised that this worked in V2, but for now change that name<br>
to something else and you should be all set. &nbsp;&nbsp;&nbsp;I'll do a fuller analysis as<br>
it why it worked in V2 and report back. &nbsp;&nbsp;If I can find a way of removing<br>
the regression we'll fix it.<br>
<br>
Rod<br>
<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>
</div>
</div>
</div>
</body>
</html>