Create a krb5.conf file

Before you can authenticate connections with Kerberos, you need to create a storage space for your Kerberos configuration information. This section shows you how to create a krb5.conf file to store your Kerberos information.

Steps

  1. Open a terminal session.
  2. Run the following command:
  3. sudo vi /etc/krb5.conf
  4. Ensure that you have the correct information for the following, as shown also in the example screenshot below:
    1. default_realm
    2. default_ccache_name
    3. [realms]
    4. kdc
    5. [domain_realm]

    1. krb5.conf example
  5. Run the following command to add your hostname:
  6. sudo vi /etc/hosts
  7. Enter a hostname, for example localhost.

Note Ensure that the host where the krb5.conf is configured can reach the KDC server.