[jcifs] Forwarding after authorization failure using
NtlmHttpFilter
Richard Caper
rcaper at gmail.com
Sun Mar 13 04:55:38 GMT 2005
>
> To do this I needed to store a reference to the FilterConfig object passed
> in init() but that is about the extent of the
You could also obtain the RequestDispatcher during init() and store
that; so rather than doing getServletContext()... etc. each failed
login, it would just do:
if (dispatcher != null) dispatcher.forward(request, response);
> missing something. Does this modification cause any problems or is there an
> even simpler solution that I was too dense to see?
>
You might be able to use the servlet error-page handling (i.e. declare
an error page for 401 and see if that works). NTLM is a bit weird
though, since the server will send a 401 with the challenge as well as
the authentication result; so the error page may trap that
intermediate response and hiccup the NTLM handshake.
More information about the jcifs
mailing list