summaryrefslogtreecommitdiff
path: root/source3/smbd/sesssetup.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-03-27 16:08:39 -0700
committerJeremy Allison <jra@samba.org>2008-03-27 16:08:39 -0700
commit7752494cf199d6edcce021baa81f2148e3c7ba4d (patch)
treee6a5bf3c660b6534296c12d4ad9f8d45ae5562dd /source3/smbd/sesssetup.c
parentf3d4cb5efa72c8665ed95dad605c7235d9ff568f (diff)
downloadsamba-7752494cf199d6edcce021baa81f2148e3c7ba4d.tar.gz
samba-7752494cf199d6edcce021baa81f2148e3c7ba4d.tar.bz2
samba-7752494cf199d6edcce021baa81f2148e3c7ba4d.zip
Fix up the comments on security=share to explain we're
ignoring passwords. Jeremy. (This used to be commit e7b6ea46532a26611dfd9d9e2727d52ba6a9cf50)
Diffstat (limited to 'source3/smbd/sesssetup.c')
-rw-r--r--source3/smbd/sesssetup.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index cf90c7183a..e0739ef992 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -1534,6 +1534,10 @@ void reply_sesssetup_and_X(struct smb_request *req)
lm_resp = data_blob(p, passlen1);
nt_resp = data_blob(p+passlen1, passlen2);
} else if (lp_security() != SEC_SHARE) {
+ /*
+ * In share level we should ignore any passwords, so
+ * only read them if we're not.
+ */
char *pass = NULL;
bool unic= smb_flag2 & FLAGS2_UNICODE_STRINGS;
@@ -1636,7 +1640,7 @@ void reply_sesssetup_and_X(struct smb_request *req)
reload_services(True);
if (lp_security() == SEC_SHARE) {
- /* in share level we should ignore any passwords */
+ /* In share level we should ignore any passwords */
data_blob_free(&lm_resp);
data_blob_free(&nt_resp);