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

Confluence SSO authenticator class does not copy users on login

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 5.10.5
    • 3.5, 3.5.13, 4.1, 5.1.3
    • None

      If you connect Confluence 3.5+ to Crowd using the connector, and Crowd is backing Confluence with a delegated LDAP directory, a user that is not in the directory will always fail their first login and will not be able to authenticate until the connector syncs.

      Tested in:
      Confluence 3.5.13
      Crowd 2.2.7
      Delegated LDAP Directory pointing to Apache DS
      Delegated LDAP Directory pointing to MSAD

      Behavior:
      User jsmith exists in LDAP, but not yet in Crowd. User attempts to login to Confluence. The user it told that their username or password is incorrect. On the Crowd side, the user will be added to the directory successfully, but will continue to fail auth in Confluence until the directory sync with Crowd occurs.

      This only happens when using the com.atlassian.confluence.user.ConfluenceCrowdSSOAuthenticator class. If you are using the default Confluence authenticator class in your serap-config.xml, it works as expected. The user jsmith will attempt to login to Confluence and will be added to Crowd and Confluence.

            [CONFSERVER-23957] Confluence SSO authenticator class does not copy users on login

            Please, Please, Please. Fix this.

            The issue mentioned by Chris 5 months ago, JRA-60747 was fixed in the meantime.

            This bug is a huge pain for us and a lot of our customers, as we have to manually sync everytime a new user was created.

            People even have to create plugins or write scripts to work around this issue. This results in a lot of frustration and unnecessary waste of resources.

            Marcel Reinhardt added a comment - Please, Please, Please. Fix this. The issue mentioned by Chris 5 months ago, JRA-60747 was fixed in the meantime. This bug is a huge pain for us and a lot of our customers, as we have to manually sync everytime a new user was created. People even have to create plugins or write scripts to work around this issue. This results in a lot of frustration and unnecessary waste of resources.

            Feldhacker added a comment -

            It's unfortunately that over-arching design flaws like this aren't managed / addressed together by Atlassian.

            CWD-2650 was just fixed, and JRA-60747 is Awaiting Development. How long before work begins on the same problem in Confluence (and Bamboo)? After waiting 4.5 years to get this fixed, it would be great to have a date when this issue will be fixed across the entire Atlassian stack rather than piecemeal fixes being released.

            I just fear this flaw will be fixed in some Atlassian products, but other individual Atlassian product teams will continue to sit on it for another 4.5 years...

            Feldhacker added a comment - It's unfortunately that over-arching design flaws like this aren't managed / addressed together by Atlassian. CWD-2650 was just fixed, and JRA-60747 is Awaiting Development. How long before work begins on the same problem in Confluence (and Bamboo)? After waiting 4.5 years to get this fixed, it would be great to have a date when this issue will be fixed across the entire Atlassian stack rather than piecemeal fixes being released. I just fear this flaw will be fixed in some Atlassian products, but other individual Atlassian product teams will continue to sit on it for another 4.5 years...

            Bump!

            Michael Alphonso added a comment - Bump!

            We have crowd delegating our authentication to LDAP. I have just received a notification that crowd support for apache will be discontinued. As things are SSO is the only feature that, to us, gives crowd some value. But this feature is crippled by this issue. At this point I'm starting to have some doubts about our investment in this tool.

            Javier Perez added a comment - We have crowd delegating our authentication to LDAP. I have just received a notification that crowd support for apache will be discontinued. As things are SSO is the only feature that, to us, gives crowd some value. But this feature is crippled by this issue. At this point I'm starting to have some doubts about our investment in this tool.

            From our testing Jira, Confluence and Bamboo have this issue, while Crucible and Stash work without a problem and sync the user on first login.

            This problem is a real deal breaker for Crowd SSO used with AD delegated authentication, since when you create a new use in AD, that user won't end up into Crowd until the user tries to login into one of the Crowd applications, but when the user tries to login into e.g. Confluence, it will get an error and will have to wait for the next Confluence sync to be able to login.

            But the biggest deal breaker is that the Confluence automatic sync doesn't mean a thing here, since until the user ends up in Crowd it will never sync with Confluence, so the user has to login and fail on the first attempt.

            Deleted Account (Inactive) added a comment - From our testing Jira, Confluence and Bamboo have this issue, while Crucible and Stash work without a problem and sync the user on first login. This problem is a real deal breaker for Crowd SSO used with AD delegated authentication, since when you create a new use in AD, that user won't end up into Crowd until the user tries to login into one of the Crowd applications, but when the user tries to login into e.g. Confluence, it will get an error and will have to wait for the next Confluence sync to be able to login. But the biggest deal breaker is that the Confluence automatic sync doesn't mean a thing here, since until the user ends up in Crowd it will never sync with Confluence, so the user has to login and fail on the first attempt.

            This affects also JIRA and I guess all other Atlassian products providing the sso authenticator.
            Affected is also Seraph 2.6.0 in the products

            Ralf Martin added a comment - This affects also JIRA and I guess all other Atlassian products providing the sso authenticator. Affected is also Seraph 2.6.0 in the products

            That's pretty clear after almost 2 years. Perhaps you should consider open sourcing some of the integration code so we could fix it ourselves when you can't find the time to fix bugs you introduce between your products.

            Jason Stiefel added a comment - That's pretty clear after almost 2 years. Perhaps you should consider open sourcing some of the integration code so we could fix it ourselves when you can't find the time to fix bugs you introduce between your products.

            I like the "for us" part of it. I couldn't have written it better.

            Javier Perez added a comment - I like the "for us" part of it. I couldn't have written it better.

            Hi There

            Due to a number of factors, although we acknowledge that this issue exists and needs to be resolved it is not a top priority for us at this time.

            Regards

            Steve Haffenden (Inactive) added a comment - Hi There Due to a number of factors, although we acknowledge that this issue exists and needs to be resolved it is not a top priority for us at this time. Regards

            shaffenden: Yes, I just tested in 5.1.3. If I create a new user in my existing Delegated LDAP Directory and log into Crowd directly with the credentials, my user authenticates successfully. If I then go to Confluence prior to a Crowd sync, login fails:

            2013-06-20 12:50:23,105 WARN [http-9130-5] [atlassian.seraph.auth.DefaultAuthenticator] login login : 'steve' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.
            

            I then go back into Confluence as an admin, sync the Crowd directory, and 'steve' logs in successfully. There should be a one-time lookup when a use auths via the SSO class and their name is not in the DB cache yet, similar to how the check is made in the default authenticator class for Confluence.

            Adam Laskowski (Inactive) added a comment - shaffenden : Yes, I just tested in 5.1.3. If I create a new user in my existing Delegated LDAP Directory and log into Crowd directly with the credentials, my user authenticates successfully. If I then go to Confluence prior to a Crowd sync, login fails: 2013-06-20 12:50:23,105 WARN [http-9130-5] [atlassian.seraph.auth.DefaultAuthenticator] login login : 'steve' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie. I then go back into Confluence as an admin, sync the Crowd directory, and 'steve' logs in successfully. There should be a one-time lookup when a use auths via the SSO class and their name is not in the DB cache yet, similar to how the check is made in the default authenticator class for Confluence.

              Unassigned Unassigned
              alaskowski Adam Laskowski (Inactive)
              Affected customers:
              43 This affects my team
              Watchers:
              30 Start watching this issue

                Created:
                Updated:
                Resolved: