error in attribute resolver after upgraded to IDP 3.0
Hong Ye
hy93 at cornell.edu
Wed Jan 14 11:33:43 EST 2015
Hi,
When loading attribute-resolve.xml in IDP 3.0, it gave error in the log. The same file works fine in IDP 2.x
2015-01-14 11:17:38,369 - ERROR [net.shibboleth.utilities.java.support.service.AbstractReloadableService:178] - Service 'shibboleth.AttributeResolverService': Initial load failed
net.shibboleth.utilities.java.support.service.ServiceException: Failed to load [file [/app/shibboleth/shibboleth-idp/conf/attribute-resolver.xml]]
at net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:342)
Caused by: net.shibboleth.utilities.java.support.service.ServiceException: Unable to initialize attribute resolver for ApplicationContext:shibboleth.AttributeResolverService
at net.shibboleth.idp.attribute.resolver.spring.AttributeResolverServiceStrategy.apply(AttributeResolverServiceStrategy.java:73)
Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException: Attribute Resolver 'ShibbolethAttributeResolver': Plugin 'departmentNumber' has a dependency on plugin 'skillsoftdept' which doesn't exist
at net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl.checkPlugInDependencies(AttributeResolverImpl.java:481)
from attribute-resolver.xml
<resolver:AttributeDefinition id="skillsoftdept" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
xsi:type="Script"
sourceAttributeID="uid">
<resolver:Dependency ref="myLDAP" />
<resolver:AttributeEncoder xsi:type="SAML2String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
name="skillsoftdept"
friendlyName="dept name for skillsoft"
nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified" />
<Script><![CDATA[
importPackage(Packages.edu.internet2.middleware.shibboleth.common.attribute.provider);
// Create attribute to be returned from definition
skillsoftdept = new BasicAttribute("skillsoftdept");
…..
]]></Script>
</resolver:AttributeDefinition>
<resolver:AttributeDefinition id="departmentNumber" xmlns="urn:mace:shibboleth:2.0:resolver:ad"
xsi:type="Simple"
sourceAttributeID="skillsoftdept">
<resolver:Dependency ref="skillsoftdept" />
<resolver:AttributeEncoder xsi:type="SAML2String" xmlns="urn:mace:shibboleth:2.0:attribute:encoder"
name="urn:oid:2.16.840.1.113730.3.1.2"
friendlyName="departmentNumber"
nameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" />
</resolver:AttributeDefinition>
Thanks,
Hong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://shibboleth.net/pipermail/users/attachments/20150114/acf6df0a/attachment-0001.html
More information about the users
mailing list