<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">


  
</HEAD>
<BODY bgcolor="#ffffff" text="#000000">
<DIV>
<br>
<br>
Tony Thompson wrote:
<blockquote cite="mid:4B5E094F.7080807@stone-ware.com" type="cite">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
Michael B Allen wrote:
  <blockquote
 cite="mid:78c6bd861001251228v5dde4aat7a01f5419bbb4361@mail.gmail.com"
 type="cite">
    <pre wrap="">Hi Tony,

What is the rest of the stack trace?

  </pre>
  </blockquote>
The rest of the stack trace is in our code.&nbsp; We are doing NTLM HTTP
authentication but not with the JCIFS filter.&nbsp; We set <b>jcifs.smb.lmCompatibility=1</b>
and it still throws the NPE with 1.3.&nbsp; I would have thought that should
make it work like jCIFS 1.2, right?<br>
  <br>
Tony<br>
  <blockquote
 cite="mid:78c6bd861001251228v5dde4aat7a01f5419bbb4361@mail.gmail.com"
 type="cite">
    <pre wrap="">Are you using this with NTLM HTTP authentication? If yes, I think this
is the error that you will get if an HTTP client tries to do NTLMv2
(which is not supported by the JCIFS NTLM HTTP authentication filter
as per the blue text at the top of the filter documentation
<a moz-do-not-send="true" class="moz-txt-link-freetext"
 href="http://jcifs.samba.org/src/docs/ntlmhttpauth.html">http://jcifs.samba.org/src/docs/ntlmhttpauth.html</a>).

Otherwise, if you are not doing NTLM HTTP authentication, it looks
like the NtlmPasswordAuthentication object simply has no password and
thus when the SmbSession.logon() code tries to access it, you get an
NPE. You must supply a password for the SmbSession.logon() method to
work properly.

However, this is still a bug since an NPE should never be thrown even
if the password is null. I have added an entry to the TODO to throw a
more appropriate error message.

Note that the SmbSession.logon API documentation which reads "This
method does not support NTLMv2." is actually not accurate. If the
password is supplied, this function should work with any version of
NTLM (although I would like to get rid of this method at some point
since it has very little or nothing to do with CIFS and because you
can do the same thing with an SmbFile.exists() call).

Mike

  </pre>
  </blockquote>
</blockquote>
</DIV>
<DIV>&nbsp;</DIV>
<DIV STYLE="FONT-SIZE: 9pt; FONT-FAMILY: Courier New">This message (and any associated files) is intended only for the <BR>use of the individual or entity to which it is addressed and may <BR>contain information that is confidential, subject to copyright or<BR>constitutes a trade secret. If you are not the intended recipient <BR>you are hereby notified that any dissemination, copying or <BR>distribution of this message, or files associated with this message, <BR>is strictly prohibited. If you have received this message in error, <BR>please notify us immediately by replying to the message and deleting <BR>it from your computer. Messages sent to and from Stoneware, Inc.<BR>may be monitored. <BR><BR></DIV></BODY></HTML>