在我将域服务器从 Ubuntu 18.04 更新到 20.04 后NT 域不再有效。Windows 10 计算机上的域登录失败。(Ubuntu 18.04 不再受支持)。
因此,我设置了一台新的(虚拟)机器,该机器装有 Ubuntu 20.04 和一个新的域名,以便解决此问题。我已“成功”将一台 Windows 10 计算机添加到域中(“成功”的意思是“没有任何错误消息”),但当我重新启动该 Win10 计算机时,域登录失败并显示错误:“我们无法为您登录...因为您的域不可用。”
如果我使用本地帐户登录,我可以使用域帐户访问域控制器上的共享(使用不同的凭据连接)。
这是我的 smb.conf:
# Global parameters
[global]
add machine script = /usr/sbin/useradd -N -g computers -c "Computer %u" -d /dev/null -s /bin/false %u
dns proxy = No
domain logons = Yes
domain master = Yes
log file = /var/log/samba/log.%m
logon drive = z:
logon home = \\dcubuntu18\netlogon
logon path = \\%N\profiles\%U
logon script = logon.cmd
map to guest = Bad User
max log size = 1000
name resolve order = lmhosts host wins bcast
obey pam restrictions = Yes
os level = 65
pam password change = Yes
panic action = /usr/share/samba/panic-action %d
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
passwd program = /usr/bin/passwd %u
security = USER
server role = classic primary domain controller
server string = %h server
time server = Yes
unix extensions = No
unix password sync = Yes
usershare allow guests = Yes
wins support = Yes
workgroup = TWMDOMAIN
idmap config * : backend = tdb
admin users = @DomainAdmins
[homes]
browseable = No
comment = Home Directories
valid users = %S
[netlogon]
comment = Network Logon Service
guest ok = Yes
path = /home/netlogon
[printers]
browseable = No
comment = All Printers
create mask = 0700
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printers
[etc_samba]
browseable = No
path = /etc/samba
(etc_samba 共享允许我使用 Windows 工具查看 smb.conf 文件。这当然不是生产系统。)
有人可以与我分享一个可用的 smb.conf 文件以及有关如何使用 Ubuntu 20.04(Samba 版本 4.7.6-Ubuntu)或更高版本和 NT 域(不是 AD 域)设置新的 Samba 服务器的其他信息吗?