Garrett Burke Garrett.Burke@msc.ie wrote:
Anyone know of any issues with smbclient (version 1.9.18p8) and filers running CIFS (OnTap 5.2.1)?
Ack, sorry Garrett, I just noticed that you're running Samba 1.9.18p8 and I gave you a patch for Samba 2.0.3. I took a look at the Samba 1.9.18p10 source I had handy and it wasn't immediately clear to me what the correct patch is. Samba 1.9.18p10 uses a BUFFER_SIZE constant (defined as 0xFFFF) when calling Session Setup, but that constant is used in a *lot* more places than the CLI_BUFFER_SIZE constant in Samba 2.0.3, so I'm hesitant to fiddle with it. You're probably better off downloading 2.0.3 and applying that patch, since I'm sure that will get you a working smbclient. But if you want to stick with 1.9.18, you can give the following (untested!) patch a shot. (Let me know how it goes.)
Matt
*** samba-1.9.18p10/source/smb.h- Tue Jun 2 18:06:57 1998 --- samba-1.9.18p10/source/smb.h Thu Apr 15 13:02:02 1999 *************** *** 24,30 **** #ifndef _SMB_H #define _SMB_H
! #define BUFFER_SIZE (0xFFFF) #define SAFETY_MARGIN 1024
#define NMB_PORT 137 --- 24,30 ---- #ifndef _SMB_H #define _SMB_H
! #define BUFFER_SIZE (0x2000) #define SAFETY_MARGIN 1024
#define NMB_PORT 137