Catch all throwables coming from the JAAS layer in the hopes that Runtime issues...
authorlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 29 Oct 2008 15:00:23 +0000 (15:00 +0000)
committerlajoie <lajoie@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Wed, 29 Oct 2008 15:00:23 +0000 (15:00 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/branches/REL_2@2795 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/main/java/edu/internet2/middleware/shibboleth/idp/authn/provider/UsernamePasswordLoginServlet.java

index 86809bd..02f3079 100644 (file)
@@ -28,7 +28,6 @@ import javax.security.auth.callback.CallbackHandler;
 import javax.security.auth.callback.NameCallback;
 import javax.security.auth.callback.PasswordCallback;
 import javax.security.auth.callback.UnsupportedCallbackException;
-import javax.security.auth.login.LoginException;
 import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServlet;
@@ -189,7 +188,7 @@ public class UsernamePasswordLoginServlet extends HttpServlet {
             request.setAttribute(LoginHandler.SUBJECT_KEY, userSubject);
 
             return true;
-        } catch (LoginException e) {
+        } catch (Throwable e) {
             log.debug("User authentication for {} failed", new Object[] {username}, e);
             return false;
         }