]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Remove remaining auto-dnssec bits
authorMatthijs Mekking <matthijs@isc.org>
Wed, 5 Jul 2023 07:46:10 +0000 (09:46 +0200)
committerMatthijs Mekking <matthijs@isc.org>
Thu, 20 Jul 2023 09:04:24 +0000 (11:04 +0200)
Remove the remaining bits related to 'auto-dnssec'.

bin/named/server.c
bin/named/zoneconf.c
bin/rndc/rndc.rst

index 130175bcff9ea9c07ac1ceb414dff451a06cf64b..c8e5b76f756dba89ada2e4a2e99454725e5a1375 100644 (file)
@@ -12330,8 +12330,7 @@ named_server_rekey(named_server_t *server, isc_lex_t *lex,
        keyopts = dns_zone_getkeyopts(zone);
 
        /*
-        * "rndc loadkeys" requires "auto-dnssec maintain"
-        * or a "dnssec-policy".
+        * "rndc loadkeys" requires a "dnssec-policy".
         */
        if ((keyopts & DNS_ZONEKEY_ALLOW) == 0) {
                result = ISC_R_NOPERM;
index 867be2369c71f1e038a4ae48c690eefe31446cc5..ca29ebdc482591a7608b000d6b8eb72e0c73baa7 100644 (file)
@@ -1661,28 +1661,12 @@ named_zone_configure(const cfg_obj_t *config, const cfg_obj_t *vconfig,
                CHECK(dns_zone_setrefreshkeyinterval(zone,
                                                     cfg_obj_asuint32(obj)));
 
-               obj = NULL;
-               result = cfg_map_get(zoptions, "auto-dnssec", &obj);
                if (kasp != NULL) {
                        bool s2i = (strcmp(dns_kasp_getname(kasp),
                                           "insecure") != 0);
                        dns_zone_setkeyopt(zone, DNS_ZONEKEY_ALLOW, true);
                        dns_zone_setkeyopt(zone, DNS_ZONEKEY_CREATE, !s2i);
                        dns_zone_setkeyopt(zone, DNS_ZONEKEY_MAINTAIN, true);
-               } else if (result == ISC_R_SUCCESS) {
-                       const char *arg = cfg_obj_asstring(obj);
-                       if (strcasecmp(arg, "allow") == 0) {
-                               allow = true;
-                       } else if (strcasecmp(arg, "maintain") == 0) {
-                               allow = maint = true;
-                       } else if (strcasecmp(arg, "off") == 0) {
-                               /* Default */
-                       } else {
-                               UNREACHABLE();
-                       }
-                       dns_zone_setkeyopt(zone, DNS_ZONEKEY_ALLOW, allow);
-                       dns_zone_setkeyopt(zone, DNS_ZONEKEY_CREATE, false);
-                       dns_zone_setkeyopt(zone, DNS_ZONEKEY_MAINTAIN, maint);
                }
        }
 
index 97088579f792807024cb18c88f178104f1141c64..db43974a4b9670ebb22c1f40bb7fc76c9901c0d9 100644 (file)
@@ -265,10 +265,9 @@ Currently supported commands are:
    immediately re-signed by the new keys, but is allowed to
    incrementally re-sign over time.
 
-   This command requires that the zone be configured with a ``dnssec-policy``, or
-   that the ``auto-dnssec`` zone option be set to ``maintain``, and also requires the
-   zone to be configured to allow dynamic DNS. (See "Dynamic Update Policies" in
-   the Administrator Reference Manual for more details.)
+   This command requires that the zone be configured with a ``dnssec-policy``, and
+   also requires the zone to be configured to allow dynamic DNS. (See "Dynamic
+   Update Policies" in the Administrator Reference Manual for more details.)
 
 .. option:: managed-keys (status | refresh | sync | destroy) [class [view]]
 
@@ -504,11 +503,9 @@ Currently supported commands are:
    the zone's DNSKEY RRset. If the DNSKEY RRset is changed, then the
    zone is automatically re-signed with the new key set.
 
-   This command requires that the zone be configured with a ``dnssec-policy``, or
-   that the ``auto-dnssec`` zone option be set to ``allow`` or ``maintain``,
-   and also requires the zone to be configured to allow dynamic DNS. (See
-   "Dynamic Update Policies" in the BIND 9 Administrator Reference Manual for more
-   details.)
+   This command requires that the zone be configured with a ``dnssec-policy``, and
+   also requires the zone to be configured to allow dynamic DNS. (See "Dynamic
+   Update Policies" in the Administrator Reference Manual for more details.)
 
    See also :option:`rndc loadkeys`.