jcifs-1.3.11 from tgz
authorFelix Schumacher <felix.schumacher@internetallee.de>
Tue, 21 Jul 2009 18:13:02 +0000 (20:13 +0200)
committerFelix Schumacher <felix.schumacher@internetallee.de>
Tue, 21 Jul 2009 18:13:02 +0000 (20:13 +0200)
Tue Jul 21 11:19:39 EDT 2009
jcifs-1.3.11

The domain was incorrectly upper-cased when performing NTLMv2
authentication. It so happened this was harmless to JCIFS but the nTOWFv2
routine indicates that the domain is not supposed to be upper-cased
(unlike the username which is).

README.txt
build.xml
examples/10883563.doc [deleted file]
examples/runtests.sh
src/jcifs/ntlmssp/Type3Message.java
src/jcifs/smb/NtlmPasswordAuthentication.java

index 0201a95..919af5d 100644 (file)
@@ -1,3 +1,11 @@
+Tue Jul 21 11:19:39 EDT 2009
+jcifs-1.3.11
+
+The domain was incorrectly upper-cased when performing NTLMv2
+authentication. It so happened this was harmless to JCIFS but the nTOWFv2
+routine indicates that the domain is not supposed to be upper-cased
+(unlike the username which is).
+
 Wed Jun  3 19:42:58 EDT 2009
 jcifs-1.3.10
 
index 5cba503..0796b3c 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
 <project name="jcifs" default="usage" basedir=".">
 
-    <property name="version" value="1.3.10"/>
-    <property name="reldate" value="Jun 4, 2009"/>
+    <property name="version" value="1.3.11"/>
+    <property name="reldate" value="Jul 21, 2009"/>
 
     <target name="usage">
         <echo>
diff --git a/examples/10883563.doc b/examples/10883563.doc
deleted file mode 100644 (file)
index 62644d9..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-C:\tmp>ktpass /princ HTTP/www.foo.net@WIN.NET /ptype KRB5_NT_PRINCIPAL /desonly /pass asj7j112233hh4455 /mapuser test2\r
-Targeting domain controller: ts0.win.net\r
-Using legacy password setting method\r
-Successfully mapped HTTP/www.foo.net to test2.\r
-Key created.\r
-Account test2 has been set for DES-only encryption.
\ No newline at end of file
index b091299..d648054 100644 (file)
@@ -12,9 +12,9 @@ RUN="${JAVA_HOME}/bin/java -cp ${CLASSPATH} -Djcifs.properties=${PROPERTIES}"
 
 # Domain-based DFS
 #SERVER=192.168.2.110
-#SERVER=w.net
-#SHARE=root2
-#DIR=test
+SERVER=w.net
+SHARE=root2
+DIR=test
 
 # smb://fs1.w.net/DFSStandaloneRoot/DFSStandaloneLink/test/
 # smb://dc1.w.net/root2/link2/test/
@@ -22,9 +22,9 @@ RUN="${JAVA_HOME}/bin/java -cp ${CLASSPATH} -Djcifs.properties=${PROPERTIES}"
 # smb://dc3.x.net/tmp/test/
 # Stand-alone DFS
 #SERVER=192.168.2.113
-SERVER=fs1.w.net
-SHARE=DFSStandaloneRoot
-DIR=DFSStandaloneLink/test
+#SERVER=fs1.w.net
+#SHARE=DFSStandaloneRoot
+#DIR=DFSStandaloneLink/test
 
 WRITE_DIR=${DIR}/
 SRC_DIR=${DIR}/Junk
index baee1f7..8bfe930 100644 (file)
@@ -433,8 +433,8 @@ public class Type3Message extends NtlmMessage {
             byte[] domain = null;
             if (domainName != null && domainName.length() != 0) {
                 domain = unicode ?
-                        domainName.toUpperCase().getBytes(UNI_ENCODING) :
-                                domainName.toUpperCase().getBytes(oem);
+                        domainName.getBytes(UNI_ENCODING) :
+                                domainName.getBytes(oem);
             }
             int domainLength = (domain != null) ? domain.length : 0;
             String userName = getUser();
index db917c1..d256d48 100644 (file)
@@ -207,7 +207,7 @@ public final class NtlmPasswordAuthentication implements Principal, Serializable
             md4.update(password.getBytes(SmbConstants.UNI_ENCODING));
             HMACT64 hmac = new HMACT64(md4.digest());
             hmac.update(username.toUpperCase().getBytes(SmbConstants.UNI_ENCODING));
-            hmac.update(domain.toUpperCase().getBytes(SmbConstants.UNI_ENCODING));
+            hmac.update(domain.getBytes(SmbConstants.UNI_ENCODING));
             return hmac.digest();
         } catch (UnsupportedEncodingException uee) {
             throw new RuntimeException(uee.getMessage());