已关闭
bind 升到 9.20 后,samba-tool provision 生成的 named.conf 缺少 DLZ database 行 #211
li_yunq创建于  18 天前关闭于  17 天前
li_yunq
18 天前 创建

现象

openEuler-24.03-LTS-SP4 的 bind 版本为 9.20.21-6,samba 版本为 4.19.3-11。
该组合下执行 samba-tool domain provision --dns-backend=BIND9_DLZ,provision 返回成功,
但生成的 named.conf 里 dlz "AD DNS Zone" 块没有任何 database 行。named 启动后不服务
AD 区,DNS 解析失败。

成因

python/samba/provision/sambadns.py 的 create_named_conf() 用 named -V 的输出生成
DLZ 配置。版本检测链只覆盖 BIND 9.8、9.9、9.10、9.11、9.12、9.14、9.16、9.18。
BIND 9.20 不命中任何一条,程序走 else 分支,只输出一条 warning:

BIND version unknown, please modify <path>/named.conf manually.

八个 bind9_NN 变量保持默认值 #。模板渲染时 samba 注释掉全部 dlopen 行。

修复建议

回移上游提交 3299aee76ac15bcde136d68ed14f59105c49fe94。该提交给 BIND 9.18 分支追加
BIND 9.20 条件,复用已有的 dlz_bind9_18.so。补丁改 2 个文件,加 4 行,删 3 行,
不含 C 代码。上游首个包含版本为 4.22.8。

受影响范围

分支 bind samba 是否受影响
openEuler-24.03-LTS-SP4 9.20.21 4.19.3 是
openEuler-24.03-LTS-Next 9.20.21 4.19.3 是
openEuler-26.09 9.20.21 4.22.5 是
master 9.20.21 4.24.5 否,已含修复
openEuler-24.03-LTS-SP3 9.18.21 4.19.3 否

对应 PR:https://gitcode.com/src-openeuler/samba/pull_requests/322

likedislike
Lli_yunq
18 天前 添加了label:bug
openeuler-ci-botopeneuler-ci-bot成员
18 天前 将 MrRlu、li_yunq、sunsuwan、Apricity_HW、robert-xingwang 设为负责人
openeuler-ci-botopeneuler-ci-bot成员
18 天前 添加了label:sig/Networking
openeuler-ci-bot
openeuler-ci-bot成员
18 天前 评论:

Welcome To openEuler Community

Hey @li_yunq , thanks for your contribution to the community.

Bot Usage Manual

I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands. You can self-configure the PR merge rules for this repository. For more details, please refer to Here.

Contact Guide

If you have any questions, please contact the SIG: Networking ,
and any of the maintainers: @Apricity_HW, @MrRlu, @robert-xingwang, @sunsuwan ,
and any of the committers: @jiangheng12138, @zhongxuan2 .

likedislike
Lli_yunq
18 天前 关联了pull request:修复 samba 在 BIND 9.20 下 BIND9_DLZ provision 生成空 DLZ 配置
Lli_yunq
18 天前 修改了issue 的描述
openeuler-ci-botopeneuler-ci-bot成员
17 天前 关闭了 issue
openeuler-ci-botopeneuler-ci-bot成员
17 天前 issue状态由 待办的 改变为 已完成
openeuler-ci-botopeneuler-ci-bot成员
17 天前 关联了pull request:[sync] PR-322: 修复 samba 在 BIND 9.20 下 BIND9_DLZ provision 生成空 DLZ 配置
openeuler-ci-botopeneuler-ci-bot成员
17 天前 关联了pull request:[sync] PR-322: 修复 samba 在 BIND 9.20 下 BIND9_DLZ provision 生成空 DLZ 配置
openeuler-ci-botopeneuler-ci-bot成员
17 天前 关联了pull request:[sync] PR-322: 修复 samba 在 BIND 9.20 下 BIND9_DLZ provision 生成空 DLZ 配置
Xxh
17 天前 关联了pull request:修复 samba 在 BIND 9.20 下 BIND9_DLZ provision 生成空 DLZ 配置
openeuler-ci-botopeneuler-ci-bot成员
3 天前 关联了pull request:[sync] PR-326: 修复 samba 在 BIND 9.20 下 BIND9_DLZ provision 生成空 DLZ 配置