Change webdav and remoting URLs
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / HttpLoginModule.java
index 71aec68c844b3231096d436f9de86e02bb90d74a..9a07e3c20d6f3cd1566adfd236584cddc29c50d3 100644 (file)
@@ -135,6 +135,7 @@ public class HttpLoginModule implements LoginModule, AuthConstants {
                                if (log.isTraceEnabled())
                                        log.trace("Added " + request.getServletPath() + " to " + cmsSession + " (" + request.getRequestURI()
                                                        + ")");
+                               httpSession.setAttribute(HttpContext.REMOTE_USER, authorization.getName());
                                httpSession.setAttribute(HttpContext.AUTHORIZATION, authorization);
                        }
                }
@@ -170,7 +171,7 @@ public class HttpLoginModule implements LoginModule, AuthConstants {
                }
 
                if (srs.size() == 0)
-                       throw new CmsException("No CMS web sesison found for http session " + httpSessionId);
+                       throw new CmsException("No CMS web session found for http session " + httpSessionId);
                else if (srs.size() > 1)
                        throw new CmsException(srs.size() + " CMS web sessions found for http session " + httpSessionId);