SonarQube
  1. SonarQube
  2. SONAR-1334

Automatically create a user in the sonar db if authentication has been successfully done against an external authentication server

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0
    • Labels:
      None
    • Number of attachments :
      2

      Description

      With this feature, no need to previously fill the Sonar DB to allow a user to authenticate. By default, this user should be associated to the "sonar-users" group and of course his name will be his login.

      1. SONAR-1334.diff
        4 kB
        Evgeny Mandrikov
      2. SONAR-1334.diff
        1 kB
        Evgeny Mandrikov

        Issue Links

          Activity

          Hide
          Simon Brandhof added a comment -

          The group is optional when creating the user from the settings page, because administrators usually add him to groups as soon as it's created.
          For the feature 'sign up online', you're right. The parameter should use the same parameter 'default group'.

          Show
          Simon Brandhof added a comment - The group is optional when creating the user from the settings page, because administrators usually add him to groups as soon as it's created. For the feature 'sign up online', you're right. The parameter should use the same parameter 'default group'.
          Hide
          Evgeny Mandrikov added a comment -

          New patch attached.

          This patch adds two properties:

          1. sonar.defaultGroup (default value sonar-users, can be set from UI) - affects any user creation (sign up, manually, authenticator), also I can provide Selenese TestCase for this.
          2. sonar.authenticator.createUsers (default value false, can be set from sonar.properties)

          Is there is a chance to get this in upcoming version?

          Show
          Evgeny Mandrikov added a comment - New patch attached. This patch adds two properties: sonar.defaultGroup (default value sonar-users, can be set from UI) - affects any user creation (sign up, manually, authenticator), also I can provide Selenese TestCase for this. sonar.authenticator.createUsers (default value false, can be set from sonar.properties) Is there is a chance to get this in upcoming version?
          Hide
          Simon Brandhof added a comment -

          Fixed. Thank you for this contribution.
          An error is logged if the default user group does not exist.

          Show
          Simon Brandhof added a comment - Fixed. Thank you for this contribution. An error is logged if the default user group does not exist.
          Hide
          Julien HENRY added a comment -

          What about retrieving user fullname from LDAP? It seems that with the given patch the user fullname will be set with login. Is it possible to interact with LDAP or Identity plugin to get the correct fullname?

          Show
          Julien HENRY added a comment - What about retrieving user fullname from LDAP? It seems that with the given patch the user fullname will be set with login. Is it possible to interact with LDAP or Identity plugin to get the correct fullname?
          Hide
          Evgeny Mandrikov added a comment -

          Hi Julien,

          We are thinking about more close integration, but for now it's impossible - we need to discuss how we organize this integration.

          Show
          Evgeny Mandrikov added a comment - Hi Julien, We are thinking about more close integration, but for now it's impossible - we need to discuss how we organize this integration.

            People

            • Assignee:
              Simon Brandhof
              Reporter:
              Freddy Mallet
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: