1 .\" Copyright (c) 2003 - 2004 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the Institute nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 .Oo Fl c Ar file \*(Ba Xo
44 .Fl Fl config-file= Ns Ar file
47 .Op Fl p | Fl Fl no-require-preauth
48 .Op Fl Fl max-request= Ns Ar size
49 .Op Fl H | Fl Fl enable-http
50 .Oo Fl r Ar string \*(Ba Xo
51 .Fl Fl v4-realm= Ns Ar string
54 .Oo Fl P Ar portspec \*(Ba Xo
55 .Fl Fl ports= Ns Ar portspec
60 .Op Fl Fl addresses= Ns Ar list of addresses
64 serves requests for tickets.
65 When it starts, it first checks the flags passed, any options that are
66 not specified with a command line flag are taken from a config file,
67 or from a default compiled-in value.
71 .It Fl c Ar file , Fl Fl config-file= Ns Ar file
72 Specifies the location of the config file, the default is
73 .Pa /var/heimdal/kdc.conf .
74 This is the only value that can't be specified in the config file.
75 .It Fl p , Fl Fl no-require-preauth
76 Turn off the requirement for pre-autentication in the initial AS-REQ
78 The use of pre-authentication makes it more difficult to do offline
80 You might want to turn it off if you have clients
81 that don't support pre-authentication.
82 Since the version 4 protocol doesn't support any pre-authentication,
83 serving version 4 clients is just about the same as not requiring
85 The default is to require pre-authentication.
86 Adding the require-preauth per principal is a more flexible way of
88 .It Fl Fl max-request= Ns Ar size
89 Gives an upper limit on the size of the requests that the kdc is
91 .It Fl H , Fl Fl enable-http
92 Makes the kdc listen on port 80 and handle requests encapsulated in HTTP.
93 .It Fl r Ar string , Fl Fl v4-realm= Ns Ar string
94 What realm this server should act as when dealing with version 4
96 The database can contain any number of realms, but since the version 4
97 protocol doesn't contain a realm for the server, it must be explicitly
99 The default is whatever is returned by
101 This option is only available if the KDC has been compiled with version
103 .It Fl P Ar portspec , Fl Fl ports= Ns Ar portspec
104 Specifies the set of ports the KDC should listen on.
106 white-space separated list of services or port numbers.
107 .It Fl Fl addresses= Ns Ar list of addresses
108 The list of addresses to listen for requests on.
109 By default, the kdc will listen on all the locally configured
111 If only a subset is desired, or the automatic detection fails, this
112 option might be used.
114 detach from pty and run as a daemon.
115 .It Fl Fl disable-des
116 disable all des encryption types, makes the kdc not use them.
119 All activities are logged to one or more destinations, see
123 The entity used for logging is
125 .Sh CONFIGURATION FILE
126 The configuration file has the same syntax as
128 but will be read before
130 so it may override settings found there.
131 Options specific to the KDC only are found in the
134 All the command-line options can preferably be added in the
136 The only difference is the pre-authentication flag, which has to be
139 .Dl require-preauth = no
141 (in fact you can specify the option as
142 .Fl Fl require-preauth=no ) .
144 And there are some configuration options which do not have
145 command-line equivalents:
146 .Bl -tag -width "xxx" -offset indent
147 .It Li enable-digest = Va boolean
148 turn on support for digest processing in the KDC.
149 The default is FALSE.
150 .It Li check-ticket-addresses = Va boolean
151 Check the addresses in the ticket when processing TGS requests.
153 .It Li allow-null-ticket-addresses = Va boolean
154 Permit tickets with no addresses.
155 This option is only relevant when check-ticket-addresses is TRUE.
156 .It Li allow-anonymous = Va boolean
157 Permit anonymous tickets with no addresses.
158 .It Li max-kdc-datagram-reply-length = Va number
159 Maximum packet size the UDP rely that the KDC will transmit, instead
160 the KDC sends back a reply telling the client to use TCP instead.
161 .It Li transited-policy = Li always-check \*(Ba \
162 Li allow-per-principal | Li always-honour-request
163 This controls how KDC requests with the
164 .Li disable-transited-check
165 flag are handled. It can be one of:
166 .Bl -tag -width "xxx" -offset indent
168 Always check transited encoding, this is the default.
169 .It Li allow-per-principal
170 Currently this is identical to
172 In a future release, it will be possible to mark a principal as able
173 to handle unchecked requests.
174 .It Li always-honour-request
175 Always do what the client asked.
176 In a future release, it will be possible to force a check per
179 .It encode_as_rep_as_tgs_rep = Va boolean
180 Encode AS-Rep as TGS-Rep to be bug-compatible with old DCE code.
181 The Heimdal clients allow both.
182 .It kdc_warn_pwexpire = Va time
183 How long before password/principal expiration the KDC should start
184 sending out warning messages.
187 The configuration file is only read when the
190 If changes made to the configuration file are to take effect, the
192 needs to be restarted.
194 An example of a config file:
195 .Bd -literal -offset indent
201 If the machine running the KDC has new addresses added to it, the KDC
202 will have to be restarted to listen to them.
203 The reason it doesn't just listen to wildcarded (like INADDR_ANY)
204 addresses, is that the replies has to come from the same address they
205 were sent to, and most OS:es doesn't pass this information to the
207 If your normal mode of operation require that you add and remove
208 addresses, the best option is probably to listen to a wildcarded TCP
209 socket, and make sure your clients use TCP to connect.
210 For instance, this will listen to IPv4 TCP port 88 only:
211 .Bd -literal -offset indent
212 kdc --addresses=0.0.0.0 --ports="88/tcp"
215 There should be a way to specify protocol, port, and address triplets,
216 not just addresses and protocol, port tuples.