@@ -0,0 +1,1149 @@
+package org.opennms.web.acegisecurity;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0A%0Aimport org.acegisecurity.Authentication;%0Aimport org.acegisecurity.AuthenticationException;%0Aimport org.acegisecurity.providers.UsernamePasswordAuthenticationToken;%0Aimport org.acegisecurity.ui.AbstractProcessingFilter;%0A%0A/**%0A * @author Timothy Nowaczyk, tan7f@virginia.edu%0A */%0Apublic class RemoteUserAuthenticationProcessingFilter extends AbstractProcessingFilter %7B%0A%0A  @Override%0A  public Authentication attemptAuthentication(HttpServletRequest request) throws AuthenticationException %7B%0A    String username = (String)request.getAttribute(%22REMOTE_USER%22);%0A    String password = %22%22;%0A%0A    if (username == null) %7B%0A      username = %22%22;%0A    %7D%0A%0A    username = username.trim();%0A%0A    UsernamePasswordAuthenticationToken authRequest = new UsernamePasswordAuthenticationToken(username, password);%0A    authRequest.setDetails(authenticationDetailsSource.buildDetails((HttpServletRequest) request));%0A%0A    return this.getAuthenticationManager().authenticate(authRequest);%0A  %7D%0A%0A  @Override%0A  public String getDefaultFilterProcessesUrl() %7B%0A    return %22/j_acegi_security_check%22;%0A  %7D%0A%7D%0A

add RemoteUserAuthenticationProcessingFilter from bug #2073 for single sign-on; not sure the best place to document configuration-wise though