1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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.
This commit is contained in:
Jeremy Allison 2010-08-27 15:25:04 -07:00
parent 9322fa4077
commit 04f021e692

View File

@ -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));