01 Example LDAP Configuration Conversion

uPortal 2.6 ldap.xml

<?xml version="1.0"?>
<ldapConnections>
    <connection default="true">
        <name>esco</name>
        <host>domain.name.fr</host>
        <port>389</port>
        <baseDN>ou=people,dc=esco-centre,dc=fr</baseDN>
        <managerDN>cn=XXXXXXXX,dc=esco-centre,dc=fr</managerDN>
        <managerPW>********</managerPW>
        <uidAttribute>uid</uidAttribute>
    </connection>
</ldapConnections>

uPortal 3.0 ldapContext.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"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
     
    <!-- Delcare the legacy support beans to make LdapServices still work -->
     
    <bean id="defaultLdapServer" class="org.jasig.portal.ldap.ContextSourceLdapServerImpl">
        <property name="ldapContextSource" ref="defaultLdapContext"/>
        <property name="uidAttribute" value="uid"/>
    </bean>
    
   <!-- Declare the standard spring-ldap ContextSource objects to define LDAP server connections -->
     
    <bean id="defaultLdapContext" class="org.springframework.ldap.core.support.LdapContextSource">
        <property name="url" value="ldap://domain.name.fr:389"/>
        <property name="base" value="ou=people,dc=esco-centre,dc=fr"/>
        <property name="userName" value="cn=XXXXXXXX,dc=esco-centre,dc=fr"/>
        <property name="password" value="*********"/>
        <property name="pooled" value="false"/>
    </bean>
</beans>