I'm trying config samba4 as domain controller following samba wiki

/etc/resolv.conf :

domain transbekk.lan

/etc/hostname :



# Global parameters
    workgroup = TRANSBEKK
    realm = TRANSBEKK.LAN
    netbios name = DOMAIN
    server role = active directory domain controller
    dns forwarder =,
    idmap_ldb:use rfc2307 = yes

    path = /var/lib/samba/sysvol/transbekk.lan/scripts
    read only = No

    path = /var/lib/samba/sysvol
    read only = No


    default_realm = TRANSBEKK.LAN
    dns_lookup_realm = false
    dns_lookup_kdc = true  

When I have tried to test kerberos configuration (kinit administrator) an error occur:

kinit: Cannot find KDC for realm "TRANSBEKK.LAN" while getting initial credentials

Please what is wrong ? Thanks

  • You most likely skipped a step (or several). Go back to the wiki and compare what you were doing to what's present there. – Michael Hampton Feb 23 '17 at 23:24
  • sure, but i don't see where – Mezoo Feb 24 '17 at 0:22
  • can you share what version of samba you used that correct you issue? – Cesar Nov 3 '19 at 7:15

Finally, It was a winbind issue with this version. Laster samba's version resolves my problem.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.