[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


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       localhost.localdomain   localhost   DEBIAN.my.local      DEBIAN

domain my.local

# Global parameters
        workgroup = MY
        realm = MY.LOCAL
        netbios name = DEBIAN
        server role = active directory domain controller
        dns forwarder =
        idmap_ldb:use rfc2307 = yes

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

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

        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
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