xref: /freebsd/crypto/krb5/doc/admin/admin_commands/krb5kdc.rst (revision 7f2fe78b9dd5f51c821d771b63d2e096f6fd49e9)
1*7f2fe78bSCy Schubert.. _krb5kdc(8):
2*7f2fe78bSCy Schubert
3*7f2fe78bSCy Schubertkrb5kdc
4*7f2fe78bSCy Schubert=======
5*7f2fe78bSCy Schubert
6*7f2fe78bSCy SchubertSYNOPSIS
7*7f2fe78bSCy Schubert--------
8*7f2fe78bSCy Schubert
9*7f2fe78bSCy Schubert**krb5kdc**
10*7f2fe78bSCy Schubert[**-x** *db_args*]
11*7f2fe78bSCy Schubert[**-d** *dbname*]
12*7f2fe78bSCy Schubert[**-k** *keytype*]
13*7f2fe78bSCy Schubert[**-M** *mkeyname*]
14*7f2fe78bSCy Schubert[**-p** *portnum*]
15*7f2fe78bSCy Schubert[**-m**]
16*7f2fe78bSCy Schubert[**-r** *realm*]
17*7f2fe78bSCy Schubert[**-n**]
18*7f2fe78bSCy Schubert[**-w** *numworkers*]
19*7f2fe78bSCy Schubert[**-P** *pid_file*]
20*7f2fe78bSCy Schubert[**-T** *time_offset*]
21*7f2fe78bSCy Schubert
22*7f2fe78bSCy Schubert
23*7f2fe78bSCy SchubertDESCRIPTION
24*7f2fe78bSCy Schubert-----------
25*7f2fe78bSCy Schubert
26*7f2fe78bSCy Schubertkrb5kdc is the Kerberos version 5 Authentication Service and Key
27*7f2fe78bSCy SchubertDistribution Center (AS/KDC).
28*7f2fe78bSCy Schubert
29*7f2fe78bSCy Schubert
30*7f2fe78bSCy SchubertOPTIONS
31*7f2fe78bSCy Schubert-------
32*7f2fe78bSCy Schubert
33*7f2fe78bSCy SchubertThe **-r** *realm* option specifies the realm for which the server
34*7f2fe78bSCy Schubertshould provide service.  This option may be specified multiple times
35*7f2fe78bSCy Schubertto serve multiple realms.  If no **-r** option is given, the default
36*7f2fe78bSCy Schubertrealm (as specified in :ref:`krb5.conf(5)`) will be served.
37*7f2fe78bSCy Schubert
38*7f2fe78bSCy SchubertThe **-d** *dbname* option specifies the name under which the
39*7f2fe78bSCy Schubertprincipal database can be found.  This option does not apply to the
40*7f2fe78bSCy SchubertLDAP database.
41*7f2fe78bSCy Schubert
42*7f2fe78bSCy SchubertThe **-k** *keytype* option specifies the key type of the master key
43*7f2fe78bSCy Schubertto be entered manually as a password when **-m** is given; the default
44*7f2fe78bSCy Schubertis |defmkey|.
45*7f2fe78bSCy Schubert
46*7f2fe78bSCy SchubertThe **-M** *mkeyname* option specifies the principal name for the
47*7f2fe78bSCy Schubertmaster key in the database (usually ``K/M`` in the KDC's realm).
48*7f2fe78bSCy Schubert
49*7f2fe78bSCy SchubertThe **-m** option specifies that the master database password should
50*7f2fe78bSCy Schubertbe fetched from the keyboard rather than from a stash file.
51*7f2fe78bSCy Schubert
52*7f2fe78bSCy SchubertThe **-n** option specifies that the KDC does not put itself in the
53*7f2fe78bSCy Schubertbackground and does not disassociate itself from the terminal.
54*7f2fe78bSCy Schubert
55*7f2fe78bSCy SchubertThe **-P** *pid_file* option tells the KDC to write its PID into
56*7f2fe78bSCy Schubert*pid_file* after it starts up.  This can be used to identify whether
57*7f2fe78bSCy Schubertthe KDC is still running and to allow init scripts to stop the correct
58*7f2fe78bSCy Schubertprocess.
59*7f2fe78bSCy Schubert
60*7f2fe78bSCy SchubertThe **-p** *portnum* option specifies the default UDP and TCP port
61*7f2fe78bSCy Schubertnumbers which the KDC should listen on for Kerberos version 5
62*7f2fe78bSCy Schubertrequests, as a comma-separated list.  This value overrides the port
63*7f2fe78bSCy Schubertnumbers specified in the :ref:`kdcdefaults` section of
64*7f2fe78bSCy Schubert:ref:`kdc.conf(5)`, but may be overridden by realm-specific values.
65*7f2fe78bSCy SchubertIf no value is given from any source, the default port is 88.
66*7f2fe78bSCy Schubert
67*7f2fe78bSCy SchubertThe **-w** *numworkers* option tells the KDC to fork *numworkers*
68*7f2fe78bSCy Schubertprocesses to listen to the KDC ports and process requests in parallel.
69*7f2fe78bSCy SchubertThe top level KDC process (whose pid is recorded in the pid file if
70*7f2fe78bSCy Schubertthe **-P** option is also given) acts as a supervisor.  The supervisor
71*7f2fe78bSCy Schubertwill relay SIGHUP signals to the worker subprocesses, and will
72*7f2fe78bSCy Schubertterminate the worker subprocess if the it is itself terminated or if
73*7f2fe78bSCy Schubertany other worker process exits.
74*7f2fe78bSCy Schubert
75*7f2fe78bSCy SchubertThe **-x** *db_args* option specifies database-specific arguments.
76*7f2fe78bSCy SchubertSee :ref:`Database Options <dboptions>` in :ref:`kadmin(1)` for
77*7f2fe78bSCy Schubertsupported arguments.
78*7f2fe78bSCy Schubert
79*7f2fe78bSCy SchubertThe **-T** *offset* option specifies a time offset, in seconds, which
80*7f2fe78bSCy Schubertthe KDC will operate under.  It is intended only for testing purposes.
81*7f2fe78bSCy Schubert
82*7f2fe78bSCy SchubertEXAMPLE
83*7f2fe78bSCy Schubert-------
84*7f2fe78bSCy Schubert
85*7f2fe78bSCy SchubertThe KDC may service requests for multiple realms (maximum 32 realms).
86*7f2fe78bSCy SchubertThe realms are listed on the command line.  Per-realm options that can
87*7f2fe78bSCy Schubertbe specified on the command line pertain for each realm that follows
88*7f2fe78bSCy Schubertit and are superseded by subsequent definitions of the same option.
89*7f2fe78bSCy Schubert
90*7f2fe78bSCy SchubertFor example::
91*7f2fe78bSCy Schubert
92*7f2fe78bSCy Schubert    krb5kdc -p 2001 -r REALM1 -p 2002 -r REALM2 -r REALM3
93*7f2fe78bSCy Schubert
94*7f2fe78bSCy Schubertspecifies that the KDC listen on port 2001 for REALM1 and on port 2002
95*7f2fe78bSCy Schubertfor REALM2 and REALM3.  Additionally, per-realm parameters may be
96*7f2fe78bSCy Schubertspecified in the :ref:`kdc.conf(5)` file.  The location of this file
97*7f2fe78bSCy Schubertmay be specified by the **KRB5_KDC_PROFILE** environment variable.
98*7f2fe78bSCy SchubertPer-realm parameters specified in this file take precedence over
99*7f2fe78bSCy Schubertoptions specified on the command line.  See the :ref:`kdc.conf(5)`
100*7f2fe78bSCy Schubertdescription for further details.
101*7f2fe78bSCy Schubert
102*7f2fe78bSCy Schubert
103*7f2fe78bSCy SchubertENVIRONMENT
104*7f2fe78bSCy Schubert-----------
105*7f2fe78bSCy Schubert
106*7f2fe78bSCy SchubertSee :ref:`kerberos(7)` for a description of Kerberos environment
107*7f2fe78bSCy Schubertvariables.
108*7f2fe78bSCy Schubert
109*7f2fe78bSCy Schubert
110*7f2fe78bSCy SchubertSEE ALSO
111*7f2fe78bSCy Schubert--------
112*7f2fe78bSCy Schubert
113*7f2fe78bSCy Schubert:ref:`kdb5_util(8)`, :ref:`kdc.conf(5)`, :ref:`krb5.conf(5)`,
114*7f2fe78bSCy Schubert:ref:`kdb5_ldap_util(8)`, :ref:`kerberos(7)`
115