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

RememberMe doesn't work with unix authentication

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • _unsorted
    • None
    • Platform: All, OS: All

      Hudson r15380

      RememberMe doesn't work with PAMSecurityRealm correctly.

      SecurityRealm.java 87L, returning dummy instance causes this bug? but I have no
      idea.

      new UserDetailsService() {
      public UserDetails loadUserByUsername(String username) throws
      UsernameNotFoundException, DataAccessException {
      if(!UnixUser.exists(username))
      throw new UsernameNotFoundException("No such Unix user:
      "+username);
      // return some dummy instance
      return new User(username,"",true,true,true,true,
      new GrantedAuthority[]

      {new GrantedAuthorityImpl("authenticated")}

      );
      }
      }

          [JENKINS-3057] RememberMe doesn't work with unix authentication

          Alan Harder added a comment -

          confirmed.. RememberMeAuthenticationProvider is not used anywhere in
          PAMSecurityRealm.

          Alan Harder added a comment - confirmed.. RememberMeAuthenticationProvider is not used anywhere in PAMSecurityRealm.

          Alan Harder added a comment -

          update summary

          Alan Harder added a comment - update summary

          Alan Harder added a comment -

          r23740 | mindless | 2009-11-15 14:44:18 -0800 (Sun, 15 Nov 2009) | 3 lines
          Changed paths:
          M /trunk/hudson/main/core/src/main/java/hudson/security/PAMSecurityRealm.java
          A /trunk/hudson/main/war/resources/WEB-INF/security/PAMSecurityRealm.groovy
          M /trunk/www/changelog.html

          [FIXED JENKINS-3057] configure RememberMeAuthenticationProvider with
          PAMSecurityRealm,
          so "remember me" feature works.

          Alan Harder added a comment - r23740 | mindless | 2009-11-15 14:44:18 -0800 (Sun, 15 Nov 2009) | 3 lines Changed paths: M /trunk/hudson/main/core/src/main/java/hudson/security/PAMSecurityRealm.java A /trunk/hudson/main/war/resources/WEB-INF/security/PAMSecurityRealm.groovy M /trunk/www/changelog.html [FIXED JENKINS-3057] configure RememberMeAuthenticationProvider with PAMSecurityRealm, so "remember me" feature works.

            mindless Alan Harder
            sogabe sogabe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: