log.debug("RADIUS Validation SUCCEEDED!");
try {
User user = CoreServlet.getServlet().getUserDatabase().getAccount(null, username);
return user;
} catch (Exception e) {
throw new UserDatabaseException("Failed to get user account.", e);
}
}else{
log.warn("RADIUS Validation FAILED!");
throw new InvalidLoginCredentialsException("Bad username or password.");