Domain-Controller

kinit:找不到領域的 KDC

  • November 3, 2019

我正在嘗試按照samba wiki將 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

請問有什麼問題嗎?謝謝

最後,這是此版本的 winbind 問題。Laster samba 的版本解決了我的問題。

引用自:https://serverfault.com/questions/834582