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

          sogabe created issue -
          Alan Harder made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Alan Harder made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          Andrew Bayer made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 133130 ] New: JNJira + In-Review [ 201936 ]
          Jenkins IRC Bot made changes -
          Component/s New: _unsorted [ 19622 ]
          Component/s Original: security [ 15508 ]

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

              Created:
              Updated:
              Resolved: