Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-17231

On LDAP import, a custom attribute with multiple values only sets one value

    Details

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              m0smith Matthew O. Smith (Inactive)
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  6.1.1 CE GA2
                  6.1.20 EE GA2
                  6.2.0 CE M2