[SCM] Samba Shared Repository - branch master updated
Jeremy Allison
jra at samba.org
Fri Aug 27 16:26:19 MDT 2010
The branch, master has been updated
via 04f021e Fix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a share.
from 9322fa4 s3: Lift smbd_server_fd() from smb_pam_passcheck
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 04f021e69227a9c8094a5d617f53f3a1887e2da3
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.
-----------------------------------------------------------------------
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 6db50f9..b9fc3dc 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