How Do You Troubleshoot The Kerberos Error ‘kinit: Cannot find KDC for realm “CONTINUALINTEGRATION.COM” while getting initial credentials’?

Problem Scenario
You run a "kinit" command. But you receive this:

'kinit: Cannot find KDC for realm "CONTINUALINTEGRATION.COM" while getting initial credentials'

What should you do?

Solution
Look at the /etc/krb5.conf file. Look at the REALM section. Does it look like this?

[realms]
EXAMPLE.COM = 

You need to change "EXAMPLE.COM" to your domain name.

Look also at the libdefaults section. There is a stanza for default_realm. This assignment must be consistent with the [realms] section.

Leave a comment

Your email address will not be published. Required fields are marked *