summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-11-22 02:53:42 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-11-22 02:53:42 +0000
commit8213a05d6751f55af8dfbe282b22d9fd193eeff4 (patch)
treebba6031414ba82b7332b59a6c5228f55450a43f0 /source3
parent556d1ca2d20c42c7ee5934631331f0a019203f06 (diff)
downloadsamba-8213a05d6751f55af8dfbe282b22d9fd193eeff4.tar.gz
samba-8213a05d6751f55af8dfbe282b22d9fd193eeff4.tar.bz2
samba-8213a05d6751f55af8dfbe282b22d9fd193eeff4.zip
Restrict anonymous=2 support merged from HEAD
(This used to be commit 8b156ed0db3e54aa3265a2579e72c50c39b5beef)
Diffstat (limited to 'source3')
-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 57318d03ca..88d5dfed9d 100644
--- a/source3/param/loadparm.c
+++ b/source3/param/loadparm.c
@@ -3619,7 +3619,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);
}