-
Type:
Story
-
Status: Closed
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: 6.0.6 GA
-
Fix Version/s: 6.1.1 CE GA2, 6.1.20 EE GA2, 6.2.0 CE M2
-
Component/s: Application Security > LDAP, Portal Services
-
Labels:
-
Branch Version/s:6.1.x
-
Backported to Branch:Committed
-
Liferay Contributor's Agreement:Accept
-
Git Pull Request:
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.
- relates
-
LPE-7339 Make LDAP import copy all the values of the custom attributes
-
- Closed
-