git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9322fa4
)
Fix bug #7653 - When SMB2 is on, Windows 7 clients can not connect as guest to a...
author
Jeremy Allison
<jra@samba.org>
Fri, 27 Aug 2010 22:25:04 +0000
(15:25 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 27 Aug 2010 22:25:04 +0000
(15:25 -0700)
Fix "security = share" with SMB2 by mapping internally
to "security = user" and "map to guest = Bad User".
Jeremy.
source3/smbd/smb2_server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_server.c
b/source3/smbd/smb2_server.c
index 6db50f9ff9f596cbbc720a2fb3f36a92cdb5d098..b9fc3dc523ce57e1af0b101e47239a8f4a832416 100644
(file)
--- 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));