Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-38638

LDAP connector credentials not stored properly when editing user directory

    XMLWordPrintable

Details

    Description

      LDAP Connector:

      1. Create new LDAP directory.
      2. Click 'Save and Test'
      3. On the next screen, click 'Edit Settings'
      4. Change the username and password
      5. Click 'Quick Test'
      6. Click 'Save and Test'
      7. click 'Edit Settings' again
      8. 'Quick Test' fails

      Looking at the 'ldap.password' value in cwd_directory_attribute table, the password from the initial account used to create the directory is intact.

      From my testing, step 5, ie.'Quick Test' after changing credentials, is where we forget to store the new password in the database, since if you jump that step the password gets properly saved.

      Workaround for LDAP Connector

      • Skip step 5.

      Delegated LDAP Connector

      1. Create new delegated LDAP directory and save it
      2. Edit the directory and update username and password
      3. Click 'Test Settings' and then 'Save and Test'
      4. 'Edit' the same connector and click 'Test Settings'. The test fails, as the new user and password was never saved to the database.

      Workaround for Delegated LDAP Connector

      Do not click the 'Test Settings' button

      • Open console in the browsers developer tools and run the following commands
        AJS.$('#configure-delegating-ldap-form-submit').removeAttr("aria-disabled");
        AJS.$('#configure-delegating-ldap-form-submit').removeAttr("disabled");
        
      • That will allow you to click the 'Save and Test' button, with first clicking 'Test Settings'

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              pkirkeby Pelle Kirkeby (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: