Dear all,
I've just started setting up CAS for our Moodle installation and can't get it to work properly with ldap. I was wondering if anyone had any similar experiences and could give me a hand.

I can connect easily from moodle to ldap without CAS, so what I did is the following: 1. I replicated the native moodle LDAP onfiguration into the CAS section of the Authentication settings page and made the same data mapping.
2. I changed priority to have CAS to be above LDAP and moodle net auth.
3. I set up the deployerConfigContext.xml as explained on http://www.ja-sig.org/wiki/display/CASUM/LDAP: - inserted a <bean> for the LdapContextSource using a valid LDAP user with admin capabilities - added a bean for the BindLdapAuthenticationHandler in the authentication manager section, with <property name="searchBase" value="{same ou=... that I use for my native ldap auth into moodle}" /> 4. Start tomcat, the deployment goes smoothly (I have DEBUG level for log4j and can see there's absolutely no problem in this phase).

When I try to authenticate, I cannot get in, and the error seems connected to the ldap user I specified: Error in object 'credentials': codes [error.authentication.credentials.bad.credentials,error.authentication.credentials.bad]; arguments []; default message [error.authentication.credentials.bad], 'org.springframework.validation.BindException.credentials' -> org.springframework.validation.BindException: org.springframework.validation.BeanPropertyBindingResult: 1 errors Error in object 'credentials': codes [error.authentication.credentials.bad.credentials,error.authentication.credentials.bad]; arguments []; default message [error.authentication.credentials.bad]], status = Paused]]]]>

I tried different users, and no user at all, and I always get the same error.

Does anyone have any idea or experience on this? I know it's possibly something very simple and I do apologize for increasing the number of messages in the mailing list :)


Of course, if anyone could show me a working deployerConfigContext.xml that would also be helpful.

Thanks,
G


--
Giuseppe Sollazzo
Systems Developer / Administrator

Computing Services
St. George's, University of London


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