Retrieving User Properties from the Directory Service

With CMS Fiona from version 6.5.0, further user properties maintained in an LDAP or ADS directory service can be retrieved and used in the Portal Manager. For this, the attributes to be retrieved need to be added to the attributes property of the bean configuration of the directory service. Example:

    ...
    <bean class="com.infopark.pm.user.AdsUserDirectory">
        ...
        <property name="attributes">
         <map>
          <entry key="mail">
           <map>
            <entry key="type"><value>single</value></entry>
           </map>
          </entry>
          <entry key="name">
           <map>
            <entry key="type"><value>single</value></entry>
           </map>
          </entry>
         </map>
        </property> 
        ...
    </bean>
    ...

The value of key in an attributes entry is interpreted as the corresponding name of the attribute in which the user property is stored.

As the type of an attribute either single (a return value) or list (a list of return values) can be specified.