Affects Version/s: 6.0.6 GA
Setting ldap.user.custom.mappings in portal-ext.properties allows additional LDAP attributes to be copied into Custom Attributes of the User (thanks, this is wonderful). However, if one of the attributes has multiple values, only one of the values will be copied. It would be better if all the values were copied over as a comma delimited list.
In LDAPUtil,java line 64:
Object obj = attribute.get();
From the Javadoc for Attribute.java:
- Retrieves one of this attribute's values.
- If the attribute has more than one value and is unordered, any one of
- the values is returned.
- If the attribute has more than one value and is ordered, the
- first value is returned.
Rather, LDAPUtil could check the size() and if it is over 1, return all the values as a comma delimited list.