Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-58751

User Loses all Local Group Memberships If LDAP Sync is Unable to find the User, but the User appears again in subsequent syncs

XMLWordPrintable

      Summary

      When users are filtered out/synchronized out from Confluence and re-synchronized back into Confluence, they will lose their Local Group Membership.
      This is a regression from CONFSERVER-28621

      Environment

      • Confluence 6.15x
      • Cannot replicate this issue on 6.14.0. Expired users are shown as "Disabled"
      • Unable to replicate on Confluence 7.0.1-beta1

      Steps to Reproduce

      1. Add a connection to LDAP in Confluence Admin >> User Directories with the Read Only, with Local Groups option
      2. Sync the directory and make sure that LDAP users are returned
      3. Add 1 LDAP user to a local group (membership)
      4. Change the User Object Filter in the directory's configuration in Confluence Admin >> User Directories to a dummy filter, such as the following:
        (&(objectclass=inetorgperson)(cn=dummynonexistentuser))
        
      1. Sync the directory again (Notice that the LDAP users are missing)
      2. Revert the User Object Filter to the previous working filter
      3. Sync the directory again (notice that the LDAP users are back, but their local group memberships are gone)

      Notes

      This issue could happen if expired users get filtered out from Confluence due to the "Filter out expired users" settings, and re-synchronized back into Confluence after their expiry has been refreshed

      Workaround

      1. Restore the instance's database backup to a new database (i.e. not production) prior to the point where memberships were lost.
      2. Follow the instructions in step 1 of Migrating Local Group Memberships Between Directories to generate a CSV file of users and their memberships.
      3. Run through the rest of the instructions in that KB article to populate the production instance's group memberships.

              Unassigned Unassigned
              mkhairuliana Monique Khairuliana (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: