From 3d08e844fc2870387449850342091ae621bd938d Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 24 Jun 2011 12:57:47 +1000 Subject: [PATCH] param: Remove remaining references to announce as and announce version --- docs-xml/using_samba/appc.xml | 28 ---------------------- docs-xml/using_samba/ch05.xml | 29 ----------------------- source4/param/loadparm.c | 5 ---- source4/scripting/python/samba/upgrade.py | 2 -- 4 files changed, 64 deletions(-) diff --git a/docs-xml/using_samba/appc.xml b/docs-xml/using_samba/appc.xml index f4b4666bca7..30f5045c015 100644 --- a/docs-xml/using_samba/appc.xml +++ b/docs-xml/using_samba/appc.xml @@ -66,34 +66,6 @@ options. - - -NT, Win95, WfW -NT - - -[global] announce as = system type - - -Have Samba announce itself as something other than an NT server. Discouraged because it interferes with serving browse lists. - - - - - - -any -4.2 - - -[global] announce version = number.number - - -Instructs Samba to announce itself as an older version SMB server. Discouraged. - - - - any shares diff --git a/docs-xml/using_samba/ch05.xml b/docs-xml/using_samba/ch05.xml index 8bf541cd2f7..2e8bc328b07 100644 --- a/docs-xml/using_samba/ch05.xml +++ b/docs-xml/using_samba/ch05.xml @@ -523,35 +523,6 @@ remote browse sync = 192.168.221.130 192.168.222.120 -announce as - -NT -browsingoptions for, list of or Win95 or Wf W - -Sets the operating system that Samba will announce itself as. - -N T - -Global - - - - - -announce version - -numerical - -Sets the version of the operating system that Samba will announce itself as. - -4.2 - -Global - - - - - browseable (browsable) boolean diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c index 14285be0171..b95a400b34d 100644 --- a/source4/param/loadparm.c +++ b/source4/param/loadparm.c @@ -2352,10 +2352,6 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lpcfg_do_global_parameter_var(lp_ctx, "server string", "Samba %s", SAMBA_VERSION_STRING); - lpcfg_do_global_parameter_var(lp_ctx, "announce version", "%d.%d", - DEFAULT_MAJOR_VERSION, - DEFAULT_MINOR_VERSION); - lpcfg_do_global_parameter(lp_ctx, "password server", "*"); lpcfg_do_global_parameter(lp_ctx, "max mux", "50"); @@ -2373,7 +2369,6 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx) lpcfg_do_global_parameter(lp_ctx, "WriteRaw", "True"); lpcfg_do_global_parameter(lp_ctx, "NullPasswords", "False"); lpcfg_do_global_parameter(lp_ctx, "ObeyPamRestrictions", "False"); - lpcfg_do_global_parameter(lp_ctx, "announce as", "NT SERVER"); lpcfg_do_global_parameter(lp_ctx, "TimeServer", "False"); lpcfg_do_global_parameter(lp_ctx, "BindInterfacesOnly", "False"); diff --git a/source4/scripting/python/samba/upgrade.py b/source4/scripting/python/samba/upgrade.py index 5bcc4294ba9..0f7511aa179 100644 --- a/source4/scripting/python/samba/upgrade.py +++ b/source4/scripting/python/samba/upgrade.py @@ -279,8 +279,6 @@ smbconf_keep = [ "write raw", "disable netbios", "nt status support", - "announce version", - "announce as", "max mux", "max xmit", "name resolve order", -- 2.34.1