[jcifs] jcifs.smb.SmbException: Unverifiablesignature:SMUSTF<1C>/202.161.42.5

Michael B Allen mba2000 at ioplex.com
Wed Mar 16 23:55:35 GMT 2005


Morten.Hattesen at tietoenator.com said:
> When Tomcat shuts down and reloads it persists all session attributes by
> default. One of these attributes is the user attribute object
> (jcifs.smb.NtlmPasswordAuthentication), which initializes its
> DEFAULT_USERNAME field, using default user "GUEST", since it has not yet
> loaded the jcifs configuration values from the filter parameters
> (jcifs.smb.client.username and jcifs.smb.client.password) in web.xml.
<snip>
> An alternate solution would be to include the jcifs.* properties in
> System.properties rather than as filter init-param's. This would allow
> proper initialization.

Actually at some point I'm going to revisit the way we initialize property
state in jCIFS. In particular I would like to make it so that properties
can be changed at runtime. I will keep this issue in mind when I review
that.

Unfortunately I don't think this will help much with the
NtlmPasswordAuthentication problem. Actually in 2.0 credentials will be
encapsulated in a .NET style WindowsIdentity or WindowsPrincipal class and
the NPA will be gone but the problem remains the same which is that you
cannot persist credentials. You can only try to detect when they are
invalid and reauthenticate.

Mike


More information about the jcifs mailing list