Realm configuration files
With this file in place, we can now create the krb5.conf file that will be used for every host in the UNIX.SAMPLE.COM Kerberos realm. Note the additional entries in the domain_realm stanza, as there is no unix.sample.com DNS domain that contains all of the hosts in the UNIX.SAMPLE.COM Kerberos realm. As a result, the mapping between DNS names and the corresponding Kerberos realm must be specified explicitly.
[libdefaults]
default_realm = UNIX.SAMPLE.COM
[realms]
UNIX.SAMPLE.COM = {
kdc = unixkdc1.sample.com:88
kdc = unixkdc2.sample.com:88
admin_server = unixkdc1.sample.com
};
SAMPLE.COM = {
kdc = exchange.sample.com:88
};
[domain_realm]
.sample.com = SAMPLE.COM
sample.com = SAMPLE.COM
.hosting.sample.com = UNIX.SAMPLE.COM
hosting.sample.com = UNIX.SAMPLE.COM
dns.sample.com = UNIX.SAMPLE.COM
billing.sample.com = UNIX.SAMPLE.COM
unixkdc1.sample.com = UNIX.SAMPLE.COM
unixkdc2.sample.com = UNIX.SAMPLE.COM
[logging]
kdc = FILE:/var/log/kdc.log
admin_server = FILE:/var/log/kadmin.logThis file is installed on all machines that are members of the UNIX.SAMPLE.COM Kerberos realm. The logging stanza is only important for the KDC machines, but will do no harm if it is included with the krb5.conf file installed on other machines as well.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access