Hello.

From my understanding of documentation ("PrincipalResolver Versus AuthenticationHandler" in [1]), you only need to use a full-blown principal resolver if the builtin facilities from your authentication handler isn't enough. As I'm using LDAP as single authentication handler, and all my required attributes are stored there, it should be enough.

However, any attempt to define an authentication handler without such resolver mapping fails...

The following construct fails with "Could not instantiate bean class [org.jasig.cas.authentication.PolicyBasedAuthenticationManager]: No default constructor found" error message:

<bean id="authenticationManager"
 class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
 <property name="authenticationPolicy">
   <bean class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
 </property>
</bean>

The following (also used in [1] example about multi-factor configuration) also fails with "entry should contains a value" error message:

<bean id="authenticationManager"
 class="org.jasig.cas.authentication.PolicyBasedAuthenticationManager">
 <constructor-arg>
  <map>
   <entry key-ref="passwordHandler" />
  </map>
 </constructor-arg>
 <property name="authenticationPolicy">
   <bean class="org.jasig.cas.authentication.AnyAuthenticationPolicy" />
 </property>
</bean>

So, what's the expected syntax to use here ?

[1] http://jasig.github.io/cas/4.0.0/installation/Configuring-Authentication-Components.html
--
Guillaume Rousse
INRIA, Direction des systèmes d'information
Domaine de Voluceau
Rocquencourt - BP 105
78153 Le Chesnay
Tel: 01 39 63 58 31

Attachment: smime.p7s
Description: Signature cryptographique S/MIME

Reply via email to