
Ich folge demUBUNTU-ServerhandbuchSo installieren und konfigurieren Sie SAMBA:
Alles verlief genau wie beschrieben, außer wenn ich versuche, LDAP-Objekte zu samba
smbldap-populate
Ich erhalte die Fehlermeldung:
Please provide a password for the domain root:
/usr/sbin/smbldap-passwd: user root doesn't exist
Kann mir jemand helfen, das Problem zu lösen? Bitte erläutern Sie kurz Ihre Lösung.
Dank im Voraus!
EDIT: Ich habe versucht, die Datei /etc/smbldap-tools/smbldap_bind.conf zu ändern
slaveDN="cn=admin,dc=example,dc=local"
slavePw="passwd"
masterDN="cn=admin,dc=example,dc=local"
masterPw="passwd"
und gab dem LDAP-Baum dasselbe Passwort:
smbpasswd -w passwd
(passwd ist dasselbe Passwort, das ich bei der Installation von LDAP angegeben habe)
Jetzt erhalte ich die folgende Fehlermeldung, wenn ichsmbldap-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!
Antwort1
Okay, das ist gelöst. Es ist ein Problem mit den Dateien smbldap.conf und smbldap_bind.conf. Aus irgendeinem Grund stimmten die darin enthaltenen Benutzeranmeldeinformationen nicht mit denen überein, die ich eingegeben hatte.
Durch Ausführen smbldap-config
und Neuerstellen der oben genannten Dateien können Sie diese Informationen zurücksetzen.