OK I got JAAS working with form authentication. That worked a treat (After a bit of head banging).
I then moved to invoking the login from Struts (Or a Servlet for Tomcat users who don't use Struts) The code still gets invoked correctly. IBTJAASCallbackHandler callbackHandler = new IBTJAASCallbackHandler(loginForm.getUserName(), loginForm.getPassword()); LoginContext context = new LoginContext("IBTJAAS", callbackHandler); context.login(); However the request.remoteUser() is now null (Was populated correctly when I used form authentication) and the same for request.isUserInRole() (It returns false, even though the Principal was added to the subject). Any ideas...? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]