Some Questions about smb.conf and join Samba4 to domian

Carlos Miguel Bustillo Rodriguez cbustillo at uclv.edu.cu
Mon Jun 11 14:07:36 MDT 2012


>I think the only issue is the failure to do DNS updates.  You should
focus on that issue, and I'll focus on removing the distracting errors.

>Andrew Bartlett

I configured from cero my Samba DC to join Windows 2003 domain and failed update DNS again:

/usr/local/samba/sbin/samba_dnsupdate: Failed update of 20 entries
[...]
../source4/dsdb/dns/dns_update.c:294: Failed DNS update - NT_STATUS_NOT_A_DIRECTORY

others errors:

/usr/local/samba/sbin/smbd: standard input is not a socket, assuming -D option
/usr/local/samba/sbin/smbd: Failed to remove Domain IDs protection
Could not determine hostname for target computer, cannot use kerberos
Could not determine hostname for target computer, cannot use kerberos

Now I am using Version 4.0.0beta2-GIT-0ea7152

I know the problem is witk DNS updates, but What is wrong?
I have configured /etc/krb5.conf with the following:
[libdefaults]
 dns_lookup_realm = true
 dns_lookup_kdc = true
 default_realm = UCLV4.CU

Befere join to domain, I testing the Kerberos configuration with kinit and klist and is successful.

I use virtual machine in my enviroment test. When I run "samba_updatedns --verbose", I get:
IPs: ['fe80::20c:29ff:fe7b:d943%eth0', '10.12.2.69']
Skipping PDC entry (SRV _ldap._tcp.pdc._msdcs.${DNSDOMAIN}                   ${HOSTNAME} 389) as we are not a PDC
Skipping PDC entry (SRV _ldap._tcp.pdc._msdcs.${DNSFOREST}                   ${HOSTNAME} 389) as we are not a PDC
Looking for DNS entry A uclv4.cu 10.12.2.69 as uclv4.cu.
Failed to find matching DNS entry A uclv4.cu 10.12.2.69
Looking for DNS entry A samba1.uclv4.cu 10.12.2.69 as samba1.uclv4.cu.
Failed to find DNS entry A samba1.uclv4.cu 10.12.2.69
Looking for DNS entry A gc._msdcs.uclv4.cu 10.12.2.69 as gc._msdcs.uclv4.cu.
Failed to find matching DNS entry A gc._msdcs.uclv4.cu 10.12.2.69
Looking for DNS entry CNAME af59f958-2224-4aee-a059-1176cc6ad48a._msdcs.uclv4.cu samba1.uclv4.cu as af59f958-2224-4aee-a059-1176cc6ad48a._msdcs.uclv4.cu.
Failed to find DNS entry CNAME af59f958-2224-4aee-a059-1176cc6ad48a._msdcs.uclv4.cu samba1.uclv4.cu
Looking for DNS entry SRV _kpasswd._tcp.uclv4.cu samba1.uclv4.cu 464 as _kpasswd._tcp.uclv4.cu.
Checking 0 100 464 win2k3.uclv4.cu. against SRV _kpasswd._tcp.uclv4.cu samba1.uclv4.cu 464
Failed to find matching DNS entry SRV _kpasswd._tcp.uclv4.cu samba1.uclv4.cu 464
Looking for DNS entry SRV _kpasswd._udp.uclv4.cu samba1.uclv4.cu 464 as _kpasswd._udp.uclv4.cu.
Checking 0 100 464 win2k3.uclv4.cu. against SRV _kpasswd._udp.uclv4.cu samba1.uclv4.cu 464
Failed to find matching DNS entry SRV _kpasswd._udp.uclv4.cu samba1.uclv4.cu 464
Looking for DNS entry SRV _kerberos._tcp.uclv4.cu samba1.uclv4.cu 88 as _kerberos._tcp.uclv4.cu.
Checking 0 100 88 win2k3.uclv4.cu. against SRV _kerberos._tcp.uclv4.cu samba1.uclv4.cu 88
Failed to find matching DNS entry SRV _kerberos._tcp.uclv4.cu samba1.uclv4.cu 88
Looking for DNS entry SRV _kerberos._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 88 as _kerberos._tcp.dc._msdcs.uclv4.cu.
Checking 0 100 88 win2k3.uclv4.cu. against SRV _kerberos._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 88
Failed to find matching DNS entry SRV _kerberos._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 88
Looking for DNS entry SRV _kerberos._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 88 as _kerberos._tcp.default-first-site-name._sites.uclv4.cu.
Checking 0 100 88 win2k3.uclv4.cu. against SRV _kerberos._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 88
Failed to find matching DNS entry SRV _kerberos._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 88
Looking for DNS entry SRV _kerberos._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 88 as _kerberos._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu.
Checking 0 100 88 win2k3.uclv4.cu. against SRV _kerberos._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 88
Failed to find matching DNS entry SRV _kerberos._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 88
Looking for DNS entry SRV _kerberos._udp.uclv4.cu samba1.uclv4.cu 88 as _kerberos._udp.uclv4.cu.
Checking 0 100 88 win2k3.uclv4.cu. against SRV _kerberos._udp.uclv4.cu samba1.uclv4.cu 88
Failed to find matching DNS entry SRV _kerberos._udp.uclv4.cu samba1.uclv4.cu 88
Looking for DNS entry SRV _ldap._tcp.uclv4.cu samba1.uclv4.cu 389 as _ldap._tcp.uclv4.cu.
Checking 0 100 389 win2k3.uclv4.cu. against SRV _ldap._tcp.uclv4.cu samba1.uclv4.cu 389
Failed to find matching DNS entry SRV _ldap._tcp.uclv4.cu samba1.uclv4.cu 389
Looking for DNS entry SRV _ldap._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 389 as _ldap._tcp.dc._msdcs.uclv4.cu.
Checking 0 100 389 win2k3.uclv4.cu. against SRV _ldap._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 389
Failed to find matching DNS entry SRV _ldap._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 389
Looking for DNS entry SRV _ldap._tcp.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268 as _ldap._tcp.gc._msdcs.uclv4.cu.
Checking 0 100 3268 win2k3.uclv4.cu. against SRV _ldap._tcp.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268
Failed to find matching DNS entry SRV _ldap._tcp.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268
Looking for DNS entry SRV _ldap._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 389 as _ldap._tcp.default-first-site-name._sites.uclv4.cu.
Checking 0 100 389 win2k3.uclv4.cu. against SRV _ldap._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 389
Failed to find matching DNS entry SRV _ldap._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 389
Looking for DNS entry SRV _ldap._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 389 as _ldap._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu.
Checking 0 100 389 win2k3.uclv4.cu. against SRV _ldap._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 389
Failed to find matching DNS entry SRV _ldap._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 389
Looking for DNS entry SRV _ldap._tcp.default-first-site-name._sites.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268 as _ldap._tcp.default-first-site-name._sites.gc._msdcs.uclv4.cu.
Checking 0 100 3268 win2k3.uclv4.cu. against SRV _ldap._tcp.default-first-site-name._sites.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268
Failed to find matching DNS entry SRV _ldap._tcp.default-first-site-name._sites.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268
Looking for DNS entry SRV _ldap._tcp.30bd0ac7-a9d0-4b20-94c6-6deb5bc7ec7e.domains._msdcs.uclv4.cu samba1.uclv4.cu 389 as _ldap._tcp.30bd0ac7-a9d0-4b20-94c6-6deb5bc7ec7e.domains._msdcs.uclv4.cu.
Checking 0 100 389 win2k3.uclv4.cu. against SRV _ldap._tcp.30bd0ac7-a9d0-4b20-94c6-6deb5bc7ec7e.domains._msdcs.uclv4.cu samba1.uclv4.cu 389
Failed to find matching DNS entry SRV _ldap._tcp.30bd0ac7-a9d0-4b20-94c6-6deb5bc7ec7e.domains._msdcs.uclv4.cu samba1.uclv4.cu 389
Looking for DNS entry SRV _gc._tcp.uclv4.cu samba1.uclv4.cu 3268 as _gc._tcp.uclv4.cu.
Checking 0 100 3268 win2k3.uclv4.cu. against SRV _gc._tcp.uclv4.cu samba1.uclv4.cu 3268
Failed to find matching DNS entry SRV _gc._tcp.uclv4.cu samba1.uclv4.cu 3268
Looking for DNS entry SRV _gc._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 3268 as _gc._tcp.default-first-site-name._sites.uclv4.cu.
Checking 0 100 3268 win2k3.uclv4.cu. against SRV _gc._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 3268
Failed to find matching DNS entry SRV _gc._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 3268
Calling nsupdate for A uclv4.cu 10.12.2.69
Failed nsupdate: A uclv4.cu 10.12.2.69 : [Errno 2] No such file or directory
Calling nsupdate for A samba1.uclv4.cu 10.12.2.69
Failed nsupdate: A samba1.uclv4.cu 10.12.2.69 : [Errno 2] No such file or directory
Calling nsupdate for A gc._msdcs.uclv4.cu 10.12.2.69
Failed nsupdate: A gc._msdcs.uclv4.cu 10.12.2.69 : [Errno 2] No such file or directory
Calling nsupdate for CNAME af59f958-2224-4aee-a059-1176cc6ad48a._msdcs.uclv4.cu samba1.uclv4.cu
Failed nsupdate: CNAME af59f958-2224-4aee-a059-1176cc6ad48a._msdcs.uclv4.cu samba1.uclv4.cu : [Errno 2] No such file or directory
Calling nsupdate for SRV _kpasswd._tcp.uclv4.cu samba1.uclv4.cu 464
Failed nsupdate: SRV _kpasswd._tcp.uclv4.cu samba1.uclv4.cu 464 : [Errno 2] No such file or directory
Calling nsupdate for SRV _kpasswd._udp.uclv4.cu samba1.uclv4.cu 464
Failed nsupdate: SRV _kpasswd._udp.uclv4.cu samba1.uclv4.cu 464 : [Errno 2] No such file or directory
Calling nsupdate for SRV _kerberos._tcp.uclv4.cu samba1.uclv4.cu 88
Failed nsupdate: SRV _kerberos._tcp.uclv4.cu samba1.uclv4.cu 88 : [Errno 2] No such file or directory
Calling nsupdate for SRV _kerberos._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 88
Failed nsupdate: SRV _kerberos._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 88 : [Errno 2] No such file or directory
Calling nsupdate for SRV _kerberos._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 88
Failed nsupdate: SRV _kerberos._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 88 : [Errno 2] No such file or directory
Calling nsupdate for SRV _kerberos._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 88
Failed nsupdate: SRV _kerberos._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 88 : [Errno 2] No such file or directory
Calling nsupdate for SRV _kerberos._udp.uclv4.cu samba1.uclv4.cu 88
Failed nsupdate: SRV _kerberos._udp.uclv4.cu samba1.uclv4.cu 88 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.uclv4.cu samba1.uclv4.cu 389
Failed nsupdate: SRV _ldap._tcp.uclv4.cu samba1.uclv4.cu 389 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 389
Failed nsupdate: SRV _ldap._tcp.dc._msdcs.uclv4.cu samba1.uclv4.cu 389 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268
Failed nsupdate: SRV _ldap._tcp.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 389
Failed nsupdate: SRV _ldap._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 389 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 389
Failed nsupdate: SRV _ldap._tcp.default-first-site-name._sites.dc._msdcs.uclv4.cu samba1.uclv4.cu 389 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.default-first-site-name._sites.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268
Failed nsupdate: SRV _ldap._tcp.default-first-site-name._sites.gc._msdcs.uclv4.cu samba1.uclv4.cu 3268 : [Errno 2] No such file or directory
Calling nsupdate for SRV _ldap._tcp.30bd0ac7-a9d0-4b20-94c6-6deb5bc7ec7e.domains._msdcs.uclv4.cu samba1.uclv4.cu 389
Failed nsupdate: SRV _ldap._tcp.30bd0ac7-a9d0-4b20-94c6-6deb5bc7ec7e.domains._msdcs.uclv4.cu samba1.uclv4.cu 389 : [Errno 2] No such file or directory
Calling nsupdate for SRV _gc._tcp.uclv4.cu samba1.uclv4.cu 3268
Failed nsupdate: SRV _gc._tcp.uclv4.cu samba1.uclv4.cu 3268 : [Errno 2] No such file or directory
Calling nsupdate for SRV _gc._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 3268
Failed nsupdate: SRV _gc._tcp.default-first-site-name._sites.uclv4.cu samba1.uclv4.cu 3268 : [Errno 2] No such file or directory
Failed update of 20 entries
root at samba1:~#

La Universidad Central "Marta Abreu" de Las Villas en su 60 Aniversario. Fundada el 30 de noviembre de 1952. Vis?tenos en:  http://www.uclv.edu.cu




More information about the samba-technical mailing list