[Samba] kinit: Cannot contact any KDC for realm 'MY.LOCAL.' while getting initial credentials

Lluís Danés lluisdanes at gmail.com
Mon Sep 14 22:59:46 UTC 2015


Hi,

I've compiled and build samba 4.3.0 source using the samba wiki page and I
have run the next comands:

(outside of the source folder)
1- ./configure --with-acl-support
2- make

(also outside of the source4 folder since it give me some errors, the wiki
was wrong becuase it says inside)
3- make install

After that i set up the AD DC using the wiki page. All works but when i try:

kinit administrator at MY.LOCAL it gives kinit: Cannot contact any KDC for
realm 'MY.LOCAL.' while getting initial credentials

this is my configurations:

/etc/hosts
127.0.0.1       localhost.localdomain   localhost
192.168.0.197   DEBIAN.my.local      DEBIAN

/etc/resolv.conf
domain my.local
nameserver 192.168.0.197

/usr/local/samba/etc/smb.conf
# Global parameters
[global]
        workgroup = MY
        realm = MY.LOCAL
        netbios name = DEBIAN
        server role = active directory domain controller
        dns forwarder = 8.8.8.8
        idmap_ldb:use rfc2307 = yes

[netlogon]
        path = /usr/local/samba/var/locks/sysvol/my.local/scripts
        read only = No
        write ok = Yes

[sysvol]
        path = /usr/local/samba/var/locks/sysvol
        read only = No
        write ok = Yes


/etc/krb5.conf
[libdefaults]
        default_realm = MY.LOCAL.
        dns_lookup_realm = false
        dns_lookup_kdc = true


This was the output of provision

A Kerberos configuration suitable for Samba 4 has been generated at
/usr/local/samba/private/krb5.conf
Setting up fake yp server settings
Once the above files are installed, your Samba4 server will be ready to use
Server Role:           active directory domain controller
Hostname:              DEBIAN
NetBIOS Domain:        MY
DNS Domain:            my.local



I dont know what happens :s, it was working yesterday using the debian
vendor's samba package (4.1.17-debian). Using the same steps. But now kinit
doesn't work anymore. The dns is resolved properely. I've tested all the
other things that the wiki setup for active directroy domain controller
says and all of them work.


Thanks in advance.






-- 
Lluís Danés


More information about the samba mailing list