Cannot determine realm for host


When running kinit using a keytab as input, kinit outputs this error message:

# kinit -k -t /tmp/drum00host.keytab 
kinit: Cannot determine realm for host (principal host/


kinit wants to authenticate the host on which it is running with the Kerberos server appropriate for the realm. It needs to work out what that realm is and cannot.

Fixing the problem

Add an appropriate line to /etc/krb5.conf (such as the underlined) like this:


6 Responses so far.

  1. Alana says:
    I see you don’t monetize your blog, i think there is one opportunity to
    earn extra money on your website, search in google for;
    idol4jp makes money
  2. Kristy says:
    Your website can go viral, you need some initial
    traffic only. How to get initial traffic? Search in google for: nhuum’s seo
  3. Ezra Jablon says:
    Wow, amazing blog layout! How lengthy have you been blogging for? you make blogging glance easy. The whole look of your web site is excellent, as well as the content material!
  4. Tyya says:
    Heck yeah this is excalty what I needed.
  5. Ben says:
    In my case, I had to set dns_canonicalize_hostname = true underneath [libdefaults] in /etc/krb5.conf