[jcifs] Problem connecting to NetWare

Tony Thompson tony.thompson at stone-ware.com
Sun May 19 00:27:39 EST 2002


I am attempting to connect to CIFS on a NetWare server and I am getting "File not found" exceptions.  I can connect to CIFS on NetWare using my Windows client and it works fine so, I don't think that it is a setup issue in my environment.  I used the SmbShell example application and I have attached full debug of my session.  Any advice would be appreciated.

Thanks.
Tony


O:\jcifs_0.6.1\examples>java -Dlog=all SmbShell 192.168.0.1
#properties loaded
#Sat May 18 09:26:17 EST 2002
log=all
java.version=1.3.1_02
java.home=C:\\Program Files\\JavaSoft\\JRE\\1.3.1_02
java.ext.dirs=C:\\Program Files\\JavaSoft\\JRE\\1.3.1_02\\lib\\ext
java.vm.version=1.3.1_02-b02
java.vm.name=Java HotSpot(TM) Client VM
java.vm.info=mixed mode
java.vm.vendor=Sun Microsystems Inc.
java.vm.specification.version=1.0
java.vm.specification.name=Java Virtual Machine Specification
java.vm.specification.vendor=Sun Microsystems Inc.
java.class.version=47.0
java.class.path=.
java.runtime.version=1.3.1_02-b02
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.specification.version=1.3
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.io.tmpdir=c:\\temp\\
java.awt.printerjob=sun.awt.windows.WPrinterJob
java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
java.awt.fonts=
java.library.path=C:\\WINNT\\system32;.;C:\\WINNT\\System32;C:\\WINNT;C:\\WINNT\
\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;C:\\WINNT\\system32\\nls;C:\\WINNT
\\system32\\nls\\English;Z:.;
java.vendor.url=http://java.sun.com/
java.protocol.handler.pkgs=jcifs
file.separator=\\
file.encoding.pkg=sun.io
os.version=5.0
os.name=Windows 2000
os.arch=x86
user.name=Administrator
user.dir=O:\\jcifs_0.6.1\\examples
user.timezone=America/Indianapolis
user.region=US
user.home=C:\\Documents and Settings\\Administrator.002
user.language=en
sun.boot.library.path=C:\\Program Files\\JavaSoft\\JRE\\1.3.1_02\\bin
sun.boot.class.path=C:\\Program Files\\JavaSoft\\JRE\\1.3.1_02\\lib\\rt.jar;C:\\
Program Files\\JavaSoft\\JRE\\1.3.1_02\\lib\\i18n.jar;C:\\Program Files\\JavaSof
t\\JRE\\1.3.1_02\\lib\\sunrsasign.jar;C:\\Program Files\\JavaSoft\\JRE\\1.3.1_02
\\classes
sun.cpu.endian=little
sun.cpu.isalist=pentium i486 i386
sun.io.unicode.encoding=UnicodeLittle
awt.toolkit=sun.awt.windows.WToolkit
path.separator=;
line.separator=\r\n

May 18 09:26:18.596 - name service address cache
 JCIFS0_8_C6<20> JCIFS0_8_C6<20>/192.168.0.8
 0.0.0.0<00> 0.0.0.0<00>/0.0.0.0

May 18 09:26:18.606 - nbt name service packet sent
NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,i
sTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,res
ultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,quest
ionName=*              <00>,questionType=0x0021,questionClass=IN,recordName=null
,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
May 18 09:26:18.606 - datagram packet sent to: 192.168.0.1
00000: 00 01 01 10 00 01 00 00 00 00 00 00 20 43 4B 41  |............ CKA|
00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41  |AAAAAAAAAAAAAAAA|
00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21  |AAAAAAAAAAAAA..!|
00030: 00 01                                            |..              |

May 18 09:26:18.606 - nbt name service debugging
 new data read from socket
May 18 09:26:18.606 - nbt name service packet receviced
NodeStatusResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,is
Truncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=false,res
ultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,quest
ionName=null,questionType=0x0000,questionClass=IN,recordName=*              <00>
,recordType=0x0021,recordClass=IN,ttl=0,rDataLength=119]
May 18 09:26:18.606 - datagram packet received from: 192.168.0.1
00000: 00 01 85 00 00 00 00 01 00 00 00 00 20 43 4B 41  |............ CKA|
00010: 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41  |AAAAAAAAAAAAAAAA|
00020: 41 41 41 41 41 41 41 41 41 41 41 41 41 00 00 21  |AAAAAAAAAAAAA..!|
00030: 00 01 00 00 00 00 00 77 04 57 49 4C 4C 4F 57 5F  |.......w.WILLOW_|
00040: 57 20 20 20 20 20 20 20 00 04 00 57 49 4C 4C 4F  |W       ...WILLO|
00050: 57 5F 57 20 20 20 20 20 20 20 20 04 00 57 4F 52  |W_W        ..WOR|
00060: 4B 47 52 4F 55 50 20 20 20 20 20 20 1E 84 00 57  |KGROUP      ...W|

00070: 4F 52 4B 47 52 4F 55 50 20 20 20 20 20 20 1D 84  |ORKGROUP      ..|
00080: 00 00 D0 09 E1 57 4D 00 00 00 00 00 00 00 00 00  |..-.ßWM.........|
00090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00     |............... |

May 18 09:26:18.606 - name service address cache
 WORKGROUP<1D> WORKGROUP<1D>/192.168.0.1
 JCIFS0_8_C6<20> JCIFS0_8_C6<20>/192.168.0.8
 0.0.0.0<00> 0.0.0.0<00>/0.0.0.0
 WILLOW_W<00> WILLOW_W<00>/192.168.0.1
 WORKGROUP<1E> WORKGROUP<1E>/192.168.0.1
 WILLOW_W<20> WILLOW_W<20>/192.168.0.1

192.168.0.1> ls
May 18 09:26:19.998 - smb negotiation warning
 requesting negotiation with 0.0.0.0<00>/192.168.0.1
May 18 09:26:20.018 - session service warning
 session established ok with 0.0.0.0<00>/192.168.0.1
May 18 09:26:20.028 - smb sent
SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0x00000000,fl
ags=0x0018,flags2=0x8001,tid=0,pid=40042,uid=0,mid=1,wordCount=0,byteCount=12,wo
rdCount=0,byteCount=12,dialects=NT LM 0.12]

May 18 09:26:20.028 - smb sent
00000: FF 53 4D 42 72 00 00 00 00 18 01 80 00 00 00 00  | SMBr...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 01 00  |..........j.....|
00020: 00 0C 00 02 4E 54 20 4C 4D 20 30 2E 31 32 00     |....NT LM 0.12. |

May 18 09:26:20.028 - smb debugging
 new data read from socket
May 18 09:26:20.028 - smb received
SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=true,errorCode=0x0000
0000,flags=0x0080,flags2=0x8001,tid=0,pid=40042,uid=0,mid=1,wordCount=17,byteCou
nt=8,wordCount=17,dialectIndex=0,securityMode=0x3,security=user,encryptedPasswor
ds=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=65535,maxRawSize=65536,sessi
onKey=0x07D07D08,capabilities=0x00000201,serverTime=Sat May 18 09:26:20 EST 2002
,serverTimeZone=300,encryptionKeyLength=8,byteCount=8,encryptionKey=0x4ED66F28D1
946A08,oemDomainName=]

May 18 09:26:20.028 - smb received
00000: FF 53 4D 42 72 00 00 00 00 80 01 80 00 00 00 00  | SMBr...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 01 00  |..........j.....|
00020: 11 00 00 03 32 00 01 00 FF FF 00 00 00 00 01 00  |....2...  ......|
00030: 08 7D D0 07 01 02 00 00 00 CE 7A FA 77 FE C1 01  |.}-......+z·w -.|
00040: 2C 01 08 08 00 4E D6 6F 28 D1 94 6A 08           |,....N+o(-.j.   |

May 18 09:26:20.028 - smb tree connect warning
 requesting tree connect with unc=\\192.168.0.1\IPC$,service=?????
May 18 09:26:20.038 - smb session setup warning
 requesting session with accountName=GUEST,accountPassword=,primaryDomain=?
May 18 09:26:20.038 - smb sent
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCo
de=0x00000000,flags=0x0018,flags2=0x0001,tid=0,pid=40042,uid=0,mid=2,wordCount=1
3,byteCount=25,andxCommand=0x75,andxOffset=86,maxBufferSize=1300,maxMpxCount=10,
vcNumber=1,sessionKey=0,passwordLength=0,unicodePasswordLength=0,capabilities=20
,accountPassword=null,accountName=GUEST,primaryDomain=?,nativeOs=Windows 2000,na
tiveLanMan=foo]

May 18 09:26:20.038 - smb andx data
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode
=0x00000000,flags=0x0018,flags2=0x0000,tid=0,pid=40042,uid=0,mid=0,wordCount=4,b
yteCount=26,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,p
assword=,path=\\192.168.0.1\IPC$,service=?????]

May 18 09:26:20.038 - smb sent
00000: FF 53 4D 42 73 00 00 00 00 18 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 02 00  |..........j.....|
00020: 0D 75 00 56 00 14 05 0A 00 01 00 00 00 00 00 00  |.u.V............|
00030: 00 00 00 00 00 00 00 14 00 00 00 19 00 47 55 45  |.............GUE|
00040: 53 54 00 3F 00 57 69 6E 64 6F 77 73 20 32 30 30  |ST.?.Windows 200|
00050: 30 00 66 6F 6F 00 04 FF 00 00 00 00 00 01 00 1A  |0.foo.. ........|
00060: 00 00 5C 5C 31 39 32 2E 31 36 38 2E 30 2E 31 5C  |..\\192.168.0.1\|
00070: 49 50 43 24 00 3F 3F 3F 3F 3F 00                 |IPC$.?????.     |

May 18 09:26:20.098 - smb debugging
 new data read from socket
May 18 09:26:20.098 - smb received
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,
errorCode=Bad password,flags=0x0080,flags2=0x0001,tid=0,pid=40042,uid=0,mid=2,wo
rdCount=0,byteCount=0,andxCommand=0xFF,andxOffset=0,isLoggedInAsGuest=false,nati
veOs=,nativeLanMan=,primaryDomain=]

May 18 09:26:20.098 - smb received
00000: FF 53 4D 42 73 02 00 02 00 80 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 02 00  |..........j.....|
00020: 00 00 00                                         |...             |

May 18 09:26:20.108 - smb tree connect warning
 requesting tree connect with unc=\\192.168.0.1\IPC$,service=?????
May 18 09:26:20.108 - smb session setup warning
 requesting session with accountName=,accountPassword=,primaryDomain=?
May 18 09:26:20.108 - smb sent
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCo
de=0x00000000,flags=0x0018,flags2=0x0001,tid=0,pid=40042,uid=0,mid=3,wordCount=1
3,byteCount=20,andxCommand=0x75,andxOffset=81,maxBufferSize=1300,maxMpxCount=10,
vcNumber=1,sessionKey=0,passwordLength=0,unicodePasswordLength=0,capabilities=20
,accountPassword=null,accountName=,primaryDomain=?,nativeOs=Windows 2000,nativeL
anMan=foo]

May 18 09:26:20.108 - smb andx data
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode
=0x00000000,flags=0x0018,flags2=0x0000,tid=0,pid=40042,uid=0,mid=0,wordCount=4,b
yteCount=26,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,p
assword=,path=\\192.168.0.1\IPC$,service=?????]

May 18 09:26:20.108 - smb sent
00000: FF 53 4D 42 73 00 00 00 00 18 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 03 00  |..........j.....|
00020: 0D 75 00 51 00 14 05 0A 00 01 00 00 00 00 00 00  |.u.Q............|
00030: 00 00 00 00 00 00 00 14 00 00 00 14 00 00 3F 00  |..............?.|
00040: 57 69 6E 64 6F 77 73 20 32 30 30 30 00 66 6F 6F  |Windows 2000.foo|
00050: 00 04 FF 00 00 00 00 00 01 00 1A 00 00 5C 5C 31  |.. ..........\\1|
00060: 39 32 2E 31 36 38 2E 30 2E 31 5C 49 50 43 24 00  |92.168.0.1\IPC$.|
00070: 3F 3F 3F 3F 3F 00                                |?????.          |

May 18 09:26:20.108 - smb debugging
 new data read from socket_COM_S
May 18 09:26:20.108 - smb received
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,
errorCode=0x00000000,flags=0x0080,flags2=0x0001,tid=13,pid=40042,uid=26,mid=3,wo
rdCount=3,byteCount=34,andxCommand=0x75,andxOffset=75,isLoggedInAsGuest=true,nat
iveOs=NetWare 5.0,nativeLanMan=NetWare 5.0,primaryDomain=WORKGROUP]

May 18 09:26:20.108 - smb andx data
SmbComTreeConnectAndXResponse[command=SMB_COM_TREE_CONNECT_ANDX,received=true,er
rorCode=0x00000000,flags=0x0080,flags2=0x0001,tid=13,pid=40042,uid=26,mid=3,word
Count=3,byteCount=10,andxCommand=0xFF,andxOffset=0,supportSearchBits=false,share
IsInDfs=false,service=IPC,nativeFileSystem=NET50]

May 18 09:26:20.108 - smb received
00000: FF 53 4D 42 73 00 00 00 00 80 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 0D 00 6A 9C 1A 00 03 00  |..........j.....|
00020: 03 75 00 4B 00 01 00 22 00 4E 65 74 57 61 72 65  |.u.K...".NetWare|
00030: 20 35 2E 30 00 4E 65 74 57 61 72 65 20 35 2E 30  | 5.0.NetWare 5.0|
00040: 00 57 4F 52 4B 47 52 4F 55 50 00 03 FF 00 00 00  |.WORKGROUP.. ...|
00050: 00 00 0A 00 49 50 43 00 4E 45 54 35 30 00        |....IPC.NET50.  |

May 18 09:26:20.118 - smb sent
NetShareEnum[command=SMB_COM_TRANSACTION,received=false,errorCode=0x00000000,fla
gs=0x0018,flags2=0x0001,tid=13,pid=40042,uid=26,mid=4,wordCount=14,byteCount=32,
totalParameterCount=19,totalDataCount=0,maxParameterCount=8,maxDataCount=4096,ma
xSetupCount=0,flags=0x00,timeout=5000,parameterCount=19,parameterOffset=76,param
eterDisplacement=0,dataCount=0,dataOffset=96,dataDisplacement=0,setupCount=0,pad
=0,pad1=1]

May 18 09:26:20.118 - smb sent
00000: FF 53 4D 42 25 00 00 00 00 18 01 00 00 00 00 00  | SMB%...........|
00010: 00 00 00 00 00 00 00 00 0D 00 6A 9C 1A 00 04 00  |..........j.....|
00020: 0E 13 00 00 00 08 00 00 10 00 00 00 00 88 13 00  |................|
00030: 00 00 00 13 00 4C 00 00 00 00 00 00 00 20 00 5C  |.....L....... .\|
00040: 50 49 50 45 5C 4C 41 4E 4D 41 4E 00 00 00 57 72  |PIPE\LANMAN...Wr|
00050: 4C 65 68 00 42 31 33 42 57 7A 00 01 00 00 10     |Leh.B13BWz..... |

May 18 09:26:20.118 - smb debugging
 new data read from socket
May 18 09:26:20.118 - smb warning
ShareInfo1[netName=IPC$,type=0x0003,remark=Remote Inter Process Communication]
May 18 09:26:20.118 - smb warning
ShareInfo1[netName=Share1,type=0x0000,remark=Share1]
May 18 09:26:20.128 - smb received
NetShareEnumResponse[command=SMB_COM_TRANSACTION,received=true,errorCode=0x00000
000,flags=0x0080,flags2=0x0001,tid=13,pid=40042,uid=26,mid=4,wordCount=10,byteCo
unt=90,totalParameterCount=8,totalDataCount=82,parameterCount=8,parameterOffset=
55,parameterDisplacement=0,dataCount=82,dataOffset=63,dataDisplacement=0,setupCo
unt=0,pad=0,pad1=0,status=0,converter=0,entriesReturned=2,totalAvailableEntries=
2]

IPC$                                    dr-h-          0 Wed Dec 31 1969 7:00 PM

Share1                                  dr---          0 Wed Dec 31 1969 7:00 PM

2 items in 170ms
192.168.0.1> cd Share1
May 18 09:26:23.052 - smb tree connect warning
 requesting tree connect with unc=\\192.168.0.1\SHARE1,service=?????
May 18 09:26:23.062 - smb session setup warning
 requesting session with accountName=GUEST,accountPassword=,primaryDomain=?
May 18 09:26:23.062 - smb sent
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCo
de=0x00000000,flags=0x0018,flags2=0x0001,tid=0,pid=40042,uid=0,mid=5,wordCount=1
3,byteCount=25,andxCommand=0x75,andxOffset=86,maxBufferSize=1300,maxMpxCount=10,
vcNumber=1,sessionKey=0,passwordLength=0,unicodePasswordLength=0,capabilities=20
,accountPassword=null,accountName=GUEST,primaryDomain=?,nativeOs=Windows 2000,na
tiveLanMan=foo]

May 18 09:26:23.062 - smb andx data
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode
=0x00000000,flags=0x0018,flags2=0x0000,tid=0,pid=40042,uid=0,mid=0,wordCount=4,b
yteCount=28,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,p
assword=,path=\\192.168.0.1\SHARE1,service=?????]

May 18 09:26:23.062 - smb sent
00000: FF 53 4D 42 73 00 00 00 00 18 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 05 00  |..........j.....|
00020: 0D 75 00 56 00 14 05 0A 00 01 00 00 00 00 00 00  |.u.V............|
00030: 00 00 00 00 00 00 00 14 00 00 00 19 00 47 55 45  |.............GUE|
00040: 53 54 00 3F 00 57 69 6E 64 6F 77 73 20 32 30 30  |ST.?.Windows 200|
00050: 30 00 66 6F 6F 00 04 FF 00 00 00 00 00 01 00 1C  |0.foo.. ........|
00060: 00 00 5C 5C 31 39 32 2E 31 36 38 2E 30 2E 31 5C  |..\\192.168.0.1\|
00070: 53 48 41 52 45 31 00 3F 3F 3F 3F 3F 00           |SHARE1.?????.   |

May 18 09:26:23.072 - smb debugging
 new data read from socket
May 18 09:26:23.072 - smb received
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,
errorCode=Bad password,flags=0x0080,flags2=0x0001,tid=0,pid=40042,uid=0,mid=5,wo
rdCount=0,byteCount=0,andxCommand=0xFF,andxOffset=0,isLoggedInAsGuest=false,nati
veOs=,nativeLanMan=,primaryDomain=]

May 18 09:26:23.072 - smb received
00000: FF 53 4D 42 73 02 00 02 00 80 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 05 00  |..........j.....|
00020: 00 00 00                                         |...             |

Bad password for smb://192.168.0.1/Share1
username: admin
password: testing
May 18 09:26:26.307 - smb tree connect warning
 requesting tree connect with unc=\\192.168.0.1\SHARE1,service=?????
May 18 09:26:26.307 - smb session setup warning
 requesting session with accountName=ADMIN,accountPassword=,primaryDomain=?
May 18 09:26:26.327 - smb sent
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCo
de=0x00000000,flags=0x0018,flags2=0x0001,tid=0,pid=40042,uid=0,mid=6,wordCount=1
3,byteCount=73,andxCommand=0x75,andxOffset=134,maxBufferSize=1300,maxMpxCount=10
,vcNumber=1,sessionKey=0,passwordLength=24,unicodePasswordLength=24,capabilities
=20,accountPassword=[B at 683912,accountName=ADMIN,primaryDomain=?,nativeOs=Windows
 2000,nativeLanMan=foo]

May 18 09:26:26.327 - smb andx data
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode
=0x00000000,flags=0x0018,flags2=0x0000,tid=0,pid=40042,uid=0,mid=0,wordCount=4,b
yteCount=28,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,p
assword=,path=\\192.168.0.1\SHARE1,service=?????]

May 18 09:26:26.327 - smb sent
00000: FF 53 4D 42 73 00 00 00 00 18 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 00 00 06 00  |..........j.....|
00020: 0D 75 00 86 00 14 05 0A 00 01 00 00 00 00 00 18  |.u..............|
00030: 00 18 00 00 00 00 00 14 00 00 00 49 00 2A 0B 83  |...........I.*..|
00040: 96 02 75 B8 2D 2E 95 AA 18 81 28 E7 91 E2 BD FB  |..u+-..*..(t.G+v|
00050: 76 1D A3 9F 40 51 A0 DB 74 C0 BA A7 EC 26 92 DB  |v.ú. at Qá t+ º8&. |
00060: C9 AD FF 5D 6A 0C 50 30 0E 45 98 A5 4C 41 44 4D  |+¡ ]j.P0.E.ÑLADM|
00070: 49 4E 00 3F 00 57 69 6E 64 6F 77 73 20 32 30 30  |IN.?.Windows 200|
00080: 30 00 66 6F 6F 00 04 FF 00 00 00 00 00 01 00 1C  |0.foo.. ........|
00090: 00 00 5C 5C 31 39 32 2E 31 36 38 2E 30 2E 31 5C  |..\\192.168.0.1\|
000A0: 53 48 41 52 45 31 00 3F 3F 3F 3F 3F 00           |SHARE1.?????.   |

May 18 09:26:26.407 - smb debugging
 new data read from socket
May 18 09:26:26.417 - smb received
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,
errorCode=0x00000000,flags=0x0080,flags2=0x0001,tid=14,pid=40042,uid=28,mid=6,wo
rdCount=3,byteCount=34,andxCommand=0x75,andxOffset=75,isLoggedInAsGuest=false,na
tiveOs=NetWare 5.0,nativeLanMan=NetWare 5.0,primaryDomain=WORKGROUP]

May 18 09:26:26.417 - smb andx data
SmbComTreeConnectAndXResponse[command=SMB_COM_TREE_CONNECT_ANDX,received=true,er
rorCode=0x00000000,flags=0x0080,flags2=0x0001,tid=14,pid=40042,uid=28,mid=6,word
Count=3,byteCount=9,andxCommand=0xFF,andxOffset=0,supportSearchBits=false,shareI
sInDfs=false,service=A:,nativeFileSystem=NET50]

May 18 09:26:26.417 - smb received
00000: FF 53 4D 42 73 00 00 00 00 80 01 00 00 00 00 00  | SMBs...........|
00010: 00 00 00 00 00 00 00 00 0E 00 6A 9C 1C 00 06 00  |..........j.....|
00020: 03 75 00 4B 00 00 00 22 00 4E 65 74 57 61 72 65  |.u.K...".NetWare|
00030: 20 35 2E 30 00 4E 65 74 57 61 72 65 20 35 2E 30  | 5.0.NetWare 5.0|
00040: 00 57 4F 52 4B 47 52 4F 55 50 00 03 FF 00 00 00  |.WORKGROUP.. ...|
00050: 00 00 09 00 41 3A 00 4E 45 54 35 30 00           |....A:.NET50.   |

Share1> ls
May 18 09:26:29.041 - smb find warning
 find with path=\
May 18 09:26:29.041 - smb sent
Trans2FindFirst2[command=SMB_COM_TRANSACTION2,received=false,errorCode=0x0000000
0,flags=0x0018,flags2=0x0001,tid=14,pid=40042,uid=28,mid=7,wordCount=15,byteCoun
t=17,totalParameterCount=16,totalDataCount=0,maxParameterCount=10,maxDataCount=1
200,maxSetupCount=0,flags=0x00,timeout=0,parameterCount=16,parameterOffset=66,pa
rameterDisplacement=0,dataCount=0,dataOffset=82,dataDisplacement=0,setupCount=1,
pad=1,pad1=0,searchAttributes=0x16,searchCount=15,flags=0x00,informationLevel=0x
104,searchStorageType=0,filename=\\*]

May 18 09:26:29.051 - smb sent
00000: FF 53 4D 42 32 00 00 00 00 18 01 00 00 00 00 00  | SMB2...........|
00010: 00 00 00 00 00 00 00 00 0E 00 6A 9C 1C 00 07 00  |..........j.....|
00020: 0F 10 00 00 00 0A 00 B0 04 00 00 00 00 00 00 00  |....... ........|
00030: 00 00 00 10 00 42 00 00 00 00 00 01 00 01 00 11  |.....B..........|
00040: 00 00 16 00 0F 00 00 00 04 01 00 00 00 00 5C 5C  |..............\\|
00050: 2A 00                                            |*.              |

May 18 09:26:29.051 - smb debugging
 new data read from socket
May 18 09:26:29.051 - smb received
Trans2FindFirst2Response[command=SMB_COM_TRANSACTION2,received=true,errorCode=Fi
le not found,flags=0x0080,flags2=0x0001,tid=14,pid=40042,uid=28,mid=7,wordCount=
0,byteCount=0,totalParameterCount=0,totalDataCount=0,parameterCount=0,parameterO
ffset=0,parameterDisplacement=0,dataCount=0,dataOffset=0,dataDisplacement=0,setu
pCount=0,pad=0,pad1=0,sid=0,searchCount=0,isEndOfSearch=false,eaErrorOffset=0,la
stNameOffset=0,lastName=null]

jcifs.smb.SmbException: File not found
        at jcifs.smb.SmbTransport.sendTransaction(SmbTransport.java:628)
        at jcifs.smb.SmbSession.sendTransaction(SmbSession.java:117)
        at jcifs.smb.SmbTree.sendTransaction(SmbTree.java:65)
        at jcifs.smb.SmbFile.sendTransaction(SmbFile.java:470)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1219)
        at jcifs.smb.SmbFile.listFiles(SmbFile.java:1207)
        at SmbShell.run(SmbShell.java:132)
        at SmbShell.main(SmbShell.java:183)
Share1> May 18 09:26:44.052 - smb sent
SmbComTreeDisconnect[command=SMB_COM_TREE_DISCONNECT,received=false,errorCode=0x
00000000,flags=0x0018,flags2=0x0001,tid=13,pid=40042,uid=26,mid=8,wordCount=0,by
teCount=0]

May 18 09:26:44.052 - smb sent
00000: FF 53 4D 42 71 00 00 00 00 18 01 00 00 00 00 00  | SMBq...........|
00010: 00 00 00 00 00 00 00 00 0D 00 6A 9C 1A 00 08 00  |..........j.....|
00020: 00 00 00                                         |...             |

May 18 09:26:44.052 - smb sent
SmbComLogoffAndX[command=SMB_COM_LOGOFF_ANDX,received=false,errorCode=0x00000000
,flags=0x0018,flags2=0x0001,tid=0,pid=40042,uid=26,mid=9,wordCount=2,byteCount=0
,andxCommand=0xFF,andxOffset=0]

May 18 09:26:44.052 - smb sent
00000: FF 53 4D 42 74 00 00 00 00 18 01 00 00 00 00 00  | SMBt...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 1A 00 09 00  |..........j.....|
00020: 02 FF 00 00 00 00 00                             |. .....         |

May 18 09:26:44.052 - smb sent
SmbComTreeDisconnect[command=SMB_COM_TREE_DISCONNECT,received=false,errorCode=0x
00000000,flags=0x0018,flags2=0x0001,tid=14,pid=40042,uid=28,mid=10,wordCount=0,b
yteCount=0]

May 18 09:26:44.052 - smb sent
00000: FF 53 4D 42 71 00 00 00 00 18 01 00 00 00 00 00  | SMBq...........|
00010: 00 00 00 00 00 00 00 00 0E 00 6A 9C 1C 00 0A 00  |..........j.....|
00020: 00 00 00                                         |...             |

May 18 09:26:44.052 - smb sent
SmbComLogoffAndX[command=SMB_COM_LOGOFF_ANDX,received=false,errorCode=0x00000000
,flags=0x0018,flags2=0x0001,tid=0,pid=40042,uid=28,mid=11,wordCount=2,byteCount=
0,andxCommand=0xFF,andxOffset=0]

May 18 09:26:44.052 - smb sent
00000: FF 53 4D 42 74 00 00 00 00 18 01 00 00 00 00 00  | SMBt...........|
00010: 00 00 00 00 00 00 00 00 00 00 6A 9C 1C 00 0B 00  |..........j.....|
00020: 02 FF 00 00 00 00 00                             |. .....         |

May 18 09:26:44.052 - netbios socket closed
NbtSocket[addr=0.0.0.0<00>/192.168.0.1,port=139,localport=2879]





More information about the jcifs mailing list