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

Impossible to empty Additional User DN or Additional Group DN once filled in

    XMLWordPrintable

Details

    Description

      For some purposes (e.g. to only retrieve users entities from LDAP), one can leave the "Additional Group DN" field empty. However, accidental input is impossible to roll back.

      Steps to reproduce:

      1. Create an LDAP directory in Confluence User Directories
      2. Fill in all the required fields
      3. Input some values to "Additional User DN" or "Additional Group DN" field
      4. Save
      5. Edit the user directory
      6. Empty the field set in step 3
      7. Save

      Results:

      Values in the Additional User DN or Additional Group DN field still persists

      Workarounds:

      Update the value manually in the database:
      Please do backup your database beforehand:

      //Note the ID of the User Directory needs to be updated
      select * from cwd_directory;
      
      //This is to update 'Additional User DN'
      update cwd_directory_attribute set attribute_value='insert new value here' where attribute_name='ldap.user.dn' AND directory_id='ID_from_the_above';
      
      //This is to update 'Additional Group DN'
      update cwd_directory_attribute set attribute_value='insert new value here' where attribute_name='ldap.group.dn' AND directory_id='ID_from_the_above';
      

      Possible scenarios:

      Upgrade from pre-3.5 will auto-create and auto-fill an LDAP directory. This will also auto-fill the "Additional Group DN" field even though the intention is to retrieve user entities only (i.e. no group retrieval).

      Attachments

        Issue Links

          Activity

            People

              stardif Sam Tardif
              amohdaris Azwandi Mohd Aris (Inactive)
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: