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

Support case-insensitive mode for user IDs

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We use this plugin with Active Directory users authorisation and via AD user can be authorised with lowercase and CamelCase names. But "role-strategy" plugin uses exact user name and we have to register two user names for each user - lowercase and CamelCase.

        Attachments

          Issue Links

            Activity

            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Issue is caused by active-directory plugin

            Show
            oleg_nenashev Oleg Nenashev added a comment - Issue is caused by active-directory plugin
            Hide
            oleg_nenashev Oleg Nenashev added a comment - - edited

            https://issues.jenkins-ci.org/browse/JENKINS-19320 can resolve this issue for role-strategy plugin.
            I'm going to implement such feature at the October

            Show
            oleg_nenashev Oleg Nenashev added a comment - - edited https://issues.jenkins-ci.org/browse/JENKINS-19320 can resolve this issue for role-strategy plugin. I'm going to implement such feature at the October
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Pull request: https://github.com/jenkinsci/role-strategy-plugin/pull/5
            You can find test hpi in attachments

            Show
            oleg_nenashev Oleg Nenashev added a comment - Pull request: https://github.com/jenkinsci/role-strategy-plugin/pull/5 You can find test hpi in attachments
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Attached hpi with a fix

            Show
            oleg_nenashev Oleg Nenashev added a comment - Attached hpi with a fix
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Alexey, please test the plugin against ActiveDirectory. It works well for me (LDAP and LocalDatabase)

            Show
            oleg_nenashev Oleg Nenashev added a comment - Alexey, please test the plugin against ActiveDirectory. It works well for me (LDAP and LocalDatabase)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Global configuration example

            Show
            oleg_nenashev Oleg Nenashev added a comment - Global configuration example
            Hide
            waltern Walter Nagler added a comment -

            Works for me, too.
            In combination with Active Directory plugin

            Show
            waltern Walter Nagler added a comment - Works for me, too. In combination with Active Directory plugin
            Hide
            batmat Baptiste Mathus added a comment -

            +1. IMO this would be better to not mark this issue as fixed for communication, since the code has actually not reached master (still in the PR).

            Show
            batmat Baptiste Mathus added a comment - +1. IMO this would be better to not mark this issue as fixed for communication, since the code has actually not reached master (still in the PR).
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Baptiste Mathus, I've reopened the issue.

            I'll consider the merge of the PR in the next release.

            Show
            oleg_nenashev Oleg Nenashev added a comment - Baptiste Mathus , I've reopened the issue. I'll consider the merge of the PR in the next release.
            Hide
            batmat Baptiste Mathus added a comment - - edited

            Oleg Nenashev Great! Thanks!

            Show
            batmat Baptiste Mathus added a comment - - edited Oleg Nenashev Great! Thanks!
            Hide
            pixman20 pixman20 added a comment - - edited

            Has this been verified to work when using the "authenticated" special "user" when assigning roles.
            It may be that it works inherently, but I just want to verify prior to release.
            Also, will the update provide an option or will it automatically be case insensitive? (n/m, just saw the png)

            Show
            pixman20 pixman20 added a comment - - edited Has this been verified to work when using the "authenticated" special "user" when assigning roles. It may be that it works inherently, but I just want to verify prior to release. Also, will the update provide an option or will it automatically be case insensitive? (n/m, just saw the png)
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            @pixman20
            Yes, it should work with the "authenticated" user group.
            If you want to perform an additional testing, I can provide the plugin's build with the patch. Such contribution will be appreciated.

            Show
            oleg_nenashev Oleg Nenashev added a comment - @ pixman20 Yes, it should work with the "authenticated" user group. If you want to perform an additional testing, I can provide the plugin's build with the patch. Such contribution will be appreciated.
            Hide
            pixman20 pixman20 added a comment - - edited

            Oleg Nenashev, I'd be happy to contribute and test it out. Feel free to email me (address in profile) unless there's somewhere I can grab it from. Thanks!

            Show
            pixman20 pixman20 added a comment - - edited Oleg Nenashev , I'd be happy to contribute and test it out. Feel free to email me (address in profile) unless there's somewhere I can grab it from. Thanks!
            Hide
            bherfurth Ben Herfurth added a comment -

            What about the merge?

            Show
            bherfurth Ben Herfurth added a comment - What about the merge?
            Hide
            fsteff Flemming Steffensen added a comment -

            Believe I'm seeing this problem.

            Users will be granted different access, whether they are logging in as lower-case "username" or have any or all letters capitalized.

            If there's still something that needs to be tested prior to merge, please contact me - I'd be happy to test.

            Show
            fsteff Flemming Steffensen added a comment - Believe I'm seeing this problem. Users will be granted different access, whether they are logging in as lower-case "username" or have any or all letters capitalized. If there's still something that needs to be tested prior to merge, please contact me - I'd be happy to test.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -
            Show
            oleg_nenashev Oleg Nenashev added a comment - I will add it to the scope of https://jenkins.io/projects/gsoc/2019/project-ideas/role-strategy-ux/
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            I believe that a proper implementation nowadays would be an integration with User ID strategies from JENKINS-22247: https://javadoc.jenkins.io/jenkins/model/IdStrategy.html. Such extension point is available in recent versions

            Show
            oleg_nenashev Oleg Nenashev added a comment - I believe that a proper implementation nowadays would be an integration with User ID strategies from  JENKINS-22247 : https://javadoc.jenkins.io/jenkins/model/IdStrategy.html . Such extension point is available in recent versions

              People

              • Assignee:
                Unassigned
                Reporter:
                msavich Alex
              • Votes:
                13 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated: