SAMBA:用户 root 不存在

SAMBA:用户 root 不存在

我正在关注UBUNTU 服务器指南安装并配置 SAMBA:

一切都按提到的那样进行,除了当我尝试通过

smbldap-populate

我收到错误:

Please provide a password for the domain root:
/usr/sbin/smbldap-passwd: user root doesn't exist

有人能帮我解决这个问题吗?请简要解释一下您的解决方案。

提前致谢!

编辑:我试图修改 /etc/smbldap-tools/smbldap_bind.conf 文件

slaveDN="cn=admin,dc=example,dc=local"
slavePw="passwd"
masterDN="cn=admin,dc=example,dc=local"
masterPw="passwd"

并为 LDAP 树提供相同的密码:

smbpasswd -w passwd

(passwd 是我安装 LDAP 时提供的密码)

现在我运行时出现以下错误smbldap-populate

entry dc=example,dc=com already exist.
entry ou=People,dc=example,dc=com already exist.
entry ou=Group,dc=example,dc=com already exist.
entry ou=Machines,dc=example,dc=com already exist.
entry ou=Idmap,dc=example,dc=com already exist.
entry sambaDomainName=EXAMPLE.COM,dc=example,dc=com already exist. Updating it...

failed to modify entry: modifications require authentication at /usr/sbin/smbldap-populate line 493.
entry uid=root,ou=People,dc=example,dc=com already exist.
entry uid=nobody,ou=People,dc=example,dc=com already exist.
entry cn=Domain Admins,ou=Group,dc=example,dc=com already exist.
entry cn=Domain Users,ou=Group,dc=example,dc=com already exist.
entry cn=Domain Guests,ou=Group,dc=example,dc=com already exist.
entry cn=Domain Computers,ou=Group,dc=example,dc=com already exist.
entry cn=Administrators,ou=Group,dc=example,dc=com already exist.
entry cn=Account Operators,ou=Group,dc=example,dc=com already exist.
entry cn=Print Operators,ou=Group,dc=example,dc=com already exist.
entry cn=Backup Operators,ou=Group,dc=example,dc=com already exist.
entry cn=Replicators,ou=Group,dc=example,dc=com already exist.

Please provide a password for the domain root:
Changing UNIX and samba passwords for root
New password:
Retype new password:
Use of uninitialized value in exec at /usr/sbin/smbldap-passwd line 192, <STDIN> line 2.
Can't exec "": No such file or directory at /usr/sbin/smbldap-passwd line 192, <STDIN> line 2.
Use of uninitialized value $smbldap_tools::config{"slappasswd"} in string at /usr/share/perl5/smbldap_tools.pm line 1541, <STDIN> line 2.
Can't exec "": No such file or directory at /usr/share/perl5/smbldap_tools.pm line 1541, <STDIN> line 2.
readline() on closed filehandle BUF at /usr/share/perl5/smbldap_tools.pm line 1545.
Failed to generate password hash!
Failed to generate password hash!

答案1

好的,解决了。这是 smbldap.conf 和 smbldap_bind.conf 文件的问题。由于某种原因,其中的用户凭据与我输入的凭据不匹配。

运行smbldap-config并重建上述文件可以让您重置这些信息。

相关内容