[jcifs] Struts forwards and jCIFS NTLM
Michael B Allen
mba2000 at ioplex.com
Fri Nov 18 22:16:46 GMT 2005
On Fri, 18 Nov 2005 12:09:13 -0800
Justin Mahoney <JMahoney at ditech.com> wrote:
> Attached is a ZIP (rename firewall-defeating .pdf extension to .zip) file
> containing a "fix" (there's probably a better way to accomplish it).
>
> In brief, I simply surrounded the SmbSession.logon(dc, ntlm); call in
> NtlmHttpFilter.java with the following:
>
> =======================================================
> final String AUTHED = "NtlmHttpAuthenticated";
> String authed = (String) req.getAttribute(AUTHED);
>
> if (authed == null || authed.trim().equals("")) {
> SmbSession.logon(dc, ntlm);
> }
>
> req.setAttribute(AUTHED, AUTHED);
> =======================================================
>
> Will a fix for this issue make it into 1.2.7?
Sorry, no. Unfortunately I don't have a suitable environment with which
to test this. I'll put it on The List for future reference though.
Mike
More information about the jcifs
mailing list