Ciao Michael,

this is exactly what I did in the configuration, I use the 
org.springframework.ldap.core.support.LdapContextSource. Or there is something 
that I don't see. 

I don't have any call at this 
(org.jasig.cas.adpators.ldap.util.AuthenticatedLdapContextSource) in the actual 
servelet.

let me know.

thank you.

bye simone

the config:

 <bean id="contextSource"  
class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="pooled" value="true"/>
        <property name="urls">
        <list>
        <value>ldap://serverad.domain.com/</value>
        </list>
        </property>
        <property name="userDn" value="CN=Ldapuser,OU=users,DC=domain,DC=com"/>
        <property name="password" value="password"/>
        <property name="baseEnvironmentProperties">
         <map>
          <entry>
            <key>
              <value>java.naming.security.authentication</value>
            </key>
              <value>simple</value>
          </entry>
         </map>
        </property>
 </bean>

<bean
                        
class="org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler">
                        <property name="filter" value="sAMAccountName=%u" />
                        <property name="searchBase" 
value="ou=users,dc=domain,dc=com" />
                        <property
                                        name="contextSource"
                                        ref="contextSource" />
                        </bean>

----- Original Message -----
From: "Michael Ströder" <[email protected]>
To: [email protected]
Sent: Monday, May 25, 2009 1:37:05 PM GMT +01:00 Amsterdam / Berlin / Bern / 
Rome / Stockholm / Vienna
Subject: Re: [cas-user] Update 3.1 to 3.3.2 and ldap support

Enrico Bianchi wrote:
> 
> "Michael Ströder" wrote:
>> Enrico Bianchi wrote:
>>> on the catalina.out Caused by:
>>> org.springframework.beans.factory.BeanCreationException: Error
>>> creating bean with name
>>> 'org.jasig.cas.adaptors.ldap.BindLdapAuthenticationHandler#3c37f4'
>>> defined in ServletContext resource
>>> [/WEB-INF/deployerConfigContext.xml]: Cannot resolve reference to
>>> bean 'contextSource' while setting bean property 'contextSource';
>>> nested exception is
>>> org.springframework.beans.factory.CannotLoadBeanClassException:
>>> Cannot find class
>>> [org.jasig.cas.adpators.ldap.util.AuthenticatedLdapContextSource] for
>>> bean with name 'contextSource' defined in ServletContext resource
>>> [/WEB-INF/deployerConfigContext.xml]; nested exception is
>>> java.lang.ClassNotFoundException:
>>> org.jasig.cas.adpators.ldap.util.AuthenticatedLdapContextSource
>> 
>> Did you read
>> 
>> http://www.ja-sig.org/wiki/display/CASUM/Upgrading
>> 
>> and the red boxes on
>> 
>> http://www.ja-sig.org/wiki/display/CASUM/LDAP
>> 
>> "As of CAS 3.3.2 this class has been removed because Spring LDAP 1.3's
>> LdapContextSource now supports the required methods"
>
> I rewrited the configuration from scratch.

Did you actually read my e-mail? Did you read exactly what's written on
http://www.ja-sig.org/wiki/display/CASUM/LDAP in section
"AuthenticatedLdapContextSource"? There it says that
AuthenticatedLdapContextSource was removed from CAS server 3.3.2.

If I write an answer with links to help others I usually spend some of
my rare spare time to look up the information before sending my answer
to avoid faults and misunderstandings. So I expect you to really read
it! If you don't I won't waste my spare time in case of your next question.

Ciao, Michael.

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