jcifs-1.1.0 from tgz
authorFelix Schumacher <p0354740@isib001.(none)>
Wed, 6 Aug 2008 14:23:03 +0000 (16:23 +0200)
committerFelix Schumacher <p0354740@isib001.(none)>
Wed, 6 Aug 2008 14:23:03 +0000 (16:23 +0200)
commit8a1a563cdf61c69cccc8f78ffe1f87241476c112
tree94bee9822fec14f342aacdeb9b720130654f33c4
parent49a69d49e1a2670caac776913b8cb7b618ae408d
jcifs-1.1.0 from tgz

jcifs-1.1.0 released

The behavior of the firstCalledName/nextCalledName methods has been changed
to try SMBSERVER* first, then the NetBIOS hostname, then the 0x20 name from
a Node Status. It is pretty universal now that SMBSERVER* rules the day and
most  servers  return  failure  with  the  NetBIOS  name  so  this behavior
eliminates a round trip during session establishment.

The  NbtAddress.getByName method has been implemented. This will return the
full  list of RDATA for a name query response. Currently I believe only the
0x1C  domain  lookup  actually  returns  multiple  results.  Note  this  is
different from getAllByAddress which does a node status.

The  socket code in SmbTransport has been modified to open the socket using
the transport thread. This permits the caller of the transport to call wait
for  RESPONSE_TIMEOUT.  This is great if your application has a tendency to
try  to connect to hosts that do not exist. Normally that would take over a
minute  to  timeout. The single threaded SmbCrawler actually performs quite
well with the right properties set.

An SmbSession.getChallengeForDomain() method has been added that returns an
NtlmChallenge  object containing the byte[] challenge and UniAddress of the
domain  controller  from  which  it came. This method will rotate through a
list  of  at  most  jcifs.netbios.lookupRespLimit  addresses  and will only
return  a  challenge  for a responsive server. Unresponsive servers will be
removed from the list until the jcifs.netbios.cachePolicy has expired. This
function  is  used  by  the  NTLM  HTTP  Filter  to  locate suitable domain
controllers.

Because  of  the above rotation there is a greater potential for transports
to  remain  open. Sessions with no activity (this is particularly true with
the  NTLM  HTTP  Filter which really only touches the session once when the
user is authenticated) will be logged off after jcifs.smb.client.soTimeout.

A  read  bug that only manafested itself with a certain EMC server has been
fixed.
16 files changed:
README.txt
build.xml
examples/ListDC.java [new file with mode: 0644]
examples/jcifs.prp
examples/runtests.sh
examples/web.xml
src/jcifs/http/NtlmHttpFilter.java
src/jcifs/netbios/NameQueryResponse.java
src/jcifs/netbios/NameServiceClient.java
src/jcifs/netbios/NameServicePacket.java
src/jcifs/netbios/NbtAddress.java
src/jcifs/smb/DosFileFilter.java
src/jcifs/smb/NtlmChallenge.java [new file with mode: 0644]
src/jcifs/smb/SmbComReadAndXResponse.java
src/jcifs/smb/SmbSession.java
src/jcifs/smb/SmbTransport.java