s4/dlz: add support for bind 9.20
authorMichael Tokarev <mjt@tls.msk.ru>
Tue, 3 Jun 2025 06:41:57 +0000 (09:41 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Thu, 17 Jul 2025 10:52:35 +0000 (13:52 +0300)
Forwarded: yes, https://gitlab.com/samba-team/samba/-/merge_requests/4067
Bug-Debian: https://bugs.debian.org/1107139

bind dlz interface does not change much, yet we build
dlz_bind9_NN for every bind9 version NN we support -
despite many of them differ only in soversion, with
the code being identical.

For bind9_20, use dlz_bind9_18.so which we already have.

It'd be nice to extract actual bind9 version string in
sambadns.py and use it in more direct way.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=15790
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Gbp-Pq: Name add-support-for-bind-9.20.patch

python/samba/provision/sambadns.py
source4/setup/named.conf.dlz

index 952e875c862331b5c03eb8de25ca8f5f728e672e..a3515bbe37b33861a941f54488f8ad01bd75e620 100644 (file)
@@ -1030,7 +1030,8 @@ def create_named_conf(paths, realm, dnsdomain, dns_backend, logger):
             bind9_14 = ''
         elif bind_info.upper().find('BIND 9.16') != -1:
             bind9_16 = ''
-        elif bind_info.upper().find('BIND 9.18') != -1:
+        elif bind_info.upper().find('BIND 9.18') != -1 \
+          or bind_info.upper().find('BIND 9.20') != -1:
             bind9_18 = ''
         elif bind_info.upper().find('BIND 9.7') != -1:
             raise ProvisioningError("DLZ option incompatible with BIND 9.7.")
index cbe7d805f58007c132c78b5d83ef1c492a27344e..9753cdc503b355f54d13ba699eebc9258fa85619 100644 (file)
@@ -30,8 +30,8 @@ dlz "AD DNS Zone" {
 
     # For BIND 9.16.x
     ${BIND9_16} database "dlopen ${MODULESDIR}/bind9/dlz_bind9_16.so";
-    #
-    # For BIND 9.18.x
+
+    # For BIND 9.18.x and 9.20.x
     ${BIND9_18} database "dlopen ${MODULESDIR}/bind9/dlz_bind9_18.so";
 };