formAuthenticator.forwardErrorFail=Unexpected error forwarding to error page
formAuthenticator.forwardLoginFail=Unexpected error forwarding to login page
+
+spnegoAuthenticator.hostnameFail=Unable to determine the host name to construct the default SPN. Please set the spn attribute of the authenticator.
+spnegoAuthenticator.serviceLoginFail=Unable to login as the service principal
+spnegoAuthenticator.ticketValidateFail=Failed to validate client supplied ticket
\ No newline at end of file
try {
name.append(InetAddress.getLocalHost().getCanonicalHostName());
} catch (UnknownHostException e) {
- // TODO add a message
- throw new LifecycleException(e);
+ throw new LifecycleException(
+ sm.getString("spnegoAuthenticator.hostnameFail"), e);
}
serviceProvideName = name.toString();
} else {
lc.login();
serviceSubject = lc.getSubject();
} catch (LoginException e) {
- // TODO add a message
- throw new LifecycleException(e);
+ throw new LifecycleException(
+ sm.getString("spnegoAuthenticator.serviceLoginFail"), e);
}
}
new KerberosAuthAction(decoded.getBytes(),
response, context));
} catch (PrivilegedActionException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
+ if (log.isDebugEnabled()) {
+ log.debug(sm.getString(
+ "spnegoAuthenticator.ticketValidateFail"));
+ }
}
if (principal != null) {