jcifs-1.3.7 from tgz
authorFelix Schumacher <felix@cat.(none)>
Fri, 20 Mar 2009 17:12:57 +0000 (18:12 +0100)
committerFelix Schumacher <felix@cat.(none)>
Fri, 20 Mar 2009 17:12:57 +0000 (18:12 +0100)
Seems to be share-security related as 1.3.6(a)

build.xml
src/jcifs/smb/SmbComSessionSetupAndX.java

index cd5cc6e..93963b0 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
 <project name="jcifs" default="usage" basedir=".">
 
-    <property name="version" value="1.3.6"/>
-    <property name="reldate" value="Mar 14, 2009"/>
+    <property name="version" value="1.3.7"/>
+    <property name="reldate" value="Mar 18, 2009"/>
 
     <target name="usage">
         <echo>
index 6547275..35cfe00 100644 (file)
@@ -81,6 +81,18 @@ class SmbComSessionSetupAndX extends AndXServerMessageBlock {
             } else {
                 throw new SmbException("Unsupported credential type");
             }
+        } else if (session.transport.server.security == SECURITY_SHARE) {
+            if (cred instanceof NtlmPasswordAuthentication) {
+                NtlmPasswordAuthentication auth = (NtlmPasswordAuthentication)cred;
+                lmHash = new byte[0];
+                ntHash = new byte[0];
+                accountName = auth.username;
+                if (useUnicode)
+                    accountName = accountName.toUpperCase();
+                primaryDomain = auth.domain.toUpperCase();
+            } else {
+                throw new SmbException("Unsupported credential type");
+            }
         } else {
             throw new SmbException("Unsupported");
         }