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:
parent
9322fa4077
commit
04f021e692
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user