[SCM] Samba Shared Repository - branch v3-6-test updated

Jeremy Allison jra at samba.org
Fri Aug 27 16:29:57 MDT 2010


The branch, v3-6-test has been updated
       via  6d4dead Fix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a share.
      from  03bfeb9 s3: Cache results of finding printer names

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-6-test


- Log -----------------------------------------------------------------
commit 6d4dead973d5124fc70e541d4b0630e23decd682
Author: Jeremy Allison <jra at samba.org>
Date:   Fri Aug 27 15:25:04 2010 -0700

    Fix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a share.
    
    Fix "security = share" with SMB2 by mapping internally
    to "security = user" and "map to guest = Bad User".
    
    Jeremy.
    (cherry picked from commit 04f021e69227a9c8094a5d617f53f3a1887e2da3)

-----------------------------------------------------------------------

Summary of changes:
 source3/smbd/smb2_server.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index e604728..5be83ff 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -2045,6 +2045,14 @@ void smbd_smb2_first_negprot(struct smbd_server_connection *sconn,
 	struct smbd_smb2_request *req;
 	struct tevent_req *subreq;
 
+	if (lp_security() == SEC_SHARE) {
+		DEBUG(2,("WARNING!!: \"security = share\" is deprecated for "
+			"SMB2 servers. Mapping to \"security = user\" and "
+			"\"map to guest = Bad User\"\n" ));
+		lp_do_parameter(-1, "security", "user");
+		lp_do_parameter(-1, "map to guest", "Bad User");
+	}
+
 	DEBUG(10,("smbd_smb2_first_negprot: packet length %u\n",
 		 (unsigned int)size));
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list