KDC(8)
π KDC(8) β the Kerberos 5 server, but make it a vibe β¨
okay bestie, gather round, because this is the kdc manual page from the System Manager's Manual and she is serving tickets π
πΈ NAME πΈ
kdc β the Kerberos 5 server. that's it, that's the girl. π
β¨ SYNOPSIS β¨
kdc [-c file | --config-file=file] [-p | --no-require-preauth]
[--max-request=size] [-H | --enable-http] [-r string |
--v4-realm=string] [-P portspec | --ports=portspec] [--detach]
[--disable-des] [--addresses=list of addresses]
π DESCRIPTION π
so kdc serves requests for tickets. that's her whole job, and she's so good at it π
when she starts up, first thing she does is check the flags you passed her. and here's the tea: any option you did not specify with a command-line flag gets pulled from a config file, or from a default compiled-in value. no cap.
Options supported, let's get into it π«Ά
-cfile,--config-file=file β tells her where the config file lives. the default is/var/heimdal/kdc.conf. fun fact: this is the only value that can't be specified in the config file itself. iconique of her honestly.-p,--no-require-preauthβ turns off the requirement for pre-authentication in the initialAS-REQfor all principals. why would you want pre-auth at all? because it makes offline password attacks way harder π₯ so turning it off is lowkey risky. but you might want it off if you have clients that don't support pre-authentication. and since the version 4 protocol doesn't support any pre-authentication, serving version 4 clients is basically the same thing as not requiring pre-auth. the default is to require pre-authentication. and ngl, adding therequire-preauthper principal is a more flexible way of handling all this.--max-request=size β gives an upper limit on the size of the requests that thekdcis willing to handle. she has boundaries β-H,--enable-httpβ makes thekdclisten on port 80 and handle requests encapsulated in HTTP. yes really π-rstring,--v4-realm=string β what realm this server should act as when dealing with version 4 requests. the database can contain any number of realms, but since the version 4 protocol doesn't contain a realm for the server, it must be explicitly specified. default is whateverkrb_get_lrealm()returns. π¦ and heads up: this option is only available if the KDC has been compiled with version 4 support.-Pportspec,--ports=portspec β specifies the set of ports the KDC should listen on. it's given as a white-space separated list of services or port numbers. simple as that β¨--addresses=list of addresses β the list of addresses to listen for requests on. by default, thekdcwill listen on all the locally configured addresses. if you only want a subset, or the automatic detection fails, this option might be used. she's flexible like that π--detachβ detach from pty and run as a daemon. main character energy, going off on her own π§--disable-desβ disable all des encryption types, makes thekdcnot use them. periodt.
all activities are logged to one or more destinations, see krb5.conf(5), and krb5_openlog(3). the entity used for logging is kdc. β
π CONFIGURATION FILE π
the configuration file has the same syntax as krb5.conf(5), but it will be read before /etc/krb5.conf, so it may override settings found there. the way that it gets first dibs... obsessed π
options specific to the KDC only are found in the β[kdc]β section. all the command-line options can preferably be added in the configuration file. the only difference is the pre-authentication flag, which has to be specified as:
require-preauth = no
(in fact you can specify the option as --require-preauth=no). love an option with range π
and there are some configuration options which do not have command-line equivalents, so listen up:
enable-digest = booleanβ turn on support for digest processing in the KDC. the default isFALSE.check-ticket-addresses = booleanβ check the addresses in the ticket when processing TGS requests. the default isTRUE.allow-null-ticket-addresses = booleanβ permit tickets with no addresses. this option is only relevant whencheck-ticket-addressesisTRUE.allow-anonymous = booleanβ permit anonymous tickets with no addresses.historical_anon_realm = booleanβ enables pre-7.0 non-RFC-comformant KDC behavior. with this option set to true the client realm in anonymous pkinit AS replies will be the requested realm, rather than the RFC-conformantWELLKNOWN:ANONYMOUSrealm. and this one matters, bestie β it can have a security impact on servers that expect to grant access to anonymous-but-authenticated to the KDC users of the realm in question: they would also grant access to unauthenticated anonymous users. as such, it is not recommend to set this option to true. π¨max-kdc-datagram-reply-length = numberβ maximum packet size the UDP rely that the KDC will transmit, instead the KDC sends back a reply telling the client to use TCP instead.transited-policy = always-check | allow-per-principal | always-honour-requestβ this controls how KDC requests with thedisable-transited-checkflag are handled. it can be one of:always-checkβ always check transited encoding, this is the default.allow-per-principalβ currently this is identical toalways-check. in a future release, it will be possible to mark a principal as able to handle unchecked requests.always-honour-requestβ always do what the client asked. in a future release, it will be possible to force a check per principal.
encode_as_rep_as_tgs_rep = booleanβ encode AS-Rep as TGS-Rep to be bug-compatible with old DCE code. the Heimdal clients allow both. π€kdc_warn_pwexpire = timeβ how long before password/principal expiration the KDC should start sending out warning messages. she's just looking out for you π₯Ί
β οΈ the configuration file is only read when thekdcis started. if changes made to the configuration file are to take effect, thekdcneeds to be restarted. no hot reloading here, babes.
an example of a config file:
[kdc]
require-preauth = no
v4-realm = FOO.SE
π BUGS π
if the machine running the KDC has new addresses added to it, the KDC will have to be restarted to listen to them. the reason it doesn't just listen to wildcarded (like INADDR_ANY) addresses, is that the replies has to come from the same address they were sent to, and most OS:es doesn't pass this information to the application. π
if your normal mode of operation require that you add and remove addresses, the best option is probably to listen to a wildcarded TCP socket, and make sure your clients use TCP to connect. for instance, this will listen to IPv4 TCP port 88 only:
kdc --addresses=0.0.0.0 --ports="88/tcp"
and fr fr, there should be a way to specify protocol, port, and address triplets, not just addresses and protocol, port tuples. one day π
π SEE ALSO π
and that's the whole page, bestie. this one shipped from HEIMDAL on August 24, 2006 β an absolute vintage queen, still serving tickets, still iconic πβ¨ go read the SEE ALSOs, ily, bye π«Άπ
π¦ where this page comes from
- alpine 3.22: heimdal-doc 7.8.0-r4 Β· BSD-3-Clause
- alpine 3.23: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- alpine 3.24: heimdal-doc 7.8.0-r5 Β· BSD-3-Clause
- epel 10: heimdal-server 7.8.0-26.el10_2 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- epel 9: heimdal-server 7.8.0-5.el9 Β· BSD and MIT
- fedora 43: heimdal-server 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-server 7.8.0-26.fc43 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- fedora 44: heimdal-server 7.8.0-28.fc44 Β· BSD-2-Clause AND BSD-3-Clause AND HPND-export-US AND HPND-export2-US AND LicenseRef-Fedora-Public-Domain
- Copyright (c) 2003 - 2004 Kungliga Tekniska HΓΆgskolan
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms