...
Bloc de code | ||
---|---|---|
| ||
<bean id="uPortalLdapAttributeSource" class="org.jasig.services.persondir.support.ldap.LdapPersonAttributeDao">
<property name="contextSource" ref="defaultLdapContext" />
<property name="baseDN" value="${ldap.baseDn}" />
<property name="baseDN" value="" />
<property name="queryAttributeMapping">
<map>
<entry key="username" value="${ldap.uidAttr}"/>
</map>
</property>
<property name="resultAttributeMapping">
<map>
<entry key="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>
<!-- Add attribute to determine if user belongs to a group. -->
<entry key="isMemberOf"> <value>isMemberOf</value></entry>
</map>
</property>
</bean> |
...