[jcifs] A bunch of NTLM stuff
Glass, Eric
eric.glass at capitalone.com
Wed Oct 9 17:50:04 EST 2002
> -----Original Message-----
>
> Thanks for this code. It was thought provoking. I have
> converted to the
> stateless approach and it does seem more correct.
>
> Note however that your code will choke after soTimeout
> because the same
> NtlmPasswordAuthentication object is being used by
> SmbSession and you
> create new ones. My old code updated the hashes in-place
> so SmbSession's
> pointer didn't need to be updated. Regardless, I've
> changed the
> SmbTransport.getSmbSession() method to assign
> the new
> NtlmPasswordAuthentication object to the SmbSession so that
> this will not
> happing in my code or yours (post 0.7.0b3).
>
Thanks for the heads up. I haven't come across this as of yet, but this
will probably save me some hair-pulling at some point. When would this
occur? I've set the soTimeout to 10 minutes -- would I see the issue
globally after that time? How would this manifest itself?
> Also, note that the "domain" in the type-1-message is the
> workgroup and not
> the authentication domain. Frequently they are the same but
> not always. In
> my code, I do not even bother to use this field as a
> fallback domain and
> instead just require a domainController property. The real
> authentication
> domain is in the type-3-message.
>
Good to know. Thanks again!
**************************************************************************
The information transmitted herewith is sensitive information intended only
for use by the individual or entity to which it is addressed. If the reader
of this message is not the intended recipient, you are hereby notified that
any review, retransmission, dissemination, distribution, copying or other
use of, or taking of any action in reliance upon this information is
strictly prohibited. If you have received this communication in error,
please contact the sender and delete the material from your computer.
More information about the jcifs
mailing list