Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11759

Allow single user with multiple usernames, therefore allowing same person to be identified

    Details

    • Type: New Feature
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
    • Environment:
      Active Directory / Subversion / CVS
    • Similar Issues:

      Description

      We currently use Active Directory for user logins to Jenkins. However, our repositories are not connected to AD, and so users have a different username for them.
      For example a user A might have username userA in AD, while have Auser in subversion, and user1 in CVS.

      Would it be possible to allow the admin to set additional usernames for a single person? This would help eliminate multiple entries for the same person in the "People" list, and also let Jenkins realise that Auser and user1 (and userA) are the same person?

        Attachments

          Issue Links

            Activity

            Hide
            khushsk Sagar Khushalani added a comment -

            excuse the "hudson" username - legacy stuff

            Show
            khushsk Sagar Khushalani added a comment - excuse the "hudson" username - legacy stuff
            Hide
            ndeloof Nicolas De Loof added a comment -

            I'm working on a fix for this as https://github.com/ndeloof/jenkins/tree/userID

            idea is to extend logic for User.get(String idOrFullName, boolean create); so that - as first parameter suggest - it handle the case idOrFullName is not the jenkins user ID but another identifier. A new extension point is create to retrieve canonical (ie jenkins user database) ID from idOrFullName. So plugins could contribute ID reconciliation, either with automatic rule (append domain name to SCM id, ...), external service lookup, or based on custom UserProperties

            Show
            ndeloof Nicolas De Loof added a comment - I'm working on a fix for this as https://github.com/ndeloof/jenkins/tree/userID idea is to extend logic for User.get(String idOrFullName, boolean create); so that - as first parameter suggest - it handle the case idOrFullName is not the jenkins user ID but another identifier. A new extension point is create to retrieve canonical (ie jenkins user database) ID from idOrFullName. So plugins could contribute ID reconciliation, either with automatic rule (append domain name to SCM id, ...), external service lookup, or based on custom UserProperties
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            core/src/main/java/hudson/model/User.java
            core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
            http://jenkins-ci.org/commit/jenkins/a03f9cd2c1e8ede96e3ba50690908d6b068451e2
            Log:
            JENKINS-11759 extension point to resolve jenkins user from SCM id

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/User.java core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java http://jenkins-ci.org/commit/jenkins/a03f9cd2c1e8ede96e3ba50690908d6b068451e2 Log: JENKINS-11759 extension point to resolve jenkins user from SCM id
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            core/src/main/java/hudson/model/User.java
            core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
            http://jenkins-ci.org/commit/jenkins/af42534defea4503347dfc0ec442fadf51cf3336
            Log:
            JENKINS-11759 extension point to resolve jenkins user from SCM id

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/User.java core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java http://jenkins-ci.org/commit/jenkins/af42534defea4503347dfc0ec442fadf51cf3336 Log: JENKINS-11759 extension point to resolve jenkins user from SCM id
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Nicolas De Loof
            Path:
            core/src/main/java/hudson/model/User.java
            core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
            http://jenkins-ci.org/commit/jenkins/80fcc481f636986cea4ffab1c9cde37d59252e24
            Log:
            JENKINS-11759 paass context for user ID retrieval

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Nicolas De Loof Path: core/src/main/java/hudson/model/User.java core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java http://jenkins-ci.org/commit/jenkins/80fcc481f636986cea4ffab1c9cde37d59252e24 Log: JENKINS-11759 paass context for user ID retrieval
            Show
            ndeloof Nicolas De Loof added a comment - implemented as https://wiki.jenkins-ci.org/display/JENKINS/Additional+Identities+Plugin
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #1856
            JENKINS-11759 extension point to resolve jenkins user from SCM id (Revision af42534defea4503347dfc0ec442fadf51cf3336)
            JENKINS-11759 paass context for user ID retrieval (Revision 80fcc481f636986cea4ffab1c9cde37d59252e24)

            Result = UNSTABLE
            Nicolas De Loof : af42534defea4503347dfc0ec442fadf51cf3336
            Files :

            • core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
            • core/src/main/java/hudson/model/User.java

            Nicolas De Loof : 80fcc481f636986cea4ffab1c9cde37d59252e24
            Files :

            • core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java
            • core/src/main/java/hudson/model/User.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1856 JENKINS-11759 extension point to resolve jenkins user from SCM id (Revision af42534defea4503347dfc0ec442fadf51cf3336) JENKINS-11759 paass context for user ID retrieval (Revision 80fcc481f636986cea4ffab1c9cde37d59252e24) Result = UNSTABLE Nicolas De Loof : af42534defea4503347dfc0ec442fadf51cf3336 Files : core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java core/src/main/java/hudson/model/User.java Nicolas De Loof : 80fcc481f636986cea4ffab1c9cde37d59252e24 Files : core/src/main/java/jenkins/model/DefaultUserCannonicalIdResolver.java core/src/main/java/hudson/model/User.java

              People

              • Assignee:
                dpk Daniel Khodaparast
                Reporter:
                khushsk Sagar Khushalani
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: