Pages enfant
  • 05 - Migration de données uPortal 3.2 vers uPortal 4.0

Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

...

Bloc de code
languagehtml/xml
linenumberstrue
    <bean id="uPortalLdapAttributeSource" class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao">
        <property name="contextSource" ref="defaultLdapContext" />
        <property name="queryAttributeMapping">
            <map>
                <entry key="username" value="${ldap.uidAttr}"/>
            </map>
        </property>               

        <property name="resultAttributeMapping">
            <map>
                <entry key="eduPersonPrimaryAffiliation">   value>eduPersonPrimaryAffiliation<<value>eduPersonPrimaryAffiliation</value></entry>                
                <entry key="eduPersonAffiliation">          <value>eduPersonAffiliation</value></entry>                
                <entry key="cn">                            <value>cn</value></entry>
                <entry key="description">                   <value>description</value></entry>
                <entry key="displayName">                   <value>displayName</value></entry>
                <entry key="facsimileTelephoneNumber">      <value>facsimileTelephoneNumber</value></entry>
                <entry key="givenName">                     <value>givenName</value></entry>
                <entry key="mail">                          <value>mail</value></entry>
                <entry key="postalAddress">                 <value>postalAddress</value></entry>
                <entry key="sn">                            <value>sn</value></entry>
                <entry key="telephoneNumber">               <value>telephoneNumber</value></entry>
                <entry key="${ldap.uidAttr}">                              
                    <set>
                        <value>${ldap.uidAttr}</value>
                        <value>username</value>
                        <value>user.login.id</value>
                    </set>
                </entry>
                <entry key="supannCodeINE">                 <value>supannCodeINE</value></entry>
                <entry key="supannEtuId">                   <value>supannEtuId</value></entry>
                <entry key="supannEmpId">                   <value>supannEmpId</value></entry>
                <entry key="eduPersonAffiliation">          <value>eduPersonAffiliation</value></entry>
                <entry key="supannaffectation">             <value>supannaffectation</value></entry>
                <entry key="objectclass">                   <value>objectclass</value></entry>
                <entry key="supannorganisme">               <value>supannorganisme</value></entry>
            </map>
        </property>
    </bean>

...