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

Prompt to create user when selecting internal user database

    Details

    • Similar Issues:

      Description

      During the initial configuration of Jenkins, if the Security Realm of "Jenkins own user database" is selected, it should prompt to create at least 1 administrative user (if none exist) before saving the configuration. Currently it's fairly easy to lock oneself out if no local users exist and this configuration is saved.

        Attachments

          Issue Links

            Activity

            Hide
            danielbeck Daniel Beck added a comment -

            the main Jenkins page which now showed the login page

            That's exactly the problem. It is not the main page, but the login form for the /manage URL. The main page would actually allow creating a user.

            Pull request here: https://github.com/jenkinsci/jenkins/pull/1525

            PR build here; once it finishes you can download and test the jenkins.war containing the fix: https://jenkins.ci.cloudbees.com/job/core/job/jenkins-core/1935/

            Show
            danielbeck Daniel Beck added a comment - the main Jenkins page which now showed the login page That's exactly the problem. It is not the main page, but the login form for the /manage URL. The main page would actually allow creating a user. Pull request here: https://github.com/jenkinsci/jenkins/pull/1525 PR build here; once it finishes you can download and test the jenkins.war containing the fix: https://jenkins.ci.cloudbees.com/job/core/job/jenkins-core/1935/
            Hide
            snakedoc Jason Sipula added a comment -

            Confirmed, build #1935 fixed it.

            Thanks Daniel!

            Show
            snakedoc Jason Sipula added a comment - Confirmed, build #1935 fixed it. Thanks Daniel!
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java
            http://jenkins-ci.org/commit/jenkins/8d1968f5bdfc60eefa5102671f456e4f3de54c94
            Log:
            [FIXED JENKINS-26382] Allow admin signup from /manage as well

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java http://jenkins-ci.org/commit/jenkins/8d1968f5bdfc60eefa5102671f456e4f3de54c94 Log: [FIXED JENKINS-26382] Allow admin signup from /manage as well
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -
            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: changelog.html http://jenkins-ci.org/commit/jenkins/b0908bd5ae64e161ec310164ba293aec8bc1d29b Log: JENKINS-26382 Noting merge of #1525. Compare: https://github.com/jenkinsci/jenkins/compare/9309cd39ad44...b0908bd5ae64
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3928
            [FIXED JENKINS-26382] Allow admin signup from /manage as well (Revision 8d1968f5bdfc60eefa5102671f456e4f3de54c94)
            JENKINS-26382 Noting merge of #1525. (Revision b0908bd5ae64e161ec310164ba293aec8bc1d29b)

            Result = SUCCESS
            daniel-beck : 8d1968f5bdfc60eefa5102671f456e4f3de54c94
            Files :

            • core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java

            jesse glick : b0908bd5ae64e161ec310164ba293aec8bc1d29b
            Files :

            • changelog.html
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3928 [FIXED JENKINS-26382] Allow admin signup from /manage as well (Revision 8d1968f5bdfc60eefa5102671f456e4f3de54c94) JENKINS-26382 Noting merge of #1525. (Revision b0908bd5ae64e161ec310164ba293aec8bc1d29b) Result = SUCCESS daniel-beck : 8d1968f5bdfc60eefa5102671f456e4f3de54c94 Files : core/src/main/java/hudson/security/HudsonPrivateSecurityRealm.java jesse glick : b0908bd5ae64e161ec310164ba293aec8bc1d29b Files : changelog.html

              People

              • Assignee:
                danielbeck Daniel Beck
                Reporter:
                snakedoc Jason Sipula
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: