[jcifs] Problem with NTLM HTTP filter, upgrading: 0.7.15 to 1.1.0

Parke Jeff Parke.Jeff at PBGC.GOV
Mon Oct 25 14:02:39 GMT 2004


I added the loglevel property to the web.xml, and used your example
web.xml file to use the recommended configuration
(WINS/domain/username/password).

Here is the adjusted filter configuration:

  <filter>
      <filter-name>NTLM HTTP Authentication Filter</filter-name>
      <filter-class>jcifs.http.NtlmHttpFilter</filter-class>
      <init-param>
          <param-name>jcifs.netbios.wins</param-name>
          <param-value>192.168.0.32,192.168.0.83</param-value>
      </init-param>
      <init-param>
          <param-name>jcifs.smb.client.domain</param-name>
          <param-value>mydomain</param-value>
      </init-param>
      <init-param>
          <param-name>jcifs.smb.client.username</param-name>
          <param-value>myusername</param-value>
      </init-param>
      <init-param>
          <param-name>jcifs.smb.client.password</param-name>
          <param-value>mypassword</param-value>
      </init-param> 
      <init-param>
          <param-name>jcifs.util.loglevel</param-name>
          <param-value>10</param-value>
      </init-param>        
  </filter>

The same IE "The page cannot be displayed" error comes up.  The log
contains the following top level messages:

  NameQueryRequest[...]
  NetBIOS: new data read from socket[...]
  NameQueryResponse[...]
  04/10/25 09:21:26 Tutalii:
C:\JDev9052\jdev\mywork\Spectrum\Spectrum\war\WEB-INF\lib\jcifs-1.1.0.ja
r archive
  session established ok with MYDOMAIN<1C>/192.168.0.32
  requesting negotiation with MYDOMAIN<1C>/192.168.0.32
  SmbComNegotiate[...errorCode=The operation completed successfully...]
  new data read from socket: MYDOMAIN<1C>/192.168.0.32
  byteCount=46 but readBytesWireFormat returned 14
  SmbComNegotiateResponse[...errorCode=The operation completed
successfully...]
  treeConnect: unc=\\192.168.0.32\IPC$,service=?????
  sessionSetup: accountName=myusername,primaryDomain=mydomain
  SmbComSessionSetupAndX[...errorCode=The operation completed
successfully...]
  SmbComTreeConnectAndX[...errorCode=The operation completed
successfully...]
  new data read from socket: MYDOMAIN<1C>/192.168.0.32
  SmbComSessionSetupAndXResponse[...errorCode=The operation completed
successfully...]
  SmbComTreeConnectAndXResponse[...errorCode=The operation completed
successfully...]
  close: NbtSocket[addr=DPN<1C>/192.168.0.32,port=139,localport=4988]

After this point, nothing else happens.  The request just ends.  I am
restarting the container for every test.  I tried putting a breakpoint
in the filter that immediately follows the NTLM filter and debugging the
application to verify that the request is never leaving the NTLM filter,
and it isn't.  Are there any other suggestions for how I could
troubleshoot this?

Thanks,
Jeff


-----Original Message-----
From: Michael B Allen [mailto:mba2000 at ioplex.com] 
Sent: Friday, October 22, 2004 5:51 PM
To: Parke Jeff
Cc: jcifs at lists.samba.org
Subject: Re: [jcifs] Problem with NTLM HTTP filter, upgrading: 0.7.15 to
1.1.0

On Fri, 22 Oct 2004 11:46:43 -0400
"Parke Jeff" <Parke.Jeff at PBGC.GOV> wrote:
> 
> hitting the application with Internet Explorer 6, the 0.7.15 version
> works, authenticating and gives the following jCIFS log message:
> 
> 04/10/22 11:31:31 Tutalii:
>
C:\JDev9052\jdev\mywork\Spectrum\Spectrum\war\WEB-INF\lib\jcifs-0.7.15.j
> ar archive
> 
> After upgrading to 1.1.0 and keeping the filter settings the same
> (keeping the entire application the same, just swapping the jar file
in
> WEB-INF/lib), I do not get any jCIFS related log message and hitting
the
> application in Internet Explorer results in a "The page cannot be
> displayed".

Your config should work. The ideal web.xml for 1.1 is this:

  view-source:http://jcifs.samba.org/src/examples/web.xml

Try it. Or add the loglevel parameter to your existing config to
see what's going on. Also note that many jCIFS properties are loaded
once. Depending on how your container loads classes it may be necessary
to restart it.

Mike

-- 
Greedo shoots first? Not in my Star Wars.










More information about the jcifs mailing list