Spring Attribute Resolver Issue
Charles Syperski
csyperski at dupage88.net
Tue Aug 30 14:58:46 EDT 2016
Hello,
I am attempting to load attributes via a sub-class of
AbstractDataConnector, but I am unable to load the attributes because my
dependency on the AttributeDefinition isn't loading. Here is what I get:
2016-08-30 13:42:19,574 - ERROR
[net.shibboleth.utilities.java.support.service.AbstractReloadableService:181]
- Service 'shibboleth.AttributeResolverService': Initial load failed
net.shibboleth.utilities.java.support.service.ServiceException: Failed
to load [file [/opt/shibboleth-idp/conf/attribute-resolver-ucm.xml]]
at
net.shibboleth.ext.spring.service.ReloadableSpringService.doReload(ReloadableSpringService.java:344)
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.impl.AttributeResolverServiceStrategy.apply(AttributeResolverServiceStrategy.java:74)
Caused by:
net.shibboleth.utilities.java.support.component.ComponentInitializationException:
Attribute Resolver 'ShibbolethAttributeResolver': Plugin 'uid' has a
dependency on plugin 'ucm' which doesn't exist
at
net.shibboleth.idp.attribute.resolver.impl.AttributeResolverImpl.checkPlugInDependencies(AttributeResolverImpl.java:501)
2016-08-30 13:42:21,334 - ERROR
[net.shibboleth.idp.saml.metadata.impl.AttributeMappingNodeProcessor:144]
- Requested Attributes Mapper: Invalid Attribute resolver configuration.
Here is my attribute-resolver-ucm.xml
<resolver:AttributeDefinition xsi:type="ad:Simple" id="uid"
sourceAttributeID="uid">
<resolver:Dependency ref="ucm" />
.....
</resolver:AttributeDefinition>
ucm is a spring bean that doesn't seem to be loading or not loading in
the correct order. I've tried adding the following to global and
services, but I still get the same error.
<bean id="ucmDataSource"
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<property name="driverClassName" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://host.dupage88.net:3306/usercentral?autoReconnect=true"
/>
<property name="username" value="username" />
<property name="password" value="password" />
</bean>
<bean id="userManager"
class="net.dupage88.usercentral.manager.DefaultUserManager">
<constructor-arg ref="ucmDataSource" />
</bean>
<bean id="ucm"
class="net.dupage88.usercentralsaml.resolver.UcmDataConnector">
<property name="userManager" ref="userManager" />
</bean>
My class UcmDataConnector extends AbstractDataConnector. What am I
missing to allow a spring bean to be used in the attribute resolver
config. I thought this was possible, am I wrong?
Ubuntu 16.04
Java 1.8.0-101
Shib IDP 3.2.1
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/dev/attachments/20160830/a6273481/attachment.html>
More information about the dev
mailing list