1.3.3. Red Hat Enterprise IPA, Kerberos, and DNS

1.3.3. Red Hat Enterprise IPA, Kerberos, and DNS

As discussed in Section 1.5.1, “How Red Hat Enterprise IPA and DNS Work Together”, IPA relies heavily on a fully-functional DNS for correct operation. Because of its tight integration with IPA, Kerberos also requires that the DNS be configured correctly.

1.3.3.1. Using CNAME and A Records

When Kerberos requests a ticket to begin authentication, it always resolves a CNAME to its corresponding A record; Kerberos libraries never use a CNAME to request a ticket. This means that when you create service or host principals you need to use the host A record. Consider the following zone file entry:

CNAME www.example.com -> A name web-01.example.com

If you use the following command to connect to the host via SSH, and want GSSAPI authentication:

$ ssh www.example.com

it will actually request a ticket for host/web-01.example.com@EXAMPLE.COM

This is the service principal that you must use to obtain and save tickets in /etc/krb5.keytab for this host.