I'm working on my first deployment of the CAS server. By following the
CASUM wiki pages (Best Practices - WAR Overlay Method, LDAP, Attributes)
I've got an instance that successfully authenticates against LDAP. I
ran into a speedbump for attributes though that I think can be improved
in the documentation at <https://wiki.jasig.org/display/CASUM/Attributes>
The first "Example CAS 3.3.3 deployerConfigContext.xml for LDAP" defines
<property name="attributeRepository">
<ref bean="attribRepository" />
</property>
then subsequently
<bean id="attribRepository"
...
</bean>
However, in the "CAS 3.3.4 LdapPersonAttributeDao Example" the
LdapPersonAttributeDao is given the bean id="attributeRepository".
This yields errors in the log:
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'authenticationManager' defined in ServletContext
resource [/WEB-INF/deployerConfigContext.xml]: Cannot create inner bean
'org.jasig.cas.authentication.principal.CredentialsToLDAPAttributePrincipalResolver#1d6b6c55'
of type
[org.jasig.cas.authentication.principal.CredentialsToLDAPAttributePrincipalResolver]
while setting bean property 'credentialsToPrincipalResolvers' with key [0];
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.jasig.cas.authentication.principal.CredentialsToLDAPAttributePrincipalResolver#1d6b6c55'
defined in ServletContext resource [/WEB-INF/deployerConfigContext.xml]:
Cannot resolve reference to bean 'attribRepository' while setting bean property
'attributeRepository'; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named
'attribRepository' is defined
In retrospect, I guess "No bean named 'attribRepository' is defined"
actually identified the problem, but it took me quite a while (longer
than it should have -- but that's probably my inexperience) to figure
it out.
I don't see the the attribute details in the default logging configuration,
so now to see if I can figure out how to tease out that info.
-baron
--
Baron Fujimoto <[email protected]> :: UH Information Technology Services
minutas cantorum, minutas balorum, minutas carboratum desendus pantorum
--
You are currently subscribed to [email protected] as:
[email protected]
To unsubscribe, change settings or access archives, see
http://www.ja-sig.org/wiki/display/JSG/cas-user