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

Do not differ between upper / lower case in SID

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major Major
    • folder-auth-plugin
    • None

      We are using an Active Directory as security realm / for the Jenkins login which does not differ between a Firstname.Lastname and a firstname.lastname. Both notations can be used for the login.

      The folder-auth-plugin however differs in the notation. Granting permission for the SID firstname.lastname will not grant the permission if the user logs in with a differnt notation (Firstname.lastname / Firstname.Lastname / ...).

      This behaviour shall be removed so that a user logging in with Firstname.Lastname is matched with the SID firstname.lastname.

          [JENKINS-67943] Do not differ between upper / lower case in SID

          Abhyudaya Sharma added a comment - - edited

          Hi. This is a known issue not just in this plugin but also in role-strategy plugin. You may also want to take a look at JENKINS-34545

          We can check whether the usernames are case sensitive or not at runtime using https://javadoc.jenkins.io/hudson/security/SecurityRealm.html#getUserIdStrategy-- but this may lead to significantly reduced performance.

          It is possible to have a correct and efficient implementation but it might require some changes to Jenkins core. Feel free to create a pull request if you can think of a better solution than https://github.com/jenkinsci/role-strategy-plugin/pull/43.

          Abhyudaya Sharma added a comment - - edited Hi. This is a known issue not just in this plugin but also in role-strategy plugin. You may also want to take a look at JENKINS-34545 We can check whether the usernames are case sensitive or not at runtime using https://javadoc.jenkins.io/hudson/security/SecurityRealm.html#getUserIdStrategy-- but this may lead to significantly reduced performance. It is possible to have a correct and efficient implementation but it might require some changes to Jenkins core. Feel free to create a pull request if you can think of a better solution than https://github.com/jenkinsci/role-strategy-plugin/pull/43 .

            abhyudaya Abhyudaya Sharma
            exojack Christoph
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: