[jcifs] can't get workgroup list with 0.9.0b

frank jenkins fjenkins873 at hotmail.com
Fri May 21 17:32:51 GMT 2004


>supplied otherwise GUEST and fail over to trying "null" credentials. Maybe
>if the GUEST account is locked out jCIFS gives up too quickly?

This appears to be exactly what is happening.

I ran 0.9 with -Djcifs.util.loglevel=10 and right after the first attempt 
with guest it throws the exception. I ran 0.8 with -Djcifs.util.log=ALL and 
it makes a second attempt with an empty user which succeeds.

I've attached a quick example, test script, and the output from both runs. 
These seem to include partial packet captures. Let me know if you still want 
me to post a full packet capture of each.

_________________________________________________________________
Watch LIVE baseball games on your computer with MLB.TV, included with MSN 
Premium! http://join.msn.click-url.com/go/onm00200439ave/direct/01/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SmbTest.java
Type: text/x-java
Size: 183 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20040521/6edcca8d/SmbTest.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.sh
Type: application/x-sh
Size: 194 bytes
Desc: not available
Url : http://lists.samba.org/archive/jcifs/attachments/20040521/6edcca8d/test.sh
-------------- next part --------------
#properties loaded
#Wed May 19 07:28:19 EDT 2004
line.separator=\n
user.name=jenkins
user.dir=/home/jenkins
user.timezone=
user.home=/home/jenkins
user.country=US
user.language=en
file.separator=/
file.encoding.pkg=sun.io
sun.boot.library.path=/opt/j2sdk1.4.2_03/jre/lib/i386
sun.boot.class.path=/opt/j2sdk1.4.2_03/jre/lib/rt.jar:/opt/j2sdk1.4.2_03/jre/lib/i18n.jar:/opt/j2sdk1.4.2_03/jre/lib/sunrsasign.jar:/opt/j2sdk1.4.2_03/jre/lib/jsse.jar:/opt/j2sdk1.4.2_03/jre/lib/jce.jar:/opt/j2sdk1.4.2_03/jre/lib/charsets.jar:/opt/j2sdk1.4.2_03/jre/classes
sun.arch.data.model=32
sun.cpu.endian=little
sun.cpu.isalist=
sun.os.patch.level=unknown
sun.io.unicode.encoding=UnicodeLittle
sun.java2d.fontpath=
java.version=1.4.2_03
java.home=/opt/j2sdk1.4.2_03/jre
java.ext.dirs=/opt/j2sdk1.4.2_03/jre/lib/ext
java.vm.version=1.4.2_03-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.endorsed.dirs=/opt/j2sdk1.4.2_03/jre/lib/endorsed
java.class.version=48.0
java.class.path=jcifs-0.8.0b.jar:/opt/j2sdk1.4.2_03/jre/lib/rt.jar:/opt/javaclasses/getopt.jar:.:/opt/javaclasses/log4j-1.2.6.jar
java.runtime.version=1.4.2_03-b02
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
java.specification.version=1.4
java.specification.name=Java Platform API Specification
java.specification.vendor=Sun Microsystems Inc.
java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
java.io.tmpdir=/tmp
java.awt.printerjob=sun.print.PSPrinterJob
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.library.path=/opt/j2sdk1.4.2_03/jre/lib/i386/client:/opt/j2sdk1.4.2_03/jre/lib/i386:/opt/j2sdk1.4.2_03/jre/../lib/i386
java.vendor.url=http://java.sun.com/
jcifs.util.log=ALL
os.version=2.4.18-bf2.4
os.name=Linux
os.arch=i386
path.separator=:

May 19 07:28:19.948 - name service address cache
0.0.0.0<00> 0.0.0.0<00>/0.0.0.0
JCIFS0_1_94<00> JCIFS0_1_94<00>/127.0.0.1

May 19 07:28:20.016 - nbt name service packet sent
NameQueryRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=..__MSBROWSE__.<01>,questionType=0x0020,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
May 19 07:28:20.017 - datagram packet sent to: 255.255.255.255
00000: 00 01 01 10 00 01 00 00 00 00 00 00 20 41 42 41  |............ ABA|
00010: 43 46 50 46 50 45 4E 46 44 45 43 46 43 45 50 46  |CFPFPENFDECFCEPF|
00020: 48 46 44 45 46 46 50 46 50 41 43 41 42 00 00 20  |HFDEFFPFPACAB.. |
00030: 00 01                                            |..              |

May 19 07:28:20.019 - nbt name service debugging
new data read from socket
May 19 07:28:20.021 - nbt name service packet receviced
NameQueryResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=false,resultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionClass=IN,recordName=..__MSBROWSE__.<01>,recordType=0x0020,recordClass=IN,ttl=300000,rDataLength=6,addrEntry=..__MSBROWSE__.<01>/10.0.64.5]
May 19 07:28:20.022 - datagram packet received from: 10.0.64.5
00000: 00 01 85 00 00 00 00 01 00 00 00 00 20 41 42 41  |............ ABA|
00010: 43 46 50 46 50 45 4E 46 44 45 43 46 43 45 50 46  |CFPFPENFDECFCEPF|
00020: 48 46 44 45 46 46 50 46 50 41 43 41 42 00 00 20  |HFDEFFPFPACAB.. |
00030: 00 01 00 04 93 E0 00 06 E0 00 0A 00 40 A8        |.....?..?...@?  |

May 19 07:28:20.025 - name service address cache
0.0.0.0<00> 0.0.0.0<00>/0.0.0.0
..__MSBROWSE__.<01> ..__MSBROWSE__.<01>/10.0.64.5
JCIFS0_1_94<00> JCIFS0_1_94<00>/127.0.0.1

May 19 07:28:20.064 - nbt name service debugging
new data read from socket
May 19 07:28:20.065 - nbt name service debugging
new data read from socket
May 19 07:28:20.067 - nbt name service debugging
new data read from socket
May 19 07:28:20.067 - nbt name service debugging
new data read from socket
May 19 07:28:20.068 - nbt name service debugging
new data read from socket
May 19 07:28:20.223 - smb negotiation warning
requesting negotiation with 0.0.0.0<00>/10.0.64.5
May 19 07:28:20.373 - session service warning
session established ok with 0.0.0.0<00>/10.0.64.5
May 19 07:28:20.391 - smb sent
SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0x00000000,flags=0x0018,flags2=0x8003,tid=0,pid=36107,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT 
LM 0.12]

May 19 07:28:20.392 - smb sent
00000: FF 53 4D 42 72 00 00 00 00 18 03 80 00 00 00 00  |?SMBr...........|
00010: 00 00 00 00 00 00 00 00 00 00 0B 8D 00 00 01 00  |................|
00020: 00 0C 00 02 4E 54 20 4C 4D 20 30 2E 31 32 00     |....NT LM 0.12. |

May 19 07:28:20.393 - smb transport warning
new data read from socket
May 19 07:28:20.472 - smb packet format warning
byteCount=40 but readBytesWireFormat returned 26
May 19 07:28:20.475 - smb received
SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=true,errorCode=0x00000000,flags=0x0098,flags2=0x8003,tid=0,pid=36107,uid=0,mid=1,wordCount=17,byteCount=40,wordCount=17,dialectIndex=0,securityMode=0x3,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0000F3FD,serverTime=Wed 
May 19 08:14:48 EDT 
2004,serverTimeZone=240,encryptionKeyLength=8,byteCount=40,encryptionKey=0xE871360D6099DB5C,oemDomainName=TD]

May 19 07:28:20.476 - smb received
00000: FF 53 4D 42 72 00 00 00 00 98 03 80 00 00 00 00  |?SMBr...........|
00010: 00 00 00 00 00 00 00 00 00 00 0B 8D 00 00 01 00  |................|
00020: 11 00 00 03 32 00 01 00 04 41 00 00 00 00 01 00  |....2....A......|
00030: 00 00 00 00 FD F3 00 00 10 B6 60 E1 9A 3D C4 01  |....??...?`?.=?.|
00040: F0 00 08 28 00 E8 71 36 0D 60 99 DB 5C 54 00 44  |?..(.?q6.`.?\T.D|
00050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00060: 00 48 00 4F 00 53 00 00 00 00 00 00 00           |.H.O.S.......   |

May 19 07:28:20.485 - smb tree connect warning
requesting tree connect with unc=\\10.0.64.5\IPC$,service=?????
May 19 07:28:20.498 - smb session setup warning
requesting session with accountName=GUEST,primaryDomain=?
May 19 07:28:20.566 - smb sent
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0x00000000,flags=0x0018,flags2=0x8003,tid=0,pid=36107,uid=0,mid=2,wordCount=13,byteCount=41,andxCommand=0x75,andxOffset=102,maxBufferSize=5000,maxMpxCount=10,vcNumber=1,sessionKey=0,passwordLength=0,unicodePasswordLength=0,capabilities=20,accountName=GUEST,primaryDomain=?,nativeOs=Linux,nativeLanMan=jCIFS]

May 19 07:28:20.567 - smb andx data
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=0x00000000,flags=0x0018,flags2=0x0000,tid=0,pid=36107,uid=0,mid=0,wordCount=4,byteCount=45,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\10.0.64.5\IPC$,service=?????]

May 19 07:28:20.571 - smb sent
00000: FF 53 4D 42 73 00 00 00 00 18 03 80 00 00 00 00  |?SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 0B 8D 00 00 02 00  |................|
00020: 0D 75 00 66 00 88 13 0A 00 01 00 00 00 00 00 00  |.u.f............|
00030: 00 00 00 00 00 00 00 14 00 00 00 29 00 00 47 00  |...........)..G.|
00040: 55 00 45 00 53 00 54 00 00 00 3F 00 00 00 4C 00  |U.E.S.T...?...L.|
00050: 69 00 6E 00 75 00 78 00 00 00 6A 00 43 00 49 00  |i.n.u.x...j.C.I.|
00060: 46 00 53 00 00 00 04 FF 00 00 00 00 00 01 00 2D  |F.S....?.......-|
00070: 00 00 5C 00 5C 00 31 00 30 00 2E 00 30 00 2E 00  |..\.\.1.0...0...|
00080: 36 00 34 00 2E 00 35 00 00 00 00 00 5C 00 49 00  |6.4...5.....\.I.|
00090: 50 00 43 00 24 00 00 00 3F 3F 3F 3F 3F 00        |P.C.$...?????.  |

May 19 07:28:20.800 - smb transport warning
new data read from socket
May 19 07:28:20.802 - smb received
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,errorCode=Access 
denied,flags=0x0098,flags2=0x8003,tid=0,pid=36107,uid=0,mid=2,wordCount=0,byteCount=0,andxCommand=0xFF,andxOffset=0,isLoggedInAsGuest=false,nativeOs=,nativeLanMan=,primaryDomain=]

May 19 07:28:20.803 - smb received
00000: FF 53 4D 42 73 01 00 05 00 98 03 80 00 00 00 00  |?SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 0B 8D 00 00 02 00  |................|
00020: 00 00 00                                         |...             |

May 19 07:28:20.806 - smb tree connect warning
requesting tree connect with unc=\\10.0.64.5\IPC$,service=?????
May 19 07:28:20.806 - smb session setup warning
requesting session with accountName=,primaryDomain=
May 19 07:28:20.817 - smb sent
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=0x00000000,flags=0x0018,flags2=0x8003,tid=0,pid=36107,uid=0,mid=3,wordCount=13,byteCount=29,andxCommand=0x75,andxOffset=90,maxBufferSize=5000,maxMpxCount=10,vcNumber=1,sessionKey=0,passwordLength=0,unicodePasswordLength=0,capabilities=20,accountName=,primaryDomain=,nativeOs=Linux,nativeLanMan=jCIFS]

May 19 07:28:20.818 - smb andx data
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=0x00000000,flags=0x0018,flags2=0x0000,tid=0,pid=36107,uid=0,mid=0,wordCount=4,byteCount=45,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\10.0.64.5\IPC$,service=?????]

May 19 07:28:20.818 - smb sent
00000: FF 53 4D 42 73 00 00 00 00 18 03 80 00 00 00 00  |?SMBs...........|
00010: 00 00 00 00 00 00 00 00 00 00 0B 8D 00 00 03 00  |................|
00020: 0D 75 00 5A 00 88 13 0A 00 01 00 00 00 00 00 00  |.u.Z............|
00030: 00 00 00 00 00 00 00 14 00 00 00 1D 00 00 00 00  |................|
00040: 00 00 4C 00 69 00 6E 00 75 00 78 00 00 00 6A 00  |..L.i.n.u.x...j.|
00050: 43 00 49 00 46 00 53 00 00 00 04 FF 00 00 00 00  |C.I.F.S....?....|
00060: 00 01 00 2D 00 00 5C 00 5C 00 31 00 30 00 2E 00  |...-..\.\.1.0...|
00070: 30 00 2E 00 36 00 34 00 2E 00 35 00 00 00 00 00  |0...6.4...5.....|
00080: 5C 00 49 00 50 00 43 00 24 00 00 00 3F 3F 3F 3F  |\.I.P.C.$...????|
00090: 3F 00                                            |?.              |

May 19 07:28:20.819 - smb transport warning
new data read from socket
May 19 07:28:20.855 - smb received
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,errorCode=0x00000000,flags=0x0098,flags2=0x8003,tid=20482,pid=36107,uid=38914,mid=3,wordCount=3,byteCount=94,andxCommand=0x75,andxOffset=135,isLoggedInAsGuest=false,nativeOs=Windows 
5.0,nativeLanMan=Windows 2000 LAN Manager,primaryDomain=TD]

May 19 07:28:20.857 - smb andx data
SmbComTreeConnectAndXResponse[command=SMB_COM_TREE_CONNECT_ANDX,received=true,errorCode=0x00000000,flags=0x0098,flags2=0x8003,tid=20482,pid=36107,uid=38914,mid=3,wordCount=3,byteCount=6,andxCommand=0xFF,andxOffset=150,supportSearchBits=true,shareIsInDfs=false,service=IPC,nativeFileSystem=]

May 19 07:28:20.858 - smb received
00000: FF 53 4D 42 73 00 00 00 00 98 03 80 00 00 00 00  |?SMBs...........|
00010: 00 00 00 00 00 00 00 00 02 50 0B 8D 02 98 03 00  |.........P......|
00020: 03 75 00 87 00 00 00 5E 00 C2 57 00 69 00 6E 00  |.u.....^.?W.i.n.|
00030: 64 00 6F 00 77 00 73 00 20 00 35 00 2E 00 30 00  |d.o.w.s. .5...0.|
00040: 00 00 57 00 69 00 6E 00 64 00 6F 00 77 00 73 00  |..W.i.n.d.o.w.s.|
00050: 20 00 32 00 30 00 30 00 30 00 20 00 4C 00 41 00  | .2.0.0.0. .L.A.|
00060: 4E 00 20 00 4D 00 61 00 6E 00 61 00 67 00 65 00  |N. .M.a.n.a.g.e.|
00070: 72 00 00 00 54 00 44 00 00 00 00 00 00 00 00 00  |r...T.D.........|
00080: 00 00 00 00 00 00 00 03 FF 00 96 00 01 00 06 00  |........?.......|
00090: 49 50 43 00 00 00                                |IPC...          |

May 19 07:28:20.890 - smb sent
NetServerEnum2[command=SMB_COM_TRANSACTION,received=false,errorCode=0x00000000,flags=0x0018,flags2=0x8003,tid=20482,pid=36107,uid=38914,mid=4,wordCount=14,byteCount=63,totalParameterCount=36,totalDataCount=0,maxParameterCount=8,maxDataCount=65023,maxSetupCount=0,flags=0x00,timeout=5000,parameterCount=36,parameterOffset=90,parameterDisplacement=0,dataCount=0,dataOffset=126,dataDisplacement=0,setupCount=0,pad=0,pad1=0,name=\PIPE\LANMAN,serverTypes=SV_TYPE_DOMAIN_ENUM]

May 19 07:28:20.891 - smb sent
00000: FF 53 4D 42 25 00 00 00 00 18 03 80 00 00 00 00  |?SMB%...........|
00010: 00 00 00 00 00 00 00 00 02 50 0B 8D 02 98 04 00  |.........P......|
00020: 0E 24 00 00 00 08 00 FF FD 00 00 00 00 88 13 00  |.$.....??.......|
00030: 00 00 00 24 00 5A 00 00 00 00 00 00 00 3F 00 00  |...$.Z.......?..|
00040: 5C 00 50 00 49 00 50 00 45 00 5C 00 4C 00 41 00  |\.P.I.P.E.\.L.A.|
00050: 4E 00 4D 00 41 00 4E 00 00 00 68 00 57 72 4C 65  |N.M.A.N...h.WrLe|
00060: 68 44 7A 00 42 31 36 42 42 44 7A 00 01 00 FF FD  |hDz.B16BBDz...??|
00070: 00 00 00 80 54 44 00 00 00 00 00 00 00 00        |....TD........  |

May 19 07:28:20.892 - smb transport warning
new data read from socket
May 19 07:28:20.901 - net server enum response entry
ServerInfo1[name=TD,versionMajor=3,versionMinor=10,type=0x80001000,commentOrMasterBrowser=HOS]
May 19 07:28:20.906 - smb received
NetServerEnum2Response[command=SMB_COM_TRANSACTION,received=true,errorCode=0x00000000,flags=0x0098,flags2=0x8003,tid=20482,pid=36107,uid=38914,mid=4,wordCount=10,byteCount=177,totalParameterCount=8,totalDataCount=168,parameterCount=8,parameterOffset=56,parameterDisplacement=0,dataCount=168,dataOffset=64,dataDisplacement=0,setupCount=0,pad=1,pad1=0,status=0,converter=64855,entriesReturned=1,totalAvailableEntries=1]


-------------- next part --------------
#JCIFS PROPERTIES
#Wed May 19 07:28:26 EDT 2004
java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path=/opt/j2sdk1.4.2_03/jre/lib/i386
java.vm.version=1.4.2_03-b02
java.vm.vendor=Sun Microsystems Inc.
java.vendor.url=http\://java.sun.com/
path.separator=\:
java.vm.name=Java HotSpot(TM) Client VM
file.encoding.pkg=sun.io
user.country=US
sun.os.patch.level=unknown
java.vm.specification.name=Java Virtual Machine Specification
user.dir=/home/jenkins
java.runtime.version=1.4.2_03-b02
java.awt.graphicsenv=sun.awt.X11GraphicsEnvironment
java.endorsed.dirs=/opt/j2sdk1.4.2_03/jre/lib/endorsed
os.arch=i386
java.io.tmpdir=/tmp
line.separator=\n
java.vm.specification.vendor=Sun Microsystems Inc.
os.name=Linux
sun.java2d.fontpath=
java.library.path=/opt/j2sdk1.4.2_03/jre/lib/i386/client\:/opt/j2sdk1.4.2_03/jre/lib/i386\:/opt/j2sdk1.4.2_03/jre/../lib/i386
java.specification.name=Java Platform API Specification
java.class.version=48.0
java.util.prefs.PreferencesFactory=java.util.prefs.FileSystemPreferencesFactory
os.version=2.4.18-bf2.4
user.home=/home/jenkins
user.timezone=
java.awt.printerjob=sun.print.PSPrinterJob
file.encoding=ANSI_X3.4-1968
java.specification.version=1.4
jcifs.util.loglevel=10
user.name=jenkins
java.class.path=/opt/j2sdk1.4.2_03/jre/lib/rt.jar\:/opt/javaclasses/getopt.jar\:.\:/opt/javaclasses/log4j-1.2.6.jar
java.vm.specification.version=1.0
sun.arch.data.model=32
java.home=/opt/j2sdk1.4.2_03/jre
java.specification.vendor=Sun Microsystems Inc.
user.language=en
java.vm.info=mixed mode
java.version=1.4.2_03
java.ext.dirs=/opt/j2sdk1.4.2_03/jre/lib/ext
sun.boot.class.path=/opt/j2sdk1.4.2_03/jre/lib/rt.jar\:/opt/j2sdk1.4.2_03/jre/lib/i18n.jar\:/opt/j2sdk1.4.2_03/jre/lib/sunrsasign.jar\:/opt/j2sdk1.4.2_03/jre/lib/jsse.jar\:/opt/j2sdk1.4.2_03/jre/lib/jce.jar\:/opt/j2sdk1.4.2_03/jre/lib/charsets.jar\:/opt/j2sdk1.4.2_03/jre/classes
java.vendor=Sun Microsystems Inc.
file.separator=/
java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
sun.cpu.endian=little
sun.io.unicode.encoding=UnicodeLittle
sun.cpu.isalist=
NameQueryRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=true,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=..__MSBROWSE__.<01>,questionType=0x0020,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
00000: 00 01 01 10 00 01 00 00 00 00 00 00 20 41 42 41  |............ ABA|
00010: 43 46 50 46 50 45 4E 46 44 45 43 46 43 45 50 46  |CFPFPENFDECFCEPF|
00020: 48 46 44 45 46 46 50 46 50 41 43 41 42 00 00 20  |HFDEFFPFPACAB.. |
00030: 00 01                                            |..              |

NetBIOS: new data read from socket
NameQueryResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false,isRecurAvailable=false,isRecurDesired=true,isBroadcast=false,resultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionClass=IN,recordName=..__MSBROWSE__.<01>,recordType=0x0020,recordClass=IN,ttl=300000,rDataLength=6,addrEntry=..__MSBROWSE__.<01>/10.0.64.5]
00000: 00 01 85 00 00 00 00 01 00 00 00 00 20 41 42 41  |............ ABA|
00010: 43 46 50 46 50 45 4E 46 44 45 43 46 43 45 50 46  |CFPFPENFDECFCEPF|
00020: 48 46 44 45 46 46 50 46 50 41 43 41 42 00 00 20  |HFDEFFPFPACAB.. |
00030: 00 01 00 04 93 E0 00 06 E0 00 0A 00 40 A8        |.....?..?...@?  |

NetBIOS: new data read from socket
NetBIOS: new data read from socket
NetBIOS: new data read from socket
NetBIOS: new data read from socket
NetBIOS: new data read from socket
requesting negotiation with 0.0.0.0<00>/10.0.64.5
session established ok with 0.0.0.0<00>/10.0.64.5
SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=The 
operation completed 
successfully.,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=18305,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT 
LM 0.12]
00000: 00 00 00 2F FF 53 4D 42 72 00 00 00 00 18 03 C0  |.../?SMBr......?|
00010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81 47  |...............G|
00020: 00 00 01 00 00 0C 00 02 4E 54 20 4C 4D 20 30     |........NT LM 0 |

new data read from socket: 0.0.0.0<00>/10.0.64.5
byteCount=40 but readBytesWireFormat returned 26
SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=true,errorCode=The 
operation completed 
successfully.,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=18305,uid=0,mid=1,wordCount=17,byteCount=40,wordCount=17,dialectIndex=0,securityMode=0x3,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0000F3FD,serverTime=Wed 
May 19 08:14:56 EDT 
2004,serverTimeZone=240,encryptionKeyLength=8,byteCount=40,encryptionKey=0x2492A6E30E19E405,oemDomainName=TD]
00000: FF 53 4D 42 72 00 00 00 00 98 03 C0 00 00 00 00  |?SMBr......?....|
00010: 00 00 00 00 00 00 00 00 00 00 81 47 00 00 01 00  |...........G....|
00020: 11 00 00 03 32 00 01 00 04 41 00 00 00 00 01 00  |....2....A......|
00030: 00 00 00 00 FD F3 00 00 10 46 F6 E5 9A 3D C4 01  |....??...F??.=?.|
00040: F0 00 08 28 00 24 92 A6 E3 0E 19 E4 05 54 00 44  |?..(.$.??..?.T.D|
00050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
00060: 00 48 00 4F 00 53 00 00 00 00 00 00 00           |.H.O.S.......   |

treeConnect: unc=\\10.0.64.5\IPC$,service=?????
sessionSetup: accountName=GUEST,primaryDomain=?
SmbComSessionSetupAndX[command=SMB_COM_SESSION_SETUP_ANDX,received=false,errorCode=The 
operation completed 
successfully.,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=18305,uid=0,mid=2,wordCount=13,byteCount=41,andxCommand=0x75,andxOffset=102,snd_buf_size=5000,maxMpxCount=10,VC_NUMBER=1,sessionKey=0,passwordLength=0,unicodePasswordLength=0,capabilities=4180,accountName=GUEST,primaryDomain=?,NATIVE_OS=Linux,NATIVE_LANMAN=jCIFS]
SmbComTreeConnectAndX[command=SMB_COM_TREE_CONNECT_ANDX,received=false,errorCode=The 
operation completed 
successfully.,flags=0x0018,flags2=0x0000,signSeq=0,tid=0,pid=18305,uid=0,mid=0,wordCount=4,byteCount=45,andxCommand=0xFF,andxOffset=0,disconnectTid=false,passwordLength=1,password=,path=\\10.0.64.5\IPC$,service=?????]
00000: 00 00 00 9E FF 53 4D 42 73 00 00 00 00 18 03 C0  |....?SMBs......?|
00010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 81 47  |...............G|
00020: 00 00 02 00 0D 75 00 66 00 88 13 0A 00 01 00 00  |.....u.f........|
00030: 00 00 00 00 00 00 00 00 00 00 00 54 10 00 00 29  |...........T...)|
00040: 00 00 47 00 55 00 45 00 53 00 54 00 00 00 3F 00  |..G.U.E.S.T...?.|
00050: 00 00 4C 00 69 00 6E 00 75 00 78 00 00 00 6A 00  |..L.i.n.u.x...j.|
00060: 43 00 49 00 46 00 53 00 00 00 04 FF 00 00 00 00  |C.I.F.S....?....|
00070: 00 01 00 2D 00 00 5C 00 5C 00 31 00 30 00 2E 00  |...-..\.\.1.0...|
00080: 30 00 2E 00 36 00 34 00 2E 00 35 00 00 00 00 00  |0...6.4...5.....|
00090: 5C 00 49 00 50 00 43 00 24 00 00 00 3F 3F        |\.I.P.C.$...??  |

new data read from socket: 0.0.0.0<00>/10.0.64.5
SmbComSessionSetupAndXResponse[command=SMB_COM_SESSION_SETUP_ANDX,received=true,errorCode=The 
referenced account is currently locked out and may not be logged on 
to.,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=18305,uid=0,mid=2,wordCount=0,byteCount=0,andxCommand=0xFF,andxOffset=0,isLoggedInAsGuest=false,nativeOs=,nativeLanMan=,primaryDomain=]
00000: FF 53 4D 42 73 34 02 00 C0 98 03 C0 00 00 00 00  |?SMBs4..?..?....|
00010: 00 00 00 00 00 00 00 00 00 00 81 47 00 00 02 00  |...........G....|
00020: 00 00 00                                         |...             |

Exception in thread "main" jcifs.smb.SmbException: The referenced account is 
currently locked out and may not be logged on to.
	at jcifs.smb.SmbTransport.send(SmbTransport.java:663)
	at jcifs.smb.SmbSession.sessionSetup(SmbSession.java:178)
	at jcifs.smb.SmbSession.send(SmbSession.java:138)
	at jcifs.smb.SmbTree.treeConnect(SmbTree.java:134)
	at jcifs.smb.SmbFile.connect(SmbFile.java:746)
	at jcifs.smb.SmbFile.connect0(SmbFile.java:720)
	at jcifs.smb.SmbFile.doNetEnum(SmbFile.java:1526)
	at jcifs.smb.SmbFile.list(SmbFile.java:1470)
	at jcifs.smb.SmbFile.list(SmbFile.java:1375)
	at SmbTest.main(SmbTest.java:17)



More information about the jcifs mailing list