我刚刚使用Samba 提供的指南到目前为止一切顺利,我按照以下方法成功将我的文件服务器加入到这个域中设置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 上,所以我对新版本并不太了解。
答案1
将 Windows 机器的 DNS 服务器更改为域控制器就帮我解决了这个问题。
答案2
我的 Windows 机器已设置 IPv6,并结合了 IPv6 DNS 服务器。在完全禁用 IPv6(这有点过分,但很容易)后,一切都通过 IPv4 进行,并选择了正确的 DNS 服务器,并能够解析域。
因此,请尝试:
- 禁用 IPv6(快速而粗略)
- 将 IPv6 DNS 服务器设置为 Samba 服务器
这对我来说已经解决了 :)