Hi All,

I'm currently trying to setup a *CAS* 3.1.1 server using *LDAP* authentication


here is the relevant portion of the deployerConfigContext.xml :
*****************************************************************
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:p="http://www.springframework.org/schema/p";
       xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd";>

    <bean id="authenticationManager"
        class="org.jasig.cas.authentication.AuthenticationManagerImpl">

        <property name="credentialsToPrincipalResolvers">
            <list>

                <bean
                    class="
org.jasig.cas.authentication.principal.UsernamePasswordCredentialsToPrincipalResolver"
/>

                <bean
                    class="
org.jasig.cas.authentication.principal.HttpBasedServiceCredentialsToPrincipalResolver"
/>
            </list>
        </property>

       <property name="authenticationHandlers">
            <list>

                <bean class="
org.jasig.cas.authentication.handler.support.HttpBasedServiceCredentialsAuthenticationHandler
"
                    p:httpClient-ref="httpClient" />

<!-- add for configure CAS -->
                <bean class="
org.jasig.cas.adaptors.ldap.FastBindLdapAuthenticationHandler" >
                                      <property name="filter"
value="uid=%u,ou=people,dc=teggodev,dc=net" />
                                      <property name="contextSource"
ref="contextSource" />
                                </bean>
            </list>
        </property>
    </bean>

        <bean id="contextSource" class="
org.jasig.cas.adaptors.ldap.util.AuthenticatedLdapContextSource">
                             <property name="urls">
                                           <list>
                                                  <value>ldap://@IP/</value>

                                                  <value>ldap://@IP
:389/</value>
                                           </list>
                                 </property>
                                 <property name="userName"
value="uid=%u,ou=people,dc=xxxxxx,dc=net" />
                                 <property name="password" value=" " />
        </bean>

    <bean id="userDetailsService" class="
org.acegisecurity.userdetails.memory.InMemoryDaoImpl">
        <property name="userMap">
            <value>khalid
                </value>
            </property>
    </bean>

    <bean id="attributeRepository"
        class="org.jasig.services.persondir.support.StubPersonAttributeDao">
        <property name="backingMap">
            <map>
                <entry key="uid" value="uid" />
                <entry key="eduPersonAffiliation"
value="eduPersonAffiliation" />
                <entry key="groupMembership" value="groupMembership" />
            </map>
        </property>
    </bean>

     <bean
        id="serviceRegistryDao"
        class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl"
/>
</beans>

****************************************************
This is what I get in the logs:

2007-12-24 16:36:34,116 WARN [
org.springframework.ldap.support.LdapContextSource] - <Property 'password'
not set - blank password will be used>

And further down :

2007-12-24 16:36:35,770 INFO [
org.jasig.cas.web.flow.AuthenticationViaFormAction] - <FormObjectClass not
set.  Using default class of
org.jasig.cas.authentication.principal.UsernamePasswordCredentials with
formObjectName credentials and validator
org.jasig.cas.validation.UsernamePasswordCredentialsValidator.>

The authentication dose note work !!!!!!!!!!!!!!!!

Having you any idea ???!!!!!!!!!!!

thanks for help
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas

Reply via email to