• Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • Hudson 1.388 with active directory plugin version 1.17, running under Linux

      In my setup Hudson is using a svn server where users are reported in the following format: USER@DOMAIN.EXT.

      Unfortunately, when I log in Hudson through Active Directory, the created user is only USER thus it does not match the discovered users through svn.

      My patch modify two things:

      • the method getPrincipalName() so that if the user log in as USER@DOMAIN.EXT the code does not transform it to USER@DOMAIN.EXT.DOMAIN.EXT.
      • the returned name is the principalName variable, that is the full username with the domain information.

      My patch only modify the ActiveDirectoryUnixAuthenticationProvider class, the other authentication provider used when Hudson is running on Windows was not modified, I have to test environment to do this change.

      I also see that my change conflicts with JENKINS-5773, so I am wondering if we should not add a new configuration parameter where we can define a pattern for the username?

          [JENKINS-8287] Append domain name to the username

          I actually have the opposite ask. Or at least I wish the plugin was consistent. It seems that users can login with either foo@example.com or just foo but this ends up creating two users in Jenkins if folks login both ways. Personally I would prefer that it just strips the @example.com from the username but would be satisfied if we were simply consistent and either always appended the domain or always stripped it.

          Erik Lattimore added a comment - I actually have the opposite ask. Or at least I wish the plugin was consistent. It seems that users can login with either foo@example.com or just foo but this ends up creating two users in Jenkins if folks login both ways. Personally I would prefer that it just strips the @example.com from the username but would be satisfied if we were simply consistent and either always appended the domain or always stripped it.

            Unassigned Unassigned
            rborer Reynald Borer
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: