[jcifs] NtlmFilter failing

jbaker-jcifs at javasystemsolutions.com jbaker-jcifs at javasystemsolutions.com
Wed Jan 17 11:33:10 GMT 2007


Hello,

I have a bizarre problem where my NtlmFilter is not authenticating with an NT 
domain. The domain is called TCAD and I've set up the web.xml:

      <init-param>
        <param-name>jcifs.http.domainController</param-name>
        <param-value>131.115.18.107</param-value>
      </init-param>

      <init-param>
          <param-name>jcifs.smb.client.domain</param-name>
          <param-value>TCAD</param-value>
      </init-param>

      <init-param>
        <param-name>jcifs.encoding</param-name>
        <param-value>cp1252</param-value>
      </init-param>

I've pasted the logging below - can anyone tell me why authentication is not 
taking place? The exception seems a little odd...

Many thanks,


John

SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=51925,uid=0,mid=1,wordCount=0,byteCount=12,wordCount=0,dialects=NT 
LM 0.12]
New data read: Transport1[0.0.0.0<00>/131.115.18.107:0]
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 D5 CA 00 00 01 00  |..........ÕÊ....|

SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=51925,uid=0,mid=1,wordCount=17,byteCount=40,wordCount=17,dialectIndex=0,securityMode=0xF,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0001F3FD,serverTime=Mon 
Jan 15 12:15:25 CET 
2007,serverTimeZone=65476,encryptionKeyLength=8,byteCount=40,encryptionKey=0xC7D2E24F85ABF11E,oemDomainName=TCAD]
NodeStatusRequest[nameTrnId=1,isResponse=false,opCode=QUERY,isAuthAnswer=false,isTruncated=false,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=1,answerCount=0,authorityCount=0,additionalCount=0,questionName=*              
<00>,questionType=0x0021,questionClass=IN,recordName=null,recordType=0x0000,recordClass=0x0000,ttl=0,rDataLength=0]
00000: 00 01 00 00 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                                            |..              |

NetBIOS: new data read from socket
NodeStatusResponse[nameTrnId=1,isResponse=true,opCode=QUERY,isAuthAnswer=true,isTruncated=false,isRecurAvailable=false,isRecurDesired=false,isBroadcast=false,resultCode=0,questionCount=0,answerCount=1,authorityCount=0,additionalCount=0,questionName=null,questionType=0x0000,questionClass=IN,recordName=*              
<00>,recordType=0x0021,recordClass=IN,ttl=0,rDataLength=137]
00000: 00 01 84 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 89 05 53 45 48 41 4E 32 30  |.........SEHAN20|
00040: 33 41 44 20 20 20 20 20 00 44 00 54 43 41 44 20  |3AD     .D.TCAD |
00050: 20 20 20 20 20 20 20 20 20 20 00 C4 00 54 43 41  |          .Ä.TCA|
00060: 44 20 20 20 20 20 20 20 20 20 20 20 1C C4 00 53  |D           .Ä.S|
00070: 45 48 41 4E 32 30 33 41 44 20 20 20 20 20 20 44  |EHAN203AD      D|
00080: 00 54 43 41 44 20 20 20 20 20 20 20 20 20 20 20  |.TCAD           |
00090: 1E C4 00 00 0E 7F AF 21 CA 00 00 00 00 00 00 00  |.Ä....¯!Ê.......|
000A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  |................|
000D0: 00 00 00                                         |...             |

java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(Unknown Source)
	at jcifs.util.transport.Transport.readn(Transport.java:29)
	at jcifs.smb.SmbTransport.peekKey(SmbTransport.java:352)
	at jcifs.util.transport.Transport.loop(Transport.java:100)
	at jcifs.util.transport.Transport.run(Transport.java:265)
	at java.lang.Thread.run(Unknown Source)
SmbComNegotiate[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0018,flags2=0xC003,signSeq=0,tid=0,pid=51925,uid=0,mid=2,wordCount=0,byteCount=12,wordCount=0,dialects=NT 
LM 0.12]
New data read: Transport1[SEHAN203AD<00>/131.115.18.107:0]
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 D5 CA 00 00 02 00  |..........ÕÊ....|

SmbComNegotiateResponse[command=SMB_COM_NEGOTIATE,received=false,errorCode=0,flags=0x0098,flags2=0xC003,signSeq=0,tid=0,pid=51925,uid=0,mid=2,wordCount=17,byteCount=40,wordCount=17,dialectIndex=0,securityMode=0xF,security=user,encryptedPasswords=true,maxMpxCount=50,maxNumberVcs=1,maxBufferSize=16644,maxRawSize=65536,sessionKey=0x00000000,capabilities=0x0001F3FD,serverTime=Mon 
Jan 15 12:20:16 CET 
2007,serverTimeZone=65476,encryptionKeyLength=8,byteCount=40,encryptionKey=0x45B3078A9798ACDB,oemDomainName=TCAD]


More information about the jcifs mailing list