KDC.CONF(5)
π kdc.conf π
okay bestie, gather round, because this is the manual page for kdc.conf β the Kerberos V5 KDC configuration file β and honestly? it's giving main character energy for your whole realm. π
β¨ NAME β¨
kdc.conf β the Kerberos V5 KDC configuration file π
so like. the kdc.conf file supplements krb5.conf(5) for programs that are typically only used on a KDC β think krb5kdc(8) and kadmind(8) (the daemons) and the kdb5_util(8) program. π«Ά
and here's the cute part: relations documented here may also be specified in krb5.conf. for the KDC programs mentioned above, krb5.conf and kdc.conf get merged into a single configuration profile. no cap. it's a collab. π€
normally, the kdc.conf file lives in the KDC state directory, /var/kerberos/krb5kdc. you can override that default location by setting the environment variable KRB5_KDC_PROFILE. slay, you get to choose where it lives. π
β οΈ not me forgetting this one: you need to restart the KDC daemon for any configuration changes to take effect. like, the file changing does nothing until you bounce the daemon. periodt. π
π STRUCTURE π
the kdc.conf file is set up in the same format as the krb5.conf(5) file. that's it, that's the whole vibe. copy the format, keep the format. β¨
πΈ SECTIONS πΈ
the kdc.conf file may contain the following sections:
[kdcdefaults]β default values for KDC behavior[realms]β realm-specific database configuration and settings[dbdefaults]β default database settings[dbmodules]β per-database settings[logging]β controls how Kerberos daemons perform logging
π§ [kdcdefaults] π§
some relations in the [kdcdefaults] section specify default values for realm variables β they get used if the [realms] subsection doesn't contain a relation for the tag. π see the [realms] section for the definitions of these relations:
host_based_serviceskdc_listenkdc_portskdc_tcp_listenkdc_tcp_portsno_host_referralrestrict_anonymous_to_tgt
the following [kdcdefaults] variables have no per-realm equivalent (they're one-of-a-kind, no twin, iconic solo energy π
):
kdc_max_dgram_reply_size
specifies the maximum packet size that can be sent over UDP. the default value is 4096 bytes. π¦
kdc_tcp_listen_backlog
(Integer.) set the size of the listen queue length for the KDC daemon. heads up β the value may be limited by OS settings. the default value is 5. ποΈ
spake_preauth_kdc_challenge
(String.) specifies the group for a SPAKE optimistic challenge. see the spake_preauth_groups variable in [libdefaults] for possible values. the default is not to issue an optimistic challenge. π« (New in release 1.17.)
π [realms] π
each tag in the [realms] section is the name of a Kerberos realm. the value of the tag is a subsection where the relations define KDC parameters for that particular realm. like, one realm, one little subsection, everything it needs. π«Ά
the following example shows how to define one parameter for the ATHENA.MIT.EDU realm:
[realms]
ATHENA.MIT.EDU = {
max_renewable_life = 7d 0h 0m 0s
}
the following tags may be specified in a [realms] subsection:
acl_file
(String.) location of the access control list file that kadmind(8) uses to determine which principals are allowed which permissions on the Kerberos database. π to operate without an ACL file, set this relation to the empty string with acl_file = "". the default value is /var/kerberos/krb5kdc/kadm5.acl. for more information on the Kerberos ACL file see kadm5.acl(5).
database_module
(String.) this relation indicates the name of the configuration section under [dbmodules] for database-specific parameters used by the loadable database library. the default value is the realm name. if this configuration section does not exist, default values will be used for all database parameters. ποΈ
database_name
(String, deprecated.) this relation specifies the location of the Kerberos database for this realm, if the DB2 module is being used and the [dbmodules] configuration section does not specify a database name. the default value is /var/kerberos/krb5kdc/principal. β οΈ deprecated bestie, it's on the way out.
default_principal_expiration
(Absolute time string.) specifies the default expiration date of principals created in this realm. the default value is 0, which means no expiration date β live forever, I guess. β³
default_principal_flags
(Flag string.) specifies the default attributes of principals created in this realm. the format for this string is a comma-separated list of flags, with + before each flag that should be enabled and - before each flag that should be disabled. βοΈ
the postdateable, forwardable, tgt-based, renewable, proxiable, dup-skey, allow-tickets, and service flags default to enabled. π
there are a number of possible flags:
allow-ticketsβ enabling this flag means that the KDC will issue tickets for this principal. disabling this flag essentially deactivates the principal within this realm. π΄dup-skeyβ enabling this flag allows the KDC to issue user-to-user service tickets for this principal.forwardableβ enabling this flag allows the principal to obtain forwardable tickets.hwauthβ if this flag is enabled, then the principal is required to preauthenticate using a hardware device before receiving any tickets. πno-auth-data-requiredβ enabling this flag prevents PAC or AD-SIGNEDPATH data from being added to service tickets for the principal.ok-as-delegateβ if this flag is enabled, it hints the client that credentials can and should be delegated when authenticating to the service.ok-to-auth-as-delegateβ enabling this flag allows the principal to use S4USelf tickets.postdateableβ enabling this flag allows the principal to obtain postdateable tickets.preauthβ if this flag is enabled on a client principal, then that principal is required to preauthenticate to the KDC before receiving any tickets. on a service principal, enabling this flag means that service tickets for this principal will only be issued to clients with a TGT that has the preauthenticated bit set. πproxiableβ enabling this flag allows the principal to obtain proxy tickets.pwchangeβ enabling this flag forces a password change for this principal. πpwserviceβ if this flag is enabled, it marks this principal as a password change service. this should only be used in special cases β for example, if a user's password has expired, then the user has to get tickets for that principal without going through the normal password authentication in order to be able to change the password.renewableβ enabling this flag allows the principal to obtain renewable tickets.serviceβ enabling this flag allows the KDC to issue service tickets for this principal. in release 1.17 and later, user-to-user service tickets are still allowed if thedup-skeyflag is set.tgt-basedβ enabling this flag allows a principal to obtain tickets based on a ticket-granting-ticket, rather than repeating the authentication process that was used to obtain the TGT.
dict_file
(String.) location of the dictionary file containing strings that are not allowed as passwords. the file should contain one string per line, with no additional whitespace. if none is specified, or if there is no policy assigned to the principal, no dictionary checks of passwords will be performed. π
disable_pac
(Boolean value.) if true, the KDC will not issue PACs for this realm, and S4U2Self and S4U2Proxy operations will be disabled. the default is false, which will permit the KDC to issue PACs. π¦ New in release 1.20.
encrypted_challenge_indicator
(String.) specifies the authentication indicator value that the KDC asserts into tickets obtained using FAST encrypted challenge pre-authentication. β¨ New in 1.16.
host_based_services
(Whitespace- or comma-separated list.) lists services which will get host-based referral processing even if the server principal is not marked as host-based by the client. π₯οΈ
iprop_enable
(Boolean value.) specifies whether incremental database propagation is enabled. the default value is false. π
iprop_ulogsize
(Integer.) specifies the maximum number of log entries to be retained for incremental propagation. the default value is 1000. prior to release 1.11, the maximum value was 2500. π New in release 1.19.
iprop_master_ulogsize
the name for iprop_ulogsize prior to release 1.19. its value is used as a fallback if iprop_ulogsize is not specified. πͺ
iprop_replica_poll
(Delta time string.) specifies how often the replica KDC polls for new updates from the primary. the default value is 2m (that is, two minutes). β° New in release 1.17.
iprop_slave_poll
(Delta time string.) the name for iprop_replica_poll prior to release 1.17. its value is used as a fallback if iprop_replica_poll is not specified. πͺ
iprop_listenβ (a whitespace- or comma-separated list, bestie) this one tells thekadmind(8)daemon where to listen for iprop RPC. Every entry can be an interface address, a port number, or an address and a port number glued together with a colon. If your address has colons in it, wrap it in square brackets, okay? If you don't give an address, the wildcard address gets used. And heads up: ifkadmindcan't bind to any of the addresses you listed, it straight up refuses to start. The default (wheniprop_enableistrue) is to bind to the wildcard address on the port fromiprop_port. New in release 1.15. β¨iprop_portβ (a port number) the port for incremental propagation. Wheniprop_enableistrue, this relation is required in the replica KDC config file, and either this one oriprop_listenis required in the primary config file, because there is literally no default port number, iykyk. Any port numbers you put insideiprop_listenentries override this one for thekadmind(8)daemon. πiprop_resync_timeoutβ (a delta time string) how long to wait for a full propagation to finish. It's optional in config files, and only replica KDCs use it. Default is 5 minutes (5m). New in release 1.11. β³iprop_logfileβ (a file name) where the update log file for the realm database lives. The default is to take thedatabase_nameentry from therealmssection of the krb5 config file and slap.ulogon the end. (NOTE: ifdatabase_nameisn't specified in therealmssection β maybe because the LDAP database back end is in play, or the file name is given in the[dbmodules]section β then the hard-coded default fordatabase_namegets used. Working out theiprop_logfiledefault will not use values from the[dbmodules]section.) πkadmind_listenβ (a whitespace- or comma-separated list) where thekadmind(8)daemon listens for kadmin RPC. Each entry can be an interface address, a port number, an address and port number separated by a colon, or a UNIX domain socket pathname. Colons in the address? Square brackets, bestie. No address specified? Wildcard address. Wanna disable kadmin RPC listening entirely? Set it to the empty string withkadmind_listen = "". And ifkadmindcan't bind to any of the specified addresses, it will fail to start. Default is to bind to the wildcard address on the port fromkadmind_port, or the standard kadmin port (749). New in release 1.15. πkadmind_portβ (a port number) the portkadmind(8)listens on for this realm. Port numbers inkadmind_listenentries override this one. The assigned port forkadmindis749, and that's what's used by default. πkey_stash_fileβ (a string) where the master key got stashed (viakdb5_util stash). Default is/var/kerberos/krb5kdc/.k5.REALM, whereREALMis the Kerberos realm. ποΈkdc_listenβ (a whitespace- or comma-separated list) the listening addresses and/or ports for thekrb5kdc(8)daemon. Each entry can be an interface address, a port number, an address and port number separated by a colon, or a UNIX domain socket pathname. Address with colons? Square brackets, obviously. No address? Wildcard address. No port? The standard port (88) gets used. Wanna kill UDP listening?kdc_listen = "". If the KDC daemon fails to bind to any of the specified addresses, it will fail to start. Default is the wildcard address on the standard port. New in release 1.15. πkdc_portsβ (a whitespace- or comma-separated list, deprecated) before release 1.15 this relation listed the ports forkrb5kdc(8)to listen on for UDP requests. In release 1.15 and later it means the exact same thing askdc_listenβ but only if that relation isn't defined. π«kdc_tcp_listenβ (a whitespace- or comma-separated list) the TCP listening addresses and/or ports forkrb5kdc(8). Syntax is identical tokdc_listen, no cap. Wanna disable TCP listening?kdc_tcp_listen = "". Default is to bind to the same addresses and ports as for UDP. New in release 1.15. π¦kdc_tcp_portsβ (a whitespace- or comma-separated list, deprecated) before release 1.15 this relation listed the ports forkrb5kdc(8)to listen on for UDP requests. In release 1.15 and later it means the same askdc_tcp_listenif that relation isn't defined. πkpasswd_listenβ (a comma-separated list) the kpasswd listening addresses and/or ports forkadmind(8). Each entry can be an interface address, a port number, an address and port number separated by a colon, or a UNIX domain socket pathname. Colons in the address? Square brackets, always. No address? Wildcard address. Wanna disable kpasswd requests?kpasswd_listen = "". Ifkadmindfails to bind to any of the specified addresses, it will fail to start. Default is the wildcard address on the port fromkpasswd_port, or the standard kpasswd port (464). New in release 1.15. πkpasswd_portβ (a port number) the portkadmind(8)listens on for password change requests for this realm. Port numbers inkpasswd_listenentries override it. The assigned port for password change requests is464, used by default. πmaster_key_nameβ (a string) the name of the principal associated with the master key. Default isK/M. πmaster_key_typeβ (a key type string) the master key's key type. Default isaes256-cts-hmac-sha1-96. For every possible value, go look at Encryption types. πmax_lifeβ (a time duration string) the maximum time period a ticket can be valid in this realm. Default is 24 hours. β°max_renewable_lifeβ (a time duration string) the maximum time period during which a valid ticket can be renewed in this realm. Default is0. β»οΈno_host_referralβ (a whitespace- or comma-separated list) lists services that are blocked from getting host-based referral processing β even if the client marks the server principal as host-based, or the service is also listed inhost_based_services. Settingno_host_referral = *disables referral processing altogether. π«reject_bad_transitβ (a boolean value) iftrue, the KDC checks the list of transited realms for cross-realm tickets against the transit path computed from the realm names and thecapathssection of itskrb5.conf(5)file. If the path in the ticket to be issued contains any realms that aren't in the computed path, the ticket will not be issued, and an error will be returned to the client instead. Iffalse, those tickets get issued anyway, and it's left to the application server to validate the realm transit path.
If the disable-transited-check flag is set in the incoming request, this check isn't performed at all. But having the reject_bad_transit option will cause such ticket requests to be rejected always.
This transit path checking and config file option currently apply only to TGS requests.
Default value is true.
restrict_anonymous_to_tgtβ (a boolean value) iftrue, the KDC rejects ticket requests from anonymous principals to service principals other than the realm's ticket-granting service. This option lets anonymous PKINIT be enabled for use as FAST armor tickets without letting anonymous authentication reach services. Default isfalse. New in release 1.9. πΆοΈspake_preauth_indicatorβ (a string) an authentication indicator value that the KDC asserts into tickets obtained using SPAKE pre-authentication. Default is not to add any indicators. This option may be specified multiple times. New in release 1.17. β¨supported_enctypesβ (a list ofkey:saltstrings) the default key/salt combos of principals for this realm. Any principals created throughkadmin(1)will have keys of these types. The default value for this tag isaes256-cts-hmac-sha1-96:normal aes128-cts-hmac-sha1-96:normal. For lists of possible values, see Keysalt lists. π§
ποΈ [dbdefaults] ποΈ
The [dbdefaults] section holds default values for some database parameters, used when the [dbmodules] subsection doesn't contain a relation for the tag. The definitions of these relations live in the [dbmodules] section, bestie.
ldap_kerberos_container_dnldap_kdc_dnldap_kdc_sasl_authcidldap_kdc_sasl_authzidldap_kdc_sasl_mechldap_kdc_sasl_realmldap_kadmind_dnldap_kadmind_sasl_authcidldap_kadmind_sasl_authzidldap_kadmind_sasl_mechldap_kadmind_sasl_realmldap_service_password_fileldap_conns_per_server
ποΈ [dbmodules] ποΈ
The [dbmodules] section is where the KDC database library and database modules keep their parameters. Each tag in [dbmodules] is either the name of a Kerberos realm or a section name specified by a realm's database_module parameter. Here's how you'd define one database parameter for the ATHENA.MIT.EDU realm β main character config energy:
[dbmodules]
ATHENA.MIT.EDU = {
disable_last_success = true
}
So, bestie, in the [dbmodules] subsection you can drop these tags to customize your database module π
database_nameβ This DB2-specific tag tells you where the database lives on your filesystem. The default?/var/kerberos/krb5kdc/principalβ¨db_libraryβ This tag is the name of the loadable database module. You wantdb2for the DB2 module,klmdbfor the LMDB module, orkldapfor the LDAP module. Slay.disable_last_successβ Set totrueto suppress KDC updates to the "Last successful authentication" field of principal entries requiring preauthentication. Setting this flag may improve performance. (Principal entries which do not require preauthentication never update the "Last successful authentication" field.) First introduced in release 1.9. No cap, this is a vibe.disable_lockoutβ Set totrueto suppress KDC updates to the "Last failed authentication" and "Failed password attempts" fields of principal entries requiring preauthentication. Setting this flag may improve performance, but also disables account lockout. First introduced in release 1.9. Careful, bestie, this turns off lockout πldap_conns_per_serverβ This LDAP-specific tag indicates the number of connections to be maintained per LDAP server. Simple.ldap_kdc_dnandldap_kadmind_dnβ These LDAP-specific tags indicate the default DN for binding to the LDAP server. Thekrb5kdcdaemon usesldap_kdc_dn, while thekadminddaemon and other administrative programs useldap_kadmind_dn. The kadmind DN must have the rights to read and write the Kerberos data in the LDAP database. The KDC DN must have the same rights, unlessdisable_lockoutanddisable_last_successare true, in which case it only needs to have rights to read the Kerberos data. These tags are ignored if a SASL mechanism is set withldap_kdc_sasl_mechorldap_kadmind_sasl_mech. πldap_kdc_sasl_mechandldap_kadmind_sasl_mechβ These LDAP-specific tags specify the SASL mechanism (such asEXTERNAL) to use when binding to the LDAP server. New in release 1.13. π¦ldap_kdc_sasl_authcidandldap_kadmind_sasl_authcidβ These LDAP-specific tags specify the SASL authentication identity to use when binding to the LDAP server. Not all SASL mechanisms require an authentication identity. If the SASL mechanism requires a secret (such as the password forDIGEST-MD5), these tags also determine the name within theldap_service_password_filewhere the secret is stashed. New in release 1.13. πΈldap_kdc_sasl_authzidandldap_kadmind_sasl_authzidβ These LDAP-specific tags specify the SASL authorization identity to use when binding to the LDAP server. In most circumstances they do not need to be specified. New in release 1.13. πldap_kdc_sasl_realmandldap_kadmind_sasl_realmβ These LDAP-specific tags specify the SASL realm to use when binding to the LDAP server. In most circumstances they do not need to be set. New in release 1.13. π§ldap_kerberos_container_dnβ This LDAP-specific tag indicates the DN of the container object where the realm objects will be located. πldap_serversβ This LDAP-specific tag indicates the list of LDAP servers that the Kerberos servers can connect to. The list of LDAP servers is whitespace-separated. The LDAP server is specified by a LDAP URI. It is recommended to useldapi:orldaps:URLs to connect to the LDAP server. π₯ldap_service_password_fileβ This LDAP-specific tag indicates the file containing the stashed passwords (created bykdb5_ldap_util stashsrvpw) for theldap_kdc_dnandldap_kadmind_dnobjects, or for theldap_kdc_sasl_authcidorldap_kadmind_sasl_authcidnames for SASL authentication. This file must be kept secure. π¨
Bestie, keep that password file safe! No cap.
mapsizeβ This LMDB-specific tag indicates the maximum size of the two database environments in megabytes. The default value is128. Increase this value to address "Environment mapsize limit reached" errors. New in release 1.17. πmax_readersβ This LMDB-specific tag indicates the maximum number of concurrent reading processes for the databases. The default value is128. New in release 1.17. π―nosyncβ This LMDB-specific tag can be set to improve the throughput ofkadmindand other administrative agents, at the expense of durability (recent database changes may not survive a power outage or other sudden reboot). It does not affect the throughput of the KDC. The default value isfalse. New in release 1.17. β‘
Durability who? Not this tag. Recent changes might vanish if the power goes out.
unlockiterβ If set totrue, this DB2-specific tag causes iteration operations to release the database lock while processing each principal. Setting this flag totruecan prevent extended blocking of KDC or kadmin operations when dumps of large databases are in progress. First introduced in release 1.13. π
The following tag may be specified directly in the [dbmodules] section to control where database modules are loaded from:
db_module_dirβ This tag controls where the plugin system looks for database modules. The value should be an absolute path. π
β¨ [logging] β¨
The [logging] section indicates how krb5kdc and kadmind perform logging. It may contain the following relations:
admin_serverβ Specifies howkadmindperforms logging. πkdcβ Specifies howkrb5kdcperforms logging. πdefaultβ Specifies how either daemon performs logging in the absence of relations specific to the daemon. π«Άdebugβ (Boolean value.) Specifies whether debugging messages are included in log outputs other than SYSLOG. Debugging messages are always included in the system log output because syslog performs its own priority filtering. The default value isfalse. New in release 1.15. π
Logging specifications may have the following forms:
FILE=filenameorFILE:filenameβ This value causes the daemon's logging messages to go to thefilename. If the=form is used, the file is overwritten. If the:form is used, the file is appended to. πSTDERRβ This value causes the daemon's logging messages to go to its standard error stream. πCONSOLEβ This value causes the daemon's logging messages to go to the console, if the system supports it. π₯οΈDEVICE=<devicename>β This causes the daemon's logging messages to go to the specified device. πSYSLOG[:severity[:facility]]β This causes the daemon's logging messages to go to the system log. π
For backward compatibility, a severity argument may be specified, and must be specified in order to specify a facility. This argument will be ignored. π
The facility argument specifies the facility under which the messages are logged. This may be any of the following facilities supported by the syslog(3) call minus the LOG_ prefix: KERN, USER, MAIL, DAEMON, AUTH, LPR, NEWS, UUCP, CRON, and LOCAL0 through LOCAL7. If no facility is specified, the default is AUTH. β
In the following example, the logging messages from the KDC will go to the console and to the system log under the facility LOG_DAEMON, and the logging messages from the administrative server will be appended to the file /var/adm/kadmin.log and sent to the device /dev/tty04.
[logging]
kdc = CONSOLE
kdc = SYSLOG:INFO:DAEMON
admin_server = FILE:/var/adm/kadmin.log
admin_server = DEVICE=/dev/tty04
If no logging specification is given, the default is to use syslog. To disable logging entirely, specify default = DEVICE=/dev/null. π
π [otp] π
Each subsection of [otp] is the name of an OTP token type. The tags within the subsection define the configuration required to forward a One Time Password request to a RADIUS server.
For each token type, the following tags may be specified:
serverβ This is the server to send the RADIUS request to. It can be a hostname with optional port, an ip address with optional port, or a Unix domain socket address. The default is/var/kerberos/krb5kdc/<name>.socket. πsecretβ This tag indicates a filename (which may be relative to/var/kerberos/krb5kdc) containing the secret used to encrypt the RADIUS packets. The secret should appear in the first line of the file by itself; leading and trailing whitespace on the line will be removed. If the value ofserveris a Unix domain socket address, this tag is optional, and an empty secret will be used if it is not specified. Otherwise, this tag is required. πtimeoutβ An integer which specifies the time in seconds during which the KDC should attempt to contact the RADIUS server. This tag is the total time across all retries and should be less than the time which an OTP value remains valid for. The default is5seconds. β³retriesβ This tag specifies the number of retries to make to the RADIUS server. The default is3retries (4 tries). πstrip_realmβ If this tag is true, the principal without the realm will be passed to the RADIUS server. Otherwise, the realm will be included. The default value istrue. βοΈindicatorβ This tag specifies an authentication indicator to be included in the ticket if this token type is used to authenticate. This option may be specified multiple times. (New in release 1.14.) π·οΈ
In the following example, requests are sent to a remote server via UDP:
[otp]
MyRemoteTokenType = {
server = radius.mydomain.com:1812
secret = SEmfiajf42$
timeout = 15
retries = 5
strip_realm = true
}
An implicit default token type named DEFAULT is defined for when the per-principal configuration does not specify a token type. Its configuration is shown below. You may override this token type to something applicable for your situation:
[otp]
DEFAULT = {
strip_realm = false
}
β¨ PKINIT OPTIONS β¨
Note: okay bestie, these are all pkinit-specific options. You can drop these values in[kdcdefaults]as global defaults, or inside a realm-specific subsection of[realms]. And the tea is: a realm-specific value over-rides, it does not add to, a generic[kdcdefaults]spec.
The search order is giving:
- realm-specific subsection of
[realms]:
[realms]
EXAMPLE.COM = {
pkinit_anchors = FILE:/usr/local/example.com.crt
}
- generic value in the
[kdcdefaults]section:
[kdcdefaults]
pkinit_anchors = DIR:/usr/local/generic_trusted_cas/
For info about the syntax of some of these options, see Specifying PKINIT identity information <#pkinit-identity> in krb5.conf <#krb5-conf-5>.
pkinit_anchorsβ tells the KDC where the trusted anchor (root) certificates live, the ones it trusts to sign client certificates. This one is required if pkinit is to be supported by the KDC. You can specify it multiple times, no cap. π«Άpkinit_dh_min_bitsβ minimum strength of the Diffie-Hellman group the KDC is willing to accept for key exchange. Valid values, in order of increasing strength, are1024,2048,P-256,4096,P-384, andP-521. The default is2048. (P-256,P-384, andP-521are new in release1.22.) πpkinit_allow_upnβ says the KDC is willing to accept client certificates with the Microsoft UserPrincipalName (UPN) Subject Alternative Name (SAN). This means the KDC accepts the binding of the UPN in the certificate to the Kerberos principal name. The default value isfalse.
Without this option, the KDC will only accept certificates with the id-pkinit-san as defined in RFC 4556 <https://datatracker.ietf.org/doc/html/rfc4556.html>. There is currently no option to disable SAN checking in the KDC. π
pkinit_eku_checkingβ specifies what Extended Key Usage (EKU) values the KDC is willing to accept in client certificates. The values recognized in thekdc.conffile are:kpClientAuthβ this is the default value and specifies that client certificates must have theid-pkinit-KPClientAuthEKU as defined inRFC 4556 <https://datatracker.ietf.org/doc/html/rfc4556.html>.scLoginβ ifscLoginis specified, client certificates with the Microsoft Smart Card Login EKU (id-ms-kp-sc-logon) will be accepted.noneβ ifnoneis specified, then client certificates will not be checked to verify they have an acceptable EKU. The use of this option is not recommended.
pkinit_identityβ specifies the location of the KDC's X.509 identity information. This option is required if pkinit is to be supported by the KDC. πpkinit_indicatorβ specifies an authentication indicator to include in the ticket if pkinit is used to authenticate. This option may be specified multiple times. (New in release1.14.)pkinit_poolβ specifies the location of intermediate certificates which may be used by the KDC to complete the trust chain between a client's certificate and a trusted anchor. This option may be specified multiple times.pkinit_revokeβ specifies the location of Certificate Revocation List (CRL) information to be used by the KDC when verifying the validity of client certificates. This option may be specified multiple times.pkinit_require_crl_checkingβ okay so the default certificate verification process will always check the available revocation information to see if a certificate has been revoked. If a match is found for the certificate in a CRL, verification fails. If the certificate being verified is not listed in a CRL, or there is no CRL present for its issuing CA, andpkinit_require_crl_checkingisfalse, then verification succeeds.
However, if pkinit_require_crl_checking is true and there is no CRL information available for the issuing CA, then verification fails.
pkinit_require_crl_checking should be set to true if the policy is such that up-to-date CRLs must be present for every CA. π¨
pkinit_require_freshnessβ specifies whether to require clients to include a freshness token in PKINIT requests. The default value isfalse. (New in release1.17.)
π ENCRYPTION TYPES π
Any tag in the configuration files which requires a list of encryption types can be set to some combination of the following strings. Encryption types marked as "weak" and "deprecated" are available for compatibility but not recommended for use. Periodt.
aes256-cts-hmac-sha1-96,aes256-cts,aes256-sha1β AES-256 CTS mode with 96-bit SHA-1 HMACaes128-cts-hmac-sha1-96,aes128-cts,aes128-sha1β AES-128 CTS mode with 96-bit SHA-1 HMACaes256-cts-hmac-sha384-192,aes256-sha2β AES-256 CTS mode with 192-bit SHA-384 HMACaes128-cts-hmac-sha256-128,aes128-sha2β AES-128 CTS mode with 128-bit SHA-256 HMACarcfour-hmac,rc4-hmac,arcfour-hmac-md5β RC4 with HMAC/MD5 (deprecated)arcfour-hmac-exp,rc4-hmac-exp,arcfour-hmac-md5-expβ Exportable RC4 with HMAC/MD5 (weak)camellia256-cts-cmac,camellia256-ctsβ Camellia-256 CTS mode with CMACcamellia128-cts-cmac,camellia128-ctsβ Camellia-128 CTS mode with CMACaesβ The AES family:aes256-cts-hmac-sha1-96,aes128-cts-hmac-sha1-96,aes256-cts-hmac-sha384-192, andaes128-cts-hmac-sha256-128rc4β The RC4 family:arcfour-hmaccamelliaβ The Camellia family:camellia256-cts-cmacandcamellia128-cts-cmac
The string DEFAULT can be used to refer to the default set of types for the variable in question. Types or families can be removed from the current list by prefixing them with a minus sign (-). Types or families can be prefixed with a plus sign (+) for symmetry; it has the same meaning as just listing the type or family. For example, "DEFAULT -rc4" would be the default set of encryption types with RC4 types removed, and "aes128-sha2 DEFAULT" would be the default set of encryption types with aes128-sha2 moved to the front. β¨
While aes128-cts and aes256-cts are supported for all Kerberos operations, they are not supported by very old versions of our GSSAPI implementation (krb5-1.3.1 and earlier). Services running versions of krb5 without AES support must not be given keys of these encryption types in the KDC database. π
The aes128-sha2 and aes256-sha2 encryption types are new in release 1.15. Services running versions of krb5 without support for these newer encryption types must not be given keys of these encryption types in the KDC database. π«
Okay bestie, last part, and it's the fun one β salts, a whole sample file, and the receipts π
β¨ KEYSALT LISTS β¨
So, here's the tea π΅: Kerberos keys for users are usually derived from passwords. And the Kerberos commands and config parameters that affect how keys get generated? They take lists of enctype-salttype pairs β we call these keysalt lists, iykyk.
Each keysalt pair is an enctype name followed by a salttype name, formatted like enc:salt. The individual members of a keysalt list get separated by comma (",") characters or space characters. Obsessed with the flexibility fr fr.
Like, for example:
kadmin -e aes256-cts:normal,aes128-cts:normal
That would start up kadmin so that by default it would generate password-derived keys for the aes256-cts and aes128-cts encryption types, using a normal salt. Slay β¨
Now β why do salts even exist? Okay so basically, to make sure that people who happen to pick the same password don't end up with the same key, Kerberos 5 incorporates more information into the key using something called a salt π§. The supported salt types are as follows:
normalβ default for Kerberos Version 5norealmβ same as the default, without using realm informationonlyrealmβ uses only realm information as the saltspecialβ generate a random salt
Not the salt lore being this iconic π
π SAMPLE KDC.CONF FILE π
Here's an example of a kdc.conf file β a little main character moment for your eyeballs π:
[kdcdefaults]
kdc_listen = 88
kdc_tcp_listen = 88
[realms]
ATHENA.MIT.EDU = {
kadmind_port = 749
max_life = 12h 0m 0s
max_renewable_life = 7d 0h 0m 0s
master_key_type = aes256-cts-hmac-sha1-96
supported_enctypes = aes256-cts-hmac-sha1-96:normal aes128-cts-hmac-sha1-96:normal
database_module = openldap_ldapconf
}
[logging]
kdc = FILE:/usr/local/var/krb5kdc/kdc.log
admin_server = FILE:/usr/local/var/krb5kdc/kadmin.log
[dbdefaults]
ldap_kerberos_container_dn = cn=krbcontainer,dc=mit,dc=edu
[dbmodules]
openldap_ldapconf = {
db_library = kldap
disable_last_success = true
ldap_kdc_dn = "cn=krbadmin,dc=mit,dc=edu"
# this object needs to have read rights on
# the realm container and principal subtrees
ldap_kadmind_dn = "cn=krbadmin,dc=mit,dc=edu"
# this object needs to have read and write rights on
# the realm container and principal subtrees
ldap_service_password_file = /etc/kerberos/service.keyfile
ldap_servers = ldaps://kerberos.mit.edu
ldap_conns_per_server = 5
}
Look at all those sections living their best lives together π«Ά
π FILES π
/var/kerberos/krb5kdc/kdc.conf
π SEE ALSO π
Go read these next, bestie, they're all part of the cinematic universe π:
krb5.confkrb5kdckadm5.acl
π Author π
MIT
π Copyright π
1985-2026, MIT
And that's the whole page, periodt β¨ This little masterpiece is version 1.22.2, and yes, it's filed under KDC.CONF(5) β the copyright vibes run 1985-2026, MIT, all of it, no cap. Go configure something gorgeous, bestie π
π¦
π¦ where this page comes from
- fedora 44: krb5-server 1.22.2-2.fc44 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- fedora 44: krb5-server 1.22.2-4.fc44 Β· Brian-Gladman-2-Clause AND BSD-2-Clause AND (BSD-2-Clause OR GPL-2.0-or-later) AND BSD-2-Clause-first-lines AND BSD-3-Clause AND BSD-4-Clause AND CMU-Mach-nodoc AND FSFULLRWD AND HPND AND HPND-export2-US AND HPND-export-US AND HPND-export-US-acknowledgement AND HPND-export-US-modify AND ISC AND MIT AND MIT-CMU AND OLDAP-2.8 AND OpenVision
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms