summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-08-27 15:25:04 -0700
committerJeremy Allison <jra@samba.org>2010-08-27 15:25:04 -0700
commit04f021e69227a9c8094a5d617f53f3a1887e2da3 (patch)
tree515c8969140d2d34a4309b4c7904ca07a6e50c6f /source3/smbd
parent9322fa4077a9c15c9b5431ac2369b50bfffbb73d (diff)
downloadsamba-04f021e69227a9c8094a5d617f53f3a1887e2da3.tar.gz
samba-04f021e69227a9c8094a5d617f53f3a1887e2da3.tar.bz2
samba-04f021e69227a9c8094a5d617f53f3a1887e2da3.zip
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.
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/smb2_server.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index 6db50f9ff9..b9fc3dc523 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));