OK. So note that you're actually reviewing the "development" version of 
documentation, as the snippet at the top of the page says. For future 
reference, you want to review this instead:
http://jasig.github.io/cas/4.0.x/installation/Configuring-Authentication-Components.html

Nonetheless, that is a documentation error and should be corrected for all.

That said, I don't think you need a separate resolver. With the ldap AuthN 
handler, simply set the principal attribute to the new attribute you have, 
and resolve attributes directly in the handler. The in the AuthN manager, 
null out the matching resolver.

> -----Original Message-----
> From: Jerome Nenert [mailto:[email protected]]
> Sent: Thursday, September 10, 2015 6:25 AM
> To: [email protected]
> Subject: Re: [cas-user] CredentialsToLdapAttributePrincipalResolver
> replacement in V4
>
>
> Misagh Moayyed <[email protected]> a écrit :
>
> > Where do you see that reference in the documentation? I can't find it
> > :(
> >
>
> http://jasig.github.io/cas/development/installation/Configuring-
> Authentication-Components.html
>
> In the "Show Code" box under "The following configuration snippet
> demonstrates how to configure PolicyBasedAuthenticationManager for a
> straightforward multi-factor authentication case where username/password
> authentication is required and an additional OTP credential is optional;
> in both cases principals are resolved from LDAP."
>
>
> > Also, does 4.x mean 4.0.x, or 4.1.x?
> >
>
> 4.0.x
>
> > Are you authenticating against LDAP?
>
> Yes. We're using an ldapAuthenticationHandler (
> http://jasig.github.io/cas/development/installation/LDAP-
> Authentication.html#ldap-requiring-authenticated-search
> )
>
> >
> >> -----Original Message-----
> >> From: Jerome Nenert [mailto:[email protected]]
> >> Sent: Thursday, September 10, 2015 5:12 AM
> >> To: [email protected]
> >> Subject: [cas-user] CredentialsToLdapAttributePrincipalResolver
> >> replacement in V4
> >>
> >>
> >> Hi,
> >>
> >> In CAS 3.x, we used
> >> org.jasig.cas.authentication.principal.CredentialsToLdapAttributePrin
> >> cipal
> >> Resolver and
> >> org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToP
> >> rinci palResolver to transform the user id ( eduPersonPrincipalName )
> >> typed into the login form into Principal Name ( uid ).
> >>
> >> These classes don't exist anymore in CAS 4.x :
> >>
> >> Caused by:
> >> org.springframework.beans.factory.CannotLoadBeanClassException:
> >> Cannot find class
> >> [org.jasig.cas.authentication.principal.CredentialsToLdapAttributePri
> >> ncipa lResolver] for bean with name 'ldapPrincipalResolver' defined
> >> in ServletContext resource [/WEB-INF/deployerConfigContext.xml];
> >> nested exception is java.lang.ClassNotFoundException:
> >> org.jasig.cas.authentication.principal.CredentialsToLdapAttributePrin
> >> cipal
> >> Resolver
> >>
> >> Caused by:
> >> org.springframework.beans.factory.CannotLoadBeanClassException:
> >> Cannot find class
> >> [org.jasig.cas.authentication.principal.UsernamePasswordCredentialsTo
> >> Princ ipalResolver] for bean with name 'ldapPrincipalResolver'
> >> defined in ServletContext resource
> >> [/WEB-INF/deployerConfigContext.xml]; nested exception is
> >> java.lang.ClassNotFoundException:
> >> org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToP
> >> rinci
> >> palResolver
> >>
> >> Meanwhile,
> >> org.jasig.cas.authentication.principal.CredentialsToLdapAttributePrin
> >> cipal Resolver is still referenced in the documentation :
> >> http://jasig.github.io/cas/development/installation/Configuring-
> >> Authentication-Components.html
> >>
> >> How do you perform this transformation in CAS 4.x ?
> >>
> >> We've tried
> >> org.jasig.cas.authentication.principal.PersonDirectoryPrincipalResolv
> >> er with ldapPersonAttributeDao but it doesn't work. The Principal
> >> Name remains eduPersonPrincipalName
> >>
> >> Regards.
> >>
> >> Jerome NENERT.
> >> IT Services.
> >> Université Panthéon-Assas ( Paris 2 )
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> --
> >> 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
> >
> >
> > --
> > 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
>
>
>
> --
> 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


-- 
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

Reply via email to