From: Kees Monshouwer Date: Mon, 10 Jul 2023 07:51:38 +0000 (+0200) Subject: auth: remove deprecated master and allow-unsigned-supermaster options X-Git-Tag: rec-5.0.0-rc1~45^2~9 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=347e240db8e0403ff77866f70c556ddfa5a9999b;p=thirdparty%2Fpdns.git auth: remove deprecated master and allow-unsigned-supermaster options --- diff --git a/pdns/auth-main.cc b/pdns/auth-main.cc index 559e1f29c3..7cf762f352 100644 --- a/pdns/auth-main.cc +++ b/pdns/auth-main.cc @@ -165,7 +165,6 @@ static void declareArguments() ::arg().set("proxy-protocol-maximum-size", "The maximum size of a proxy protocol payload, including the TLV values") = "512"; ::arg().setSwitch("send-signed-notify", "Send TSIG secured NOTIFY if TSIG key is configured for a zone") = "yes"; ::arg().set("allow-unsigned-notify", "Allow unsigned notifications for TSIG secured zones") = "yes"; // FIXME: change to 'no' later - ::arg().set("allow-unsigned-supermaster", "Allow supermasters to create zones without TSIG signed NOTIFY") = "yes"; ::arg().set("allow-unsigned-autoprimary", "Allow autoprimaries to create zones without TSIG signed NOTIFY") = "yes"; ::arg().setSwitch("forward-dnsupdate", "A global setting to allow DNS update packages that are for a Slave zone, to be forwarded to the master.") = "yes"; ::arg().setSwitch("log-dns-details", "If PDNS should log DNS non-erroneous details") = "no"; @@ -223,7 +222,6 @@ static void declareArguments() ::arg().setSwitch("slave", "Act as a secondary") = "no"; ::arg().setSwitch("secondary", "Act as a secondary") = "no"; - ::arg().setSwitch("master", "Act as a primary") = "no"; ::arg().setSwitch("primary", "Act as a primary") = "no"; ::arg().setSwitch("superslave", "Act as a autosecondary") = "no"; ::arg().setSwitch("autosecondary", "Act as an autosecondary (formerly superslave)") = "no"; @@ -1242,32 +1240,24 @@ int main(int argc, char** argv) g_log << Logger::Error << "Unknown logging facility " << ::arg().asNum("logging-facility") << endl; } - if (::arg().mustDo("master")) - ::arg().set("primary") = "yes"; if (::arg().mustDo("slave")) ::arg().set("secondary") = "yes"; if (::arg().mustDo("slave-renotify")) ::arg().set("secondary-do-renotify") = "yes"; if (::arg().mustDo("superslave")) ::arg().set("autosecondary") = "yes"; - if (::arg().mustDo("allow-unsigned-supermaster")) - ::arg().set("allow-unsigned-autoprimary") = "yes"; if (!::arg().isEmpty("domain-metadata-cache-ttl")) ::arg().set("zone-metadata-cache-ttl") = ::arg()["domain-metadata-cache-ttl"]; if (!::arg().isEmpty("slave-cycle-interval")) ::arg().set("xfr-cycle-interval") = ::arg()["slave-cycle-interval"]; // this mirroring back is on purpose, so that config dumps reflect the actual setting on both names - if (::arg().mustDo("primary")) - ::arg().set("master") = "yes"; if (::arg().mustDo("secondary")) ::arg().set("slave") = "yes"; if (::arg().mustDo("secondary-do-renotify")) ::arg().set("slave-renotify") = "yes"; if (::arg().mustDo("autosecondary")) ::arg().set("superslave") = "yes"; - if (::arg().mustDo("allow-unsigned-autoprimary")) - ::arg().set("allow-unsigned-supermaster") = "yes"; ::arg().set("domain-metadata-cache-ttl") = ::arg()["zone-metadata-cache-ttl"]; ::arg().set("slave-cycle-interval") = ::arg()["xfr-cycle-interval"];