错误(): 配置失败

错误(): 配置失败
[root@pubby samba-4.8.3]# samba-tool domain provision
Realm [LOCAL]: Sang.com
 Domain [Sang]: Sang.com
 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.254.2]: 
Administrator password: 
Administrator password does not meet the default minimum password length requirement (7 characters).
Administrator password: 
Retype password: 
ERROR(<class 'samba.provision.ProvisioningError'>): Provision failed - ProvisioningError: guess_names: 'realm =' was not specified in supplied /etc/samba/smb.conf.  Please remove the smb.conf file and let provision generate it
  File "/usr/lib64/python2.7/site-packages/samba/netcmd/domain.py", line 500, in run
    plaintext_secrets=plaintext_secrets)
  File "/usr/lib64/python2.7/site-packages/samba/provision/__init__.py", line 2116, in provision
    sitename=sitename, rootdn=rootdn, domain_names_forced=(samdb_fill == FILL_DRS))
  File "/usr/lib64/python2.7/site-packages/samba/provision/__init__.py", line 620, in guess_names
    raise ProvisioningError("guess_names: 'realm =' was not specified in supplied %s.  Please remove the smb.conf file and let provision generate it" % lp.configfile)

答案1

首先,升级,从 Samba 的角度来看,4.8.3 已经是 EOL 了。接下来,正确设置您的 DNS,您的机器似乎正在使用“.local”,现在您可能从 Avahi 获取此信息,或者您可以这样设置,但无论哪种方式,它都是错误的。

答案2

这有点旧了,但问题和修复似乎在错误的第一行

... 提供的 /etc/samba/smb.conf 中未指定“realm =”。请删除 smb.conf 文件并让 provision 生成它

此外,您似乎在领域和域中都使用了 sang.com。域应该只是 sang

以下是一些我认为有用的文档:

Samba AD 设置

相关内容