Samba 域控制器配置错误:域不能等于短主机名

Samba 域控制器配置错误:域不能等于短主机名

我正在尝试配置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 命名架构中的名称冲突。

相关内容