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

Matrix based security should apply to case insensitive user name.

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • matrix-auth-plugin
    • None
    • Red Hat Linux 2.6.32-220.13.1.el6.x86_64
      Jenkins 1.571
      Java(TM) SE Runtime Environment (build 1.7.0_40-b43)
      Java HotSpot(TM) 64-Bit Server VM (build 24.0-b56, mixed mode)

      There have been several issues resolved recently with regards to case sensitivity of user name within Jenkins authentication. However, I am not certain that the current state is behaving as one would expect.

      Our users sometimes report that when logging in to Jenkins they are recognised, but no jobs are visible. We have found that the user has not matched the case as specified within the Security Matrix row.

      For example, we set up a user within the security matrix as A123 and give them their permissions. When they log in (autheticated via LDAP) as A123 there is no issue. If they log on with a123 they are still authenticated (because the LDAP authentication correctly ignores the case), but Jenkins security then fails to match due to the case difference.

      We know we can try a work around by adding two identical records to the matrix: a123 and A123. But with many users, that becomes a bit of a nightmare.

      For now we have put in a banner to say - "See no jobs? Log in with an upper case user id". But I am guessing this is something that could be improved to bury the case sensitive issues for good?

      Maybe I'm missing a checkbox or something?!?

          [JENKINS-23844] Matrix based security should apply to case insensitive user name.

          Grant Wilcox created issue -
          Oleg Nenashev made changes -
          Component/s New: matrix-auth [ 18131 ]
          Component/s Original: security [ 15508 ]
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Assignee Original: Jesse Glick [ jglick ]

          Is there any activity or planned activity on this? After upgrading to Jenkins 1.596 and getting the latest version of the matrix auth strategy plugin, we had to make, what I would consider unnecessary,changes to our Jenkins configuration to support camel-case usernames. Jenkins supports case-insensitive login names so this plugin should, too.

          Katherine Elliott added a comment - Is there any activity or planned activity on this? After upgrading to Jenkins 1.596 and getting the latest version of the matrix auth strategy plugin, we had to make, what I would consider unnecessary,changes to our Jenkins configuration to support camel-case usernames. Jenkins supports case-insensitive login names so this plugin should, too.

          Any Progress on this issue.

          jothibasu Kamaraj added a comment - Any Progress on this issue.
          jothibasu k made changes -
          Priority Original: Major [ 3 ] New: Blocker [ 1 ]
          jothibasu k made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]

          jothibasu k added a comment -

          Please check on this...

          jothibasu k added a comment - Please check on this...

          Daniel Beck added a comment -

          There is a fairly easy workaround for this issue: Have your users log in using the user name case used in the permissions config. Use e.g. Simple Theme Plugin to add a note to the login page.

          For any higher priority, please explain the reasoning. "I really want it fixed" is not a good reason

          Daniel Beck added a comment - There is a fairly easy workaround for this issue: Have your users log in using the user name case used in the permissions config. Use e.g. Simple Theme Plugin to add a note to the login page. For any higher priority, please explain the reasoning. "I really want it fixed" is not a good reason
          Daniel Beck made changes -
          Priority Original: Blocker [ 1 ] New: Minor [ 4 ]

            Unassigned Unassigned
            grantwilcox Grant Wilcox
            Votes:
            9 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: