Community Articles

Find and share helpful community-sourced technical articles.
Labels (1)
avatar

Q1) What is the difference between using the programs kadmin.local and kadmin, respectively?

A1) The difference between kadmin and kadmin.local is that kadmin.local directly accesses the KDC database (a file called principal in /var/kerberos/krb5kdc) and does not use Kerberos for authentication. Since kadmin.local directly accesses the KDC database, it must be run directly on the master KDC as a user with sufficient permissions to read the KDC database.

When using kadmin to administer the KDC database, the user is communicating with the kadmind daemon over the network and will authenticate using Kerberos to the KDC master. Hence, the first principal must already exist before connecting over the network—this is the motivation for the existence of kadmin.local. This also means the KDC administrator will need to kinit as the administrator principal (by default, admin/admin@REALM) to run kadmin from another box.

Q2) How can we restrict which users can administer the MIT-KDC service?

A2) There is an ACL, /var/kerberos/krb5kdc/kadm5.acl, which authorizes access to the KDC database.

By default, there is a line: */admin@REALM *

This provides authorization for all operations to all Kerberos principals that have an instance matching that form, like admin/admin@REALM

Q3) What local (POSIX) permissions are needed by MIT-KDC administrators?

It’s important to make a distinction between the user's network account and the associated Kerberos principal. The network account needs permissions to read the KDC database when running kadmin.local, per the above. If this user has sudo access on this box then this is sufficient (the KDC database is usually only readable by root).

Tangentially, this is a good motivation to run the KDC on a different box than one of the cluster hosts, for separation of concerns between cluster and KDC administrators.

1,067 Views