summaryrefslogtreecommitdiff
path: root/source3/param
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-22 02:40:21 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-22 02:40:21 +0000
commita75f1ba9d4b314f793bf7877f329dc420546c4b0 (patch)
tree56878021361ee5b9e3e282d0aacaab64fef05b2e /source3/param
parentabc32ea8506c4d586ef383c7f562ed12f7932ffd (diff)
downloadsamba-a75f1ba9d4b314f793bf7877f329dc420546c4b0.tar.gz
samba-a75f1ba9d4b314f793bf7877f329dc420546c4b0.tar.bz2
samba-a75f1ba9d4b314f793bf7877f329dc420546c4b0.zip
Add support for 'restrict anonymous=2' and make the doco give a slight hint
as to what it now does in 3.0. Needs more work, but better than documenting the old functionality :-). As the security benifits of this are nullified by a setting of 'guest ok' on any share, we might want to put some documentation there too. Andrew Bartlett (This used to be commit ab812ada56b740ac986de8e1f4ca36641ec61c01)
Diffstat (limited to 'source3/param')
-rw-r--r--source3/param/loadparm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c
index ff2fe48b60..454519aecb 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3625,7 +3625,9 @@ BOOL lp_load(const char *pszFname, BOOL global_only, BOOL save_defaults,
lp_add_auto_services(lp_auto_services());
if (add_ipc) {
- lp_add_ipc("IPC$", True);
+ /* When 'restrict anonymous = 2' guest connections to ipc$
+ are denied */
+ lp_add_ipc("IPC$", (lp_restrict_anonymous() < 2));
lp_add_ipc("ADMIN$", False);
}