![Samba 域控制器配置错误:域不能等于短主机名](https://linux22.com/image/1508921/Samba%20%E5%9F%9F%E6%8E%A7%E5%88%B6%E5%99%A8%E9%85%8D%E7%BD%AE%E9%94%99%E8%AF%AF%EF%BC%9A%E5%9F%9F%E4%B8%8D%E8%83%BD%E7%AD%89%E4%BA%8E%E7%9F%AD%E4%B8%BB%E6%9C%BA%E5%90%8D.png)
我正在尝试配置samba 域控制器(使用活动目录)码头工人基于 ubuntu 的容器,当我尝试这样做时领域:NOURELDIN.LOCAL和域名:NOURELDIN它工作得很好,但是领域:DC1.NOURELDIN.LOCAL和域:DC1,我得到以下错误我不知道为什么,(我总是在开始新的配置之前删除 smb.conf,并且 samba 是全新安装的)。
我不明白为什么会出现这个错误,我非常感谢任何能够解决这个问题的帮助。
root@dc1:~/samba-4.5.0# samba-tool domain provision --use-rfc2307 --interactive
Realm [NOURELDIN.LOCAL]: DC1.NOURELDIN.LOCAL
Domain [DC1]:
Server Role (dc, member, standalone) [dc]:
DNS backend (SAMBA_INTERNAL, BIND9_FLATFILE, BIND9_DLZ, NONE) [SAMBA_INTERNAL]:
DNS forwarder IP address (write 'none' to disable forwarding) [192.168.1.1]:
Administrator password:
Retype password:
You are not root or your system do not support xattr, using tdb backend for attributes.
not using extended attributes to store ACLs and other metadata. If you intend to use this provision in production, rerun the script as root on a system supporting xattrs.
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - ProvisioningError: guess_names: Domain 'DC1' must not be equal to short host name 'DC1'!
File "/usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py", line 461, in run
nosync=ldap_backend_nosync, ldap_dryrun_mode=ldap_dryrun_mode)
File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 2028, in provision
sitename=sitename, rootdn=rootdn, domain_names_forced=(samdb_fill == FILL_DRS))
File "/usr/local/samba/lib/python2.7/site-packages/samba/provision/__init__.py", line 627, in guess_names
raise ProvisioningError("guess_names: Domain '%s' must not be equal to short host name '%s'!" % (domain, netbiosname))
答案1
您正在尝试使用与主机名 (DC1) 相等的域名部分 [dc1].noureldin.local。主机的 FQDN 将为 dc1.dc1.noureldin.local,与 Windows 命名架构中的名称冲突。