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

RememberMe doesn't work with unix authentication

XMLWordPrintable

    • 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")}

      );
      }
      }

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

              Created:
              Updated:
              Resolved: