[jcifs] Redirecting through IIS to Tomcat gives an error

Allen, Michael B (RSCH) Michael_B_Allen at ml.com
Fri Jul 25 11:56:18 EST 2003


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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SmbComSessionSetupAndX.java
Type: application/octet-stream
Size: 6965 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20030724/3b8321ce/SmbComSessionSetupAndX.obj


More information about the jcifs mailing list