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

Confluence 2.5.6 ldap configuration failing on osuser2atluser.jsp migration

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • 2.5.8, 2.6.0, 2.7
    • 2.5.6
    • None

      When doing step 5 from http://confluence.atlassian.com/display/CONF256/Add+LDAP+Integration, the attached error is displayed.

      This will migrate your existing users.
      
      Begin migration.
      Migrating users ... ERROR
      
          User [jla] already exists in OSUser Repository
          If you are upgrading from Confluence 2.1.x and have already performed this migration previously - you do not need to perform this again. You only need to move your settings over as outlined in this document.
          Otherwise, please ensure that in your:
      
          confluence/WEB-INF/classes/atlassian-user.xml
      
          file, that the hibernateRepository is first and the osuserRepository is second.
      

      The problem is that when you try step 6, you can't log in with your hibernate user, so even if the ldap integration works, you can't assign global permissions to groups.

        1. atlassian-confluence.log
          59 kB
        2. atlassian-user-confluence-2.5.x-1.9.jar
          271 kB
        3. Picture 1.png
          Picture 1.png
          144 kB

            [CONFSERVER-9195] Confluence 2.5.6 ldap configuration failing on osuser2atluser.jsp migration

            Fixed in all versions of atlassian-user now so that means all confluence versions as well (2.5.x, 2.6.x and 2.7.x development branches).

            m@ (Inactive) added a comment - Fixed in all versions of atlassian-user now so that means all confluence versions as well (2.5.x, 2.6.x and 2.7.x development branches).

            The attached atlassian-user JAR includes a fix for this issue in Confluence 2.5.6 and 2.5.7. To install it, please do the following:

            • shut down Confluence
            • put the attached JAR, 'atlassian-user-confluence-2.5.x-1.9.jar', into confluence/WEB-INF/lib/
            • remove the old atlassian-user JAR from confluence/WEB-INF/lib/ (it should be called 'atlassian-user-1.5-stable-compatible-1.jar')
            • start up Confluence again.

            If you still experience the problem after restarting Confluence with this new JAR, please attach a copy of the complete stack trace to this issue.

            m@ (Inactive) added a comment - The attached atlassian-user JAR includes a fix for this issue in Confluence 2.5.6 and 2.5.7. To install it, please do the following: shut down Confluence put the attached JAR, 'atlassian-user-confluence-2.5.x-1.9.jar', into confluence/WEB-INF/lib/ remove the old atlassian-user JAR from confluence/WEB-INF/lib/ (it should be called 'atlassian-user-1.5-stable-compatible-1.jar') start up Confluence again. If you still experience the problem after restarting Confluence with this new JAR, please attach a copy of the complete stack trace to this issue.

            Patched atlassian-user.

            m@ (Inactive) added a comment - Patched atlassian-user.

            Dont fancy downgrading applying migration then upgrading again, sounds like a sure fire way to break your install !!

            Will wait for a bug fix.

            Aaron Hossain added a comment - Dont fancy downgrading applying migration then upgrading again, sounds like a sure fire way to break your install !! Will wait for a bug fix.

            One more workaround, submitted by a user:

            Actually I worked around the issue in a different way....

            With only hibernate repository installed there are no existing users or
            groups but you can still log in using the 'sign up' feature. This
            creates a normal user account and also creates the confluence-users
            group in the hibernate repository.

            Next add the osuser repository back in the atlassian-user.xml, keeping
            the hibernate repository active. Now you can log in with the (osuser)
            admin account. Elevate the hibernate account you created in the first
            step to a confluence administrator by adding 'administer confluence'
            rights to the individual account, then log out.

            Now remove the osuser repository again, leaving only the hibernate
            repository. Log in with the new administrator account. Create a new
            confluence-administrators group and make the new account a member.

            Now you can add the ldap repository. Everything seems to work from
            here. Newly authenticated ldap users can be added to the
            confluence-users group and everything seems to work (so far...)

            Jeremy Largman added a comment - One more workaround, submitted by a user: Actually I worked around the issue in a different way.... With only hibernate repository installed there are no existing users or groups but you can still log in using the 'sign up' feature. This creates a normal user account and also creates the confluence-users group in the hibernate repository. Next add the osuser repository back in the atlassian-user.xml, keeping the hibernate repository active. Now you can log in with the (osuser) admin account. Elevate the hibernate account you created in the first step to a confluence administrator by adding 'administer confluence' rights to the individual account, then log out. Now remove the osuser repository again, leaving only the hibernate repository. Log in with the new administrator account. Create a new confluence-administrators group and make the new account a member. Now you can add the ldap repository. Everything seems to work from here. Newly authenticated ldap users can be added to the confluence-users group and everything seems to work (so far...)

            We need the patch too...

            Aleksandar Cvetkovic added a comment - We need the patch too...

            Matt Ryall added a comment -

            Hi Ben,

            Our bug-fixing team is working on this issue at the moment. We'll let you know as soon as we have a patch ready.

            Given current progress, it will be a few more days before we have completed the work and tested it thoroughly. Sorry for the delay.

            Regards,
            Matt

            Matt Ryall added a comment - Hi Ben, Our bug-fixing team is working on this issue at the moment. We'll let you know as soon as we have a patch ready. Given current progress, it will be a few more days before we have completed the work and tested it thoroughly. Sorry for the delay. Regards, Matt

            Ben Jones added a comment -

            I called Ivan from Support last Thursday and was told we'd have a fix for this uploaded to the issue by Friday. Haven't seen anything further done for this issue. I have installed 2.5.7(which has exactly the same problem). Will the patched JAR file be attached to the issue today?

            Ben Jones added a comment - I called Ivan from Support last Thursday and was told we'd have a fix for this uploaded to the issue by Friday. Haven't seen anything further done for this issue. I have installed 2.5.7(which has exactly the same problem). Will the patched JAR file be attached to the issue today?

            Johan van den Hoven added a comment - https://support.atlassian.com/browse/CSP-10302

            Installing Confluence 2.5.5 enabled us to complete the user migration succesfully!

            Johan van den Hoven added a comment - Installing Confluence 2.5.5 enabled us to complete the user migration succesfully!

              mjensen m@ (Inactive)
              jlargman Jeremy Largman
              Affected customers:
              8 This affects my team
              Watchers:
              12 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 8h
                  8h
                  Remaining:
                  Remaining Estimate - 8h
                  8h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified