Habe das Problem mittlerweile lösen können. Hatte ein typischen Typo in der /etc/hosts. Daher konnte er den Namen nicht auflösen.
Allerdings stehe ich gerade vor einem weiteren Problem.
Ich wollte gerade User über LAM User anlegen und bekomme die Meldung, dass keine Domäne eingerichtet ist. Erstelle ich manuell eine Domäne über LAM, so möchte er die SID über den Befehl "net getlocalsid" haben.
Gebe ich den Befehl ein erhalte ich folgendes:
smbldap_search_domain_info: Adding domain info for XYZ failed with NT_STATUS_UNSUCCESSFUL
pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain. We cannot work reliably without it.
pdb backend ldapsam:"ldap://pdc.xyz.com/" did not correctly init (error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO)
WARNING: Could not open passdb
Gucke ich in die /var/log/samba/log.smbd so steht da folgendes drin.
root@pdc:~# tail /var/log/samba/log.smbd
standard input is not a socket, assuming -D option
[2015/03/25 14:35:07.018514, 1, pid=1407, effective(0, 0), real(0, 0)] ../source3/passdb/pdb_ldap_util.c:236(add_new_domain_info)
add_new_domain_info: failed to add domain dn= sambaDomainName=XYZ,dc=xyz,dc=com with: Invalid DN syntax
invalid DN
[2015/03/25 14:35:07.018558, 0, pid=1407, effective(0, 0), real(0, 0)] ../source3/passdb/pdb_ldap_util.c:313(smbldap_search_domain_info)
smbldap_search_domain_info: Adding domain info for JONAS-JANSEN failed with NT_STATUS_UNSUCCESSFUL
[2015/03/25 14:35:07.018584, 0, pid=1407, effective(0, 0), real(0, 0)] ../source3/passdb/pdb_ldap.c:6529(pdb_ldapsam_init_common)
pdb_init_ldapsam: WARNING: Could not get domain info, nor add one to the domain. We cannot work reliably without it.
[2015/03/25 14:35:07.018604, 0, pid=1407, effective(0, 0), real(0, 0)] ../source3/passdb/pdb_interface.c:178(make_pdb_method_name)
pdb backend ldapsam:"ldap://pdc.xyz/" did not correctly init (error was NT_STATUS_CANT_ACCESS_DOMAIN_INFO)
Irgendwo is da der Wurm drin.
Vllt noch zur Info, folgende HowTo's habe ich befolgt.
http://www.unixmen.com/setup-samba-domain-controller-with-openldap-backend-in-ubuntu-13-04/
https://www.howtoforge.com/postfix-virtual-hosting-with-ldap-backend-and-dovecot-imap-pop3-on-ubuntu-trusty-tahr-14.04
Vllt. kann mir hier jemand kurz helfen.
Gruß
Jonas
EDIT:
Habe nochmal bei 0 angefangen und alles neu aufgesetzt. Jetzt klappts!