Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19528

Allow LDAP/Active Directory users without first or last name to be synced into APS

    Details

    • Type: Service Pack Request
    • Status: Need Info (View Workflow)
    • Resolution: Unresolved
    • Affects Version/s: Alfresco Process Services 1.8.1, Alfresco Process Services 1.9.0.5
    • Fix Version/s: None
    • Component/s: APS Identify Manager
    • Labels:
      None
    • Bug Priority:
      Category 2
    • ACT Numbers:

      00962478

    • Premier Customer:
      Yes

      Description

      Summary

      Customer was trying to sync a new Active Directory user to be used as an Administrator. Because of internal customer policies, service accounts cannot have a first or last name. When trying to sync in this user, the customer received the following error:

      ERROR com.activiti.service.idm.UserServiceImpl - Could not create user! 
      java.lang.IllegalArgumentException: First name or last name is required 
      

      Looking at the source code, it is hardcoded in UserServiceImpl.java to throw an error if an LDAP user does not have a first or last name:

      try {
      if(lastName == null && firstName == null) {
      throw new IllegalArgumentException("First name or last name is required");
      }
      

      Expected Behavior
      There should be an option to allow users without a first and/or last name to be synced into APS.

      Actual Behavior
      LDAP/AD users without a first or last name are not synced and an error is thrown in the logs.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mteodori Marcello Teodori
                Reporter:
                ccollins Cody Collins
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: