From: Felix Schumacher Date: Fri, 20 Mar 2009 17:10:27 +0000 (+0100) Subject: jcifs-1.3.6 from tgz X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=6469b018a85cccb22070ec315ef463f8ef58322e;p=jcifs_without_docs.git jcifs-1.3.6 from tgz Thu Mar 12 14:22:47 EDT 2009 jcifs-1.3.6a Share security with Samba 3.0 was broken. This has been fixed. --- diff --git a/README.txt b/README.txt index 73a3ade..a7aaa9a 100644 --- a/README.txt +++ b/README.txt @@ -1,3 +1,8 @@ +Thu Mar 12 14:22:47 EDT 2009 +jcifs-1.3.6a + +Share security with Samba 3.0 was broken. This has been fixed. + Wed Mar 11 20:22:46 EDT 2009 jcifs-1.3.5 diff --git a/build.xml b/build.xml index 61933a0..cd5cc6e 100644 --- a/build.xml +++ b/build.xml @@ -1,7 +1,7 @@ - - + + diff --git a/src/jcifs/smb/SmbSession.java b/src/jcifs/smb/SmbSession.java index 5391d17..aab741c 100644 --- a/src/jcifs/smb/SmbSession.java +++ b/src/jcifs/smb/SmbSession.java @@ -312,7 +312,8 @@ synchronized( transport() ) { } if( response.isLoggedInAsGuest && - "GUEST".equalsIgnoreCase( auth.username ) == false) { + "GUEST".equalsIgnoreCase( auth.username ) == false && + transport.server.security != SmbConstants.SECURITY_SHARE) { throw new SmbAuthException( NtStatus.NT_STATUS_LOGON_FAILURE ); }