Hi all.
I try to configure CAS to take the user from ApacheDS Ldap.
I use cas-server-3.4.2-release and download this jar: spring-ldap-1.2.1.jar
and put it inside the lib directory in cas-web.
When I try to login a user that don´t exist I receive a message that the
credential don´t exist, and this is OK.
In cas.log:
2011-02-11 10:33:05,981 INFO
[org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler] - Search for
uid=dfdf returned 0 re$
2011-02-11 10:33:05,982 INFO
[org.jasig.cas.authentication.AuthenticationManagerImpl] -
AuthenticationHandler: org.jasig.cas$
But when I try to login a user that exist in LDAP in the web I see this
error:
CAS is Unavailable
There was an error trying to complete your request. Please notify your
support desk or try again.
And in the localhost.log I see this:
SEVERE: Servlet.service() for servlet cas threw exception
java.lang.NoSuchMethodError:
org.springframework.ldap.core.ContextSource.getContext(Ljava/lang/String;Lja
va/lang/String;)Lja$
at
org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler.authenticateUserna
mePasswordInternal(BindLdapAuthentica$
at
org.jasig.cas.authentication.handler.support.AbstractUsernamePasswordAuthent
icationHandler.doAuthentication(Abstr$
at
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAut
henticationHandler.authenticate_aroun$
at
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAut
henticationHandler.authenticate_aroun$
at
org.jasig.cas.authentication.handler.support.AbstractPreAndPostProcessingAut
henticationHandler.authenticate(Abstr$
at
org.jasig.cas.authentication.AuthenticationManagerImpl.authenticateAndObtain
Principal(AuthenticationManagerImpl.j$
at
org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate_arou
ndBody0(AbstractAuthenticationManager$
at
org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate_arou
ndBody1$advice(AbstractAuthentication$
at
org.jasig.cas.authentication.AbstractAuthenticationManager.authenticate(Abst
ractAuthenticationManager.java:1)
at
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_ar
oundBody10(CentralAuthenticationServi$
at
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket_ar
oundBody11$advice(CentralAuthenticati$
at
org.jasig.cas.CentralAuthenticationServiceImpl.createTicketGrantingTicket(Ce
ntralAuthenticationServiceImpl.java:1)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
What can I do to solve this??
Thanks,
Jorge.
--
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