我刚刚使用Samba 提供的指南设置了 Samba 4 Active Directory 域。到目前为止一切顺利,我设法按照设置 Samba AD 成员服务器指南将我的文件服务器加入到该域。但是,我似乎无法让我的 Windows 8.1 Professional 设备加入此域。我在 Samba 站点上找到了将 Windows 客户端加入域指南,但这要么引发错误“指定的域不存在或无法联系”(当我以全部大写形式键入域名时)或引发更详细的错误(当我输入小写的域名时):
Note: This information is intended for a network administrator. If you are not your network's administrator, notify the administrator that you received this information, which has been recorded in the file C:\Windows\debug\dcdiag.txt.
The following error occurred when DNS was queried for the service location (SRV) resource record used to locate an Active Directory Domain Controller (AD DC) for domain "samba.local":
The error was: "DNS name does not exist."
(error code 0x0000232B RCODE_NAME_ERROR)
The query was for the SRV record for _ldap._tcp.dc._msdcs.samba.local
Common causes of this error include the following:>
- The DNS SRV records required to locate a AD DC for the domain are not registered in DNS. These records are registered with a DNS server automatically when a AD DC is added to a domain. They are updated by the AD DC at set intervals. This computer is configured to use DNS servers with the following IP addresses:
192.168.1.2
- One or more of the following zones do not include delegation to its child zone:
samba.local
local
. (the root zone)
我检查了/var/lib/samba/private/dns_update_list
文件,它在里面。我唯一注意到的是,它前面有一个检查是否是读/写 DC。确切的行说
${IF_RWDC}SRV _ldap._tcp.dc._msdcs.${DNSDOMAIN} ${HOSTNAME} 389
我的 DNS 域名(在配置期间指定)是samba.local
. 有关设置的更多信息:
Samba DC version: 4.1.13-Debian (running on Debian testing)
Member server version: 4.1.14 (running on Fedora 21)
Windows versions: 8.1 Professional and 10 Pro Tech Preview (both fully up to date)
Server Role: active directory domain controller
Hostname: DC1
NetBIOS Domain: SAMBA
DNS Domain: samba.local
我之前在 Windows 域方面的唯一经验是在 Server 2003R2 和 Windows XP 上,所以我对新版本的速度并不了解。
我的 Windows 机器设置了 IPv6,并结合了 IPv6 DNS 服务器。在完全禁用 IPv6 之后(这有点矫枉过正但很容易),一切都通过了 IPv4 并选择了正确的 DNS 服务器并能够解析域。
所以,尝试:
那为我修好了:)
将 Windows 机器的 DNS 服务器更改为域控制器为我修复了它。