我正在尝试将 samba4 配置为域控制器桑巴维基
/etc/resolv.conf:
domain transbekk.lan
nameserver 192.168.1.1
nameserver 192.168.1.254
/etc/主机名:
domain.transbekk.lan
/etc/samba/smb.conf
# Global parameters
[global]
workgroup = TRANSBEKK
realm = TRANSBEKK.LAN
netbios name = DOMAIN
server role = active directory domain controller
dns forwarder = 192.168.1.1,192.168.1.254
idmap_ldb:use rfc2307 = yes
[netlogon]
path = /var/lib/samba/sysvol/transbekk.lan/scripts
read only = No
[sysvol]
path = /var/lib/samba/sysvol
read only = No
/etc/krdb5.conf
[libdefaults]
default_realm = TRANSBEKK.LAN
dns_lookup_realm = false
dns_lookup_kdc = true
当我尝试测试 kerberos 配置(kinit 管理员)时出现错误:
kinit:获取初始凭证时无法找到领域“TRANSBEKK.LAN”的 KDC
请问出了什么问题?谢谢
答案1
最后,这个版本存在 winbind 问题。Laster samba 版本解决了我的问题。