[jcifs] Redirecting through IIS to Tomcat gives an error
Tony Cooke
TCooke at elders.com.au
Fri Jul 25 12:39:06 EST 2003
Thanks Mike.
I've added the file and made the jar file and I don't get the exception but I end up getting the following running the NtlmHttpAuthExample servlet:
NTLM HTTP Authentication Example
successfully logged in <-- something has logged in but it doesn't say who.
Please submit some form data using POST
field1 = sdsdsdsd
NOTE: Running it directly through Tomcat still works, it's just the ISAPI redirector version that gives the error.
Once again, thanks for your help Mike.
All the best,
Tony
-----Original Message-----
From: Allen, Michael B (RSCH) [mailto:Michael_B_Allen at ml.com]
Sent: Friday, 25 July 2003 11:26 AM
To: Tony Cooke; jcifs at lists.samba.org
Subject: RE: [jcifs] Redirecting through IIS to Tomcat gives an error
At second glance I *didn't* apply the change I was thinking of. Try a jar built with the attached replacement file.
<<SmbComSessionSetupAndX.java>>
> -----Original Message-----
> From: Allen, Michael B (RSCH) [SMTP:Michael_B_Allen at ml.com]
> Sent: Thursday, July 24, 2003 9:49 PM
> To: 'Tony Cooke'; jcifs at lists.samba.org
> Subject: RE: [jcifs] Redirecting through IIS to Tomcat gives an error
>
>
> > -----Original Message-----
> > From: Tony Cooke [SMTP:TCooke at elders.com.au]
> >
> > My problem is this. I currently have the Tomcat ISAPI redirector DLL sending
> > all requests specific to Java to Tomcat. This is fine. When I access the
> > NtlmHttpAuthExample via Tomcat (default port 8080, not via IIS) I get
> > authenticated. If I go through the redirector DLL I get the following exception.
> > (sorry about the length of this message :-)
> >
> > java.lang.ArrayIndexOutOfBoundsException
> > at java.lang.System.arraycopy(Native Method)
> > at jcifs.smb.SmbComSessionSetupAndX.writeBytesWireFormat(SmbComSessionSetupAndX.java:124)
> >
> This is probably:
>
> System.arraycopy( accountPassword, 0, dst, dstIndex, passwordLength );
>
> which probably means the accountPassword is 0 length. We messed around
> with those password arrays a little bit recently. It might be isolated to the latest
> version which introducted LMv2 which has a larger password hash I think.
> Which version are you using? Try another one from a few rev's back.
> Unfortunately this is probably just an artifact of another error.... Eric will know
> more although he might be on vacation at the moment.
>
> Mike
>
More information about the jcifs
mailing list