[jcifs] NTLM bugfix for jcifs

Platon Fomichev pfomichev at alarity.com
Tue Nov 23 17:56:31 GMT 2004


Hey guys.

Just a bugfix for Type3 NTLM message in case LMv2 response is used.
Domain name should be uppercased even in Type3 body as well:

            if (domainName != null && domainName.length() != 0) {
                domain = unicode ?

domainName.toUpperCase().getBytes("UnicodeLittleUnmarked") :
                                             ^^^^^^^^^^^^
                                domainName.toUpperCase().getBytes(oem);

Checked on lots of Win2k servers.

Best regards,
                   Platon Fomichev <pfomichev at alarity.com>




More information about the jcifs mailing list