大网数据广告活动
服务器运维问答

Samba/Kerberos: Cannot contact any KDC, Kerberos not listening?

· 52CE 我爱测

Newly built standalone AD DC (test bed in preparation for replacing venerable NT4 installation). Fresh and fully updated 4.3.11 on 16.04LTS. Followed Samba wikis, simple enough. Haven't messed with smb.conf, per warnings: [global…

问题原文

原帖链接 · feldmrob · CC BY-SA 4.0

Newly built standalone AD DC (test bed in preparation for replacing venerable NT4 installation). Fresh and fully updated 4.3.11 on 16.04LTS. Followed Samba wikis, simple enough.

Haven't messed with smb.conf, per warnings:

[global]
        workgroup = REALM
        realm = REALM.DOMAIN.TLD
        netbios name = ADDC
        server role = active directory domain controller
        dns forwarder = 1.0.0.1
        idmap_ldb:use rfc2307 = yes

I stayed with Samba's internal DNS backend and Kerberos implementation. I directly copied the krb5.conf produced during provisioning to /etc, as specified:

[libdefaults]
        default_realm = REALM.DOMAIN.TLD
        dns_lookup_realm = false
        dns_lookup_kdc = true

Passing all "Setting up Samba as an Active Directory Domain Controller" wiki tests for "Verifying the File Server" and "Verifying DNS." By which I mean querying _ldap and _Kerberos SRV records as well as A record of ADDC is successful, and resolution works both ways:

$ host DC
DC.realm.domain.tld has address 10.10.10.100
$ host 10.10.10.100
100.10.10.10.in-addr.arpa domain name pointer DC.realm.domain.tld.

But "Verifying Kerberos" tests still fail:

$ kinit
kinit: Cannot contact any KDC for realm 'REALM.DOMAIN.TLD' while getting initial credentials

Obviously Kerberos is not reachable. $netstat shows no "krb" process listening on any port, including port 88. No firewall is running.

But for all the troubleshooting advice to verify that Kerberos is listening on port 88, I can find no direction about what to do if it isn't!

How do I get Samba's Kerberos running?

已采纳解答

原帖链接 · feldmrob · CC BY-SA 4.0

Samba "Distribution-specific Package Installation" Wiki does not specify Active Directory installation requires explicit Kerberos installation on Ubuntu

But it is in Debian instructions, so I took a shot and now everything works:

  1. Installed missing libpam-krb5

  2. Re-provisioned domain

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-07-11)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。