Playground II
Explore practical Kerberos administration by learning how to create keytab files and manage encryption keys with ktutil. Understand how to authenticate using keytabs and perform remote KDC database changes via the kadmin utility and kadmind server. This lesson guides you through keytab export, access control modifications, and remote principal management to enhance your Kerberos setup skills.
In this lesson, we’ll see how we can create keytabs and use kadmin to make KDC database changes. The detailed commands to execute and the terminal to execute them appear below, followed by a discussion of the exercise.
ktutil - Exporting creds to Keytab file
Using ktutil
We can export the Kerberos credentials to a keytab file, which is short for the key table. A keytab is a file containing pairs of Kerberos principals and encrypted keys that are derived from the Kerberos password. You can use a keytab file to authenticate to various remote systems using Kerberos without entering a password. We’ll use the ktutil utility to export the keytab for the user Laila. The sequence of commands to do so is shown below:
ktutil
ktutil: add_entry -password -p ...