Miscellaneous small edits to RST docs
[krb5.git] / src / man / krb5.conf.5
1 .TH "KRB5.CONF" "5" "January 06, 2012" "0.0.1" "MIT Kerberos"
2 .SH NAME
3 krb5.conf \- Kerberos configuration file
4 .
5 .nr rst2man-indent-level 0
6 .
7 .de1 rstReportMargin
8 \\$1 \\n[an-margin]
9 level \\n[rst2man-indent-level]
10 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
11 -
12 \\n[rst2man-indent0]
13 \\n[rst2man-indent1]
14 \\n[rst2man-indent2]
15 ..
16 .de1 INDENT
17 .\" .rstReportMargin pre:
18 . RS \\$1
19 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
20 . nr rst2man-indent-level +1
21 .\" .rstReportMargin post:
22 ..
23 .de UNINDENT
24 . RE
25 .\" indent \\n[an-margin]
26 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
27 .nr rst2man-indent-level -1
28 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
30 ..
31 .\" Man page generated from reStructeredText.
32 .
33 .sp
34 The krb5.conf file contains Kerberos configuration information, including the locations of KDCs and admin servers for the Kerberos realms of interest, defaults for the current realm and for Kerberos applications, and mappings of hostnames onto Kerberos realms. Normally, you should install your krb5.conf file in the directory /etc. You can override the default location by setting the environment variable KRB5_CONFIG.
35 .SH STRUCTURE
36 .sp
37 The krb5.conf file is set up in the style of a Windows INI file. Sections are headed by the section name, in square brackets. Each section may contain zero or more relations, of the form:
38 .sp
39 .nf
40 .ft C
41 foo = bar
42 .ft P
43 .fi
44 .sp
45 or
46 .sp
47 .nf
48 .ft C
49 fubar = {
50         foo = bar
51         baz = quux
52 }
53 .ft P
54 .fi
55 .sp
56 Placing a \(aq*\(aq at the end of a line indicates that this is the \fIfinal\fP value for the tag. This means that neither the remainder of this configuration file nor any other configuration file will be checked for any other values for this tag.
57 .sp
58 For example, if you have the following lines:
59 .sp
60 .nf
61 .ft C
62 foo = bar*
63 foo = baz
64 .ft P
65 .fi
66 .sp
67 then the second value of \fIfoo\fP (baz) would never be read.
68 .sp
69 The krb5.conf file can include other files using either of the following directives at the beginning of a line:
70 .sp
71 .nf
72 .ft C
73 include FILENAME
74 includedir DIRNAME
75 .ft P
76 .fi
77 .sp
78 \fIFILENAME\fP or \fIDIRNAME\fP should be an absolute path. The named file or directory must exist and be readable. Including a directory includes all files within the directory whose names consist solely of alphanumeric characters, dashes, or underscores. Included profile files are syntactically independent of their parents, so each included file must begin with a section header.
79 .sp
80 The krb5.conf file can specify that configuration should be obtained from a loadable module, rather than the file itself, using the following directive at the beginning of a line before any section headers:
81 .sp
82 .nf
83 .ft C
84 module MODULEPATH:RESIDUAL
85 .ft P
86 .fi
87 .sp
88 \fIMODULEPATH\fP may be relative to the library path of the krb5 installation, or it may be an absolute path.  \fIRESIDUAL\fP is provided to the module at initialization time.  If krb5.conf uses a module directive, kdc.conf should also use one if it exists.
89 .sp
90 The krb5.conf file may contain any or all of the following sections:
91 .TS
92 center;
93 |l|l|.
94 _
95 T{
96 \fI\%libdefaults\fP
97 T}      T{
98 Contains default values used by the Kerberos V5 library.
99 T}
100 _
101 T{
102 \fI\%realms\fP
103 T}      T{
104 Contains subsections keyed by Kerberos realm names. Each subsection describes realm\-specific information, including where to find the Kerberos servers for that realm.
105 T}
106 _
107 T{
108 \fI\%domain_realm\fP
109 T}      T{
110 Contains relations which map domain names and subdomains onto Kerberos realm names. This is used by programs to determine what realm a host should be in, given its fully qualified domain name.
111 T}
112 _
113 T{
114 \fI\%logging\fP
115 T}      T{
116 Contains relations which determine how Kerberos programs are to perform logging.
117 T}
118 _
119 T{
120 \fI\%capaths\fP
121 T}      T{
122 Contains the authentication paths used with direct (nonhierarchical) cross\-realm authentication. Entries in this section are used by the client to determine the intermediate realms which may be used in cross\-realm authentication. It is also used by the end\-service when checking the transited field for trusted intermediate realms.
123 T}
124 _
125 T{
126 \fI\%plugins\fP
127 T}      T{
128 Contains tags to register dynamic plugin modules and to turn modules on and off.
129 T}
130 _
131 T{
132 \fI\%appdefaults\fP
133 T}      T{
134 Contains default values that can be used by Kerberos V5 applications.
135 T}
136 _
137 .TE
138 .SH SECTIONS
139 .SS \fB[libdefaults]\fP
140 .sp
141 The libdefaults section may contain any of the following relations:
142 .INDENT 0.0
143 .TP
144 .B \fBallow_weak_crypto\fP
145 .sp
146 If this is set to 0 (for false), then weak encryption types will be filtered out of the previous three lists (as noted in \fISupported_Encryption_Types_and_Salts\fP). The default value for this tag is false, which may cause authentication failures in existing Kerberos infrastructures that do not support strong crypto. Users in affected environments should set this tag to true until their infrastructure adopts stronger ciphers.
147 .TP
148 .B \fBap_req_checksum_type\fP
149 .sp
150 An integer which specifies the type of AP\-REQ checksum to use in authenticators.
151 This variable should be unset so the appropriate checksum for the encryption key in use will be used.
152 This can be set if backward compatibility requires a specific checksum type.
153 See the \fIkdc_req_checksum_type\fP configuration option for the possible values and their meanings.
154 .TP
155 .B \fBcanonicalize\fP
156 .sp
157 This flag indicates to the KDC that the client is prepared to receive a reply that contains a principal name other than the one requested.
158 The client should expect, when sending names with the "canonicalize" KDC option,
159 that names in the KDC\(aqs reply will be different than the name in the request.
160 The default value for this flag is not set.
161 .TP
162 .B \fBccache_type\fP
163 .sp
164 Use this parameter on systems which are DCE clients, to specify the type of cache to be created by kinit, or when forwarded tickets are received. DCE and Kerberos can share the cache, but some versions of DCE do not support the default cache as created by this version of Kerberos. Use a value of 1 on DCE 1.0.3a systems, and a value of 2 on DCE 1.1 systems. The default value is 4.
165 .TP
166 .B \fBclockskew\fP
167 .sp
168 Sets the maximum allowable amount of clockskew in seconds that the library will tolerate before assuming that a Kerberos message is invalid. The default value is 300 seconds, or five minutes.
169 .TP
170 .B \fBdefault_keytab_name\fP
171 .sp
172 This relation specifies the default keytab name to be used by application servers such as telnetd and rlogind. The default is \fI/etc/krb5.keytab\fP.
173 .TP
174 .B \fBdefault_realm\fP
175 .sp
176 Identifies the default Kerberos realm for the client. Set its value to your Kerberos realm. If this is not specified and the TXT record lookup is enabled (see \fIudns_label\fP), then that information will be used to determine the default realm. If this tag is not set in this configuration file and there is no DNS information found, then an error will be returned.
177 .TP
178 .B \fBdefault_tgs_enctypes\fP
179 .sp
180 Identifies the supported list of session key encryption types that should be returned by the KDC. The list may be delimited with commas or whitespace. Kerberos supports many different encryption types, and support for more is planned in the future. (see \fISupported_Encryption_Types_and_Salts\fP for a list of the accepted values for this tag). The default value is \fIaes256\-cts\-hmac\-sha1\-96 aes128\-cts\-hmac\-sha1\-96 des3\-cbc\-sha1 arcfour\-hmac\-md5 des\-cbc\-crc des\-cbc\-md5 des\-cbc\-md4\fP.
181 .TP
182 .B \fBdefault_tkt_enctypes\fP
183 .sp
184 Identifies the supported list of session key encryption types that should be requested by the client. The format is the same as for default_tgs_enctypes. The default value for this tag is \fIaes256\-cts\-hmac\-sha1\-96 aes128\-cts\-hmac\-sha1\-96 des3\-cbc\-sha1 arcfour\-hmac\-md5 des\-cbc\-crc des\-cbc\-md5 des\-cbc\-md4\fP.
185 .TP
186 .B \fBdns_fallback\fP
187 .sp
188 General flag controlling the use of DNS for Kerberos information. If both of the preceding options are specified, this option has no effect.
189 .TP
190 .B \fBdns_lookup_kdc\fP
191 .sp
192 Indicate whether DNS SRV records should be used to locate the KDCs and other servers for a realm, if they are not listed in the information for the realm. (Note that the admin_server entry must be in the file, because the DNS implementation for it is incomplete.)
193 .sp
194 Enabling this option does open up a type of denial\-of\-service attack, if someone spoofs the DNS records and redirects you to another server. However, it\(aqs no worse than a denial of service, because that fake KDC will be unable to decode anything you send it (besides the initial ticket request, which has no encrypted data), and anything the fake KDC sends will not be trusted without verification using some secret that it won\(aqt know.
195 .sp
196 If this option is not specified but dns_fallback is, that value will be used instead. If neither option is specified, the behavior depends on configure\-time options; if none were given, the default is to enable this option. If the DNS support is not compiled in, this entry has no effect.
197 .TP
198 .B \fBdns_lookup_realm\fP
199 .sp
200 Indicate whether DNS TXT records should be used to determine the Kerberos realm of a host.
201 .sp
202 Enabling this option may permit a redirection attack, where spoofed DNS replies persuade a client to authenticate to the wrong realm, when talking to the wrong host (either by spoofing yet more DNS records or by intercepting the net traffic). Depending on how the client software manages hostnames, however, it could already be vulnerable to such attacks. We are looking at possible ways to minimize or eliminate this exposure. For now, we encourage more adventurous sites to try using Secure DNS.
203 .sp
204 If this option is not specified but dns_fallback is, that value will be used instead. If neither option is specified, the behavior depends on configure\-time options; if none were given, the default is to disable this option. If the DNS support is not compiled in, this entry has no effect.
205 .TP
206 .B \fBextra_addresses\fP
207 .sp
208 This allows a computer to use multiple local addresses, in order to allow Kerberos to work in a network that uses NATs. The addresses should be in a comma\-separated list.
209 .TP
210 .B \fBforwardable\fP
211 .sp
212 If this flag is set, initial tickets by default will be forwardable. The default value for this flag is not set.
213 .TP
214 .B \fBignore_acceptor_hostname\fP
215 .sp
216 When accepting GSSAPI or krb5 security contexts for host\-based service principals,
217 ignore any hostname passed by the calling application and allow any service principal present in the keytab
218 which matches the service name and realm  name (if given).
219 This option can improve the administrative flexibility of server applications on multihomed hosts,
220 but can compromise the security of virtual hosting environments.  The default value is false.
221 .TP
222 .B \fBk5login_authoritative\fP
223 .sp
224 If the value of this relation is true (the default), principals must be listed in a local user\(aqs k5login file to be granted login access, if a k5login file exists. If the value of this relation is false, a principal may still be granted login access through other mechanisms even if a k5login file exists but does not list the principal.
225 .TP
226 .B \fBk5login_directory\fP
227 .sp
228 If set, the library will look for a local user\(aqs k5login file within the named directory, with a filename corresponding to the local username. If not set, the library will look for k5login files in the user\(aqs home directory, with the filename .k5login. For security reasons, k5login files must be owned by the local user or by root.
229 .TP
230 .B \fBkdc_default_options\fP
231 .sp
232 Default KDC options (Xored for multiple values) when requesting initial credentials. By default it is set to 0x00000010 (KDC_OPT_RENEWABLE_OK).
233 .TP
234 .B \fBkdc_timesync\fP
235 .sp
236 If this is set to 1 (for true), then client machines will compute the difference between their time and the time returned by the KDC in the timestamps in the tickets and use this value to correct for an inaccurate system clock. This corrective factor is only used by the Kerberos library. The default is 1.
237 .TP
238 .B \fBkdc_req_checksum_type\fP
239 .sp
240 An integer which specifies the type of checksum to use for the KDC requests for compatibility with DCE security servers
241 which do not support the default RSA MD5 used by Kerberos V5.
242 This applies to DCE 1.1 and earlier.
243 Use a value of 2 to use the RSA MD4 instead.
244 This value is only used for DES keys; other keys use the preferred checksum type for those keys.
245 .sp
246 The possible values and their meanings are as follows.
247 .TS
248 center;
249 |l|l|.
250 _
251 T{
252 1
253 T}      T{
254 CRC32
255 T}
256 _
257 T{
258 2
259 T}      T{
260 RSA MD4
261 T}
262 _
263 T{
264 3
265 T}      T{
266 RSA MD4 DES
267 T}
268 _
269 T{
270 4
271 T}      T{
272 DES CBC
273 T}
274 _
275 T{
276 7
277 T}      T{
278 RSA MD5
279 T}
280 _
281 T{
282 8
283 T}      T{
284 RSA MD5 DES
285 T}
286 _
287 T{
288 9
289 T}      T{
290 NIST SHA
291 T}
292 _
293 T{
294 12
295 T}      T{
296 HMAC SHA1 DES3
297 T}
298 _
299 T{
300 \-138
301 T}      T{
302 Microsoft MD5 HMAC checksum type
303 T}
304 _
305 .TE
306 .TP
307 .B \fBnoaddresses\fP
308 .sp
309 Setting this flag causes the initial Kerberos ticket to be addressless. The default for the flag is set.
310 .TP
311 .B \fBpermitted_enctypes\fP
312 .sp
313 Identifies all encryption types that are permitted for use in session key encryption. The default value for this tag is \fIaes256\-cts\-hmac\-sha1\-96 aes128\-cts\-hmac\-sha1\-96 des3\-cbc\-sha1 arcfour\-hmac\-md5 des\-cbc\-crc des\-cbc\-md5 des\-cbc\-md4\fP.
314 .TP
315 .B \fBplugin_base_dir\fP
316 .sp
317 If set, determines the base directory where krb5 plugins are located.
318 The default value is  the  "krb5/plugins" subdirectory of the krb5 library directory.
319 .TP
320 .B \fBpreferred_preauth_types\fP
321 .sp
322 This allows you to set the preferred preauthentication types which the client will attempt before others which may be advertised by a KDC.  The default value for this setting is "17, 16, 15, 14", which forces libkrb5 to attempt to use PKINIT if it is supported.
323 .TP
324 .B \fBproxiable\fP
325 .sp
326 If this flag is set, initial tickets by default will be proxiable. The default value for this flag is not set.
327 .TP
328 .B \fBrdns\fP
329 .sp
330 If set to false, prevent the use of reverse DNS resolution when translating hostnames into service principal names. Defaults to true. Setting this flag to false is more secure, but may force users to exclusively use fully qualified domain names when authenticating to services.
331 .TP
332 .B \fBrealm_try_domains\fP
333 .sp
334 Indicate whether a host\(aqs domain components should be used to determine the Kerberos realm of the host.  The value of this variable is an integer: \-1 means not to search, 0 means to try the host\(aqs domain itself, 1 means to also try the domain\(aqs immediate parent, and so forth. The library\(aqs usual mechanism for locating Kerberos realms is used to determine whether a domain is a valid realm\-\-which may involve consulting DNS if \fIdns_lookup_kdc\fP is set.  The default is not to search domain components.
335 .TP
336 .B \fBrenew_lifetime\fP
337 .sp
338 The value of this tag is the default renewable lifetime for initial tickets. The default value for the tag is 0.
339 .UNINDENT
340 .sp
341 \fBsafe_checksum_type\fP
342 .INDENT 0.0
343 .INDENT 3.5
344 .sp
345 An integer which specifies the type of checksum to use for the KRB\-SAFE requests.  By default it is set to 8 (RSA MD5 DES).
346 For compatibility with applications linked against DCE version 1.1 or earlier Kerberos libraries,
347 use a value of 3 to use the RSA MD4 DES instead.
348 This field is ignored when its value is incompatible with the session key type.
349 See the \fIkdc_req_checksum_type\fP configuration option for the possible values and their meanings.
350 .UNINDENT
351 .UNINDENT
352 .INDENT 0.0
353 .TP
354 .B \fBticket_lifetime\fP
355 .sp
356 The value of this tag is the default lifetime for initial tickets. The default value for the tag is 1 day.
357 .TP
358 .B \fBudp_preference_limit\fP
359 .sp
360 When sending a message to the KDC, the library will try using TCP before UDP if the size of the message is above \fIudp_preference_list\fP. If the message is smaller than \fIudp_preference_list\fP, then UDP will be tried before TCP. Regardless of the size, both protocols will be tried if the first attempt fails.
361 .TP
362 .B \fBverify_ap_req_nofail\fP
363 .sp
364 If this flag is set, then an attempt to get initial credentials will fail if the client machine does not have a keytab. The default for the flag is not set.
365 .UNINDENT
366 .SS \fB[realms]\fP
367 .sp
368 Each tag in the [realms] section of the file is the name of a Kerberos realm. The value of the tag is a subsection with relations that define the properties of that particular realm. For each realm, the following tags may be specified in the realm\(aqs subsection:
369 .INDENT 0.0
370 .TP
371 .B \fBadmin_server\fP
372 .sp
373 Identifies the host where the administration server is running. Typically, this is the master Kerberos server. This tag must be given a value in order to communicate with the kadmin server for the realm.
374 .TP
375 .B \fBauth_to_local\fP
376 .sp
377 This tag allows you to set a general rule for mapping principal names to local user names. It will be used if there is not an explicit mapping for the principal name that is being translated. The possible values are:
378 .INDENT 7.0
379 .TP
380 .B DB:filename
381 .
382 The principal will be looked up in the database filename. Support for this is not currently compiled in by default.
383 .TP
384 .B RULE:exp
385 .
386 The local name will be formulated from exp.
387 .sp
388 The format for exp is [n:string](regexp)s/pattern/replacement/g. The integer n indicates how many components the target principal should have. If this matches, then a string will be formed from string, substituting the realm of the principal for $0 and the n\(aqth component of the principal for $n (e.g. if the principal was \fIjohndoe/admin\fP then [2:$2$1foo] would result in the string "adminjohndoefoo"). If this string matches regexp, then the s//[g] substitution command will be run over the string. The optional g will cause the substitution to be global over the string, instead of replacing only the first match in the string.
389 .TP
390 .B DEFAULT
391 .
392 The principal name will be used as the local user name. If the principal has more than one component or is not in the default realm, this rule is not applicable and the conversion will fail.
393 .UNINDENT
394 .sp
395 For example:
396 .sp
397 .nf
398 .ft C
399 [realms]
400     ATHENA.MIT.EDU = {
401         auth_to_local = RULE:[2:$1](johndoe)s/^.*$/guest/
402         auth_to_local = RULE:[2:$1;$2](^.*;admin$)s/;admin$//
403         auth_to_local = RULE:[2:$2](^.*;root)s/^.*$/root/
404         auto_to_local = DEFAULT
405     }
406 .ft P
407 .fi
408 .sp
409 would result in any principal without \fIroot\fP or \fIadmin\fP as the second component to be translated with the default rule. A principal with a second component of \fIadmin\fP will become its first component. \fIroot\fP will be used as the local name for any principal with a second component of \fIroot\fP. The exception to these two rules are any principals \fIjohndoe\fP/*, which will always get the local name \fIguest\fP.
410 .TP
411 .B \fBauth_to_local_names\fP
412 .sp
413 This subsection allows you to set explicit mappings from principal names to local user names. The tag is the mapping name, and the value is the corresponding local user name.
414 .TP
415 .B \fBdatabase_module\fP
416 .sp
417 This relation indicates the name of the configuration section under [dbmodules] for database specific parameters used by the loadable database library.
418 .TP
419 .B \fBdefault_domain\fP
420 .sp
421 This tag is used for Kerberos 4 compatibility. Kerberos 4 does not require the entire hostname of a server to be in its principal like Kerberos 5 does. This tag provides the domain name needed to produce a full hostname when translating V4 principal names into V5 principal names. All servers in this realm are assumed to be in the domain given as the value of this tag
422 .TP
423 .B \fBkdc\fP
424 .sp
425 The name or address of a host running a KDC for that realm. An optional port number, separated from the hostname by a colon, may be included. If the name or address contains colons (for example, if it is an IPv6 address), enclose it in square brackets to distinguish the colon from a port separator. For your computer to be able to communicate with the KDC for each realm, this tag must be given a value in each realm subsection in the configuration file, or there must be DNS SRV records specifying the KDCs (see \fIudns_label\fP).
426 .TP
427 .B \fBkpasswd_server\fP
428 .sp
429 Points to the server where all the password changes are performed.  If there is no such entry, the port 464 on the \fIadmin_server\fP host will be tried.
430 .TP
431 .B \fBkrb524_server\fP
432 .sp
433 Points to the server that does 524 conversions.  If it is not mentioned, the krb524 port 4444 on the kdc will be tried.
434 .TP
435 .B \fBmaster_kdc\fP
436 .sp
437 Identifies the master KDC(s). Currently, this tag is used in only one case: If an attempt to get credentials fails because of an invalid password, the client software will attempt to contact the master KDC, in case the user\(aqs password has just been changed, and the updated database has not been propagated to the slave servers yet.
438 .TP
439 .B \fBv4_instance_convert\fP
440 .sp
441 This subsection allows the administrator to configure exceptions to the default_domain mapping rule. It contains V4 instances (the tag name) which should be translated to some specific hostname (the tag value) as the second component in a Kerberos V5 principal name.
442 .TP
443 .B \fBv4_realm\fP
444 .sp
445 This relation is used by the krb524 library routines when converting a V5 principal name to a V4 principal name. It is used when the V4 realm name and the V5 realm name are not the same, but still share the same principal names and passwords. The tag value is the Kerberos V4 realm name.
446 .UNINDENT
447 .SS \fB[domain_realm]\fP
448 .sp
449 The [domain_realm] section provides a translation from a domain name or hostname to a Kerberos realm name. The tag name can be a host name, or a domain name, where domain names are indicated by a prefix of a period (.). The value of the relation is the Kerberos realm name for that particular host or domain. Host names and domain names should be in lower case.
450 .sp
451 If no translation entry applies, the host\(aqs realm is considered to be the hostname\(aqs domain portion converted to upper case. For example, the following [domain_realm] section:
452 .sp
453 .nf
454 .ft C
455 [domain_realm]
456     crash.mit.edu = TEST.ATHENA.MIT.EDU
457     .mit.edu = ATHENA.MIT.EDU
458     mit.edu = ATHENA.MIT.EDU
459     example.com = EXAMPLE.COM
460 .ft P
461 .fi
462 .sp
463 maps the host with the \fIexact\fP name \fIcrash.mit.edu\fP into the TEST.ATHENA.MIT.EDU realm. The period prefix in \fI.mit.edu\fP denotes that \fIall\fP systems in the \fImit.edu\fP domain belong to  ATHENA.MIT.EDU realm.
464 Note the entries for the hosts \fImit.edu\fP and \fIexample.com\fP. Without these entries, these hosts would be mapped into the Kerberos realms EDU and COM, respectively.
465 .SS \fB[logging]\fP
466 .sp
467 The [logging] section indicates how a particular entity is to perform its logging. The relations in this section assign one or more values to the entity name. Currently, the following entities are used:
468 .INDENT 0.0
469 .TP
470 .B \fBadmin_server\fP
471 .sp
472 These entries specify how the administrative server is to perform its logging.
473 .TP
474 .B \fBdefault\fP
475 .sp
476 These entries specify how to perform logging in the absence of explicit specifications otherwise.
477 .TP
478 .B \fBkdc\fP
479 .sp
480 These entries specify how the KDC is to perform its logging.
481 .UNINDENT
482 .sp
483 Values are of the following forms:
484 .nf
485 FILE=<filename>
486 FILE:<filename>
487 .fi
488 .sp
489 .INDENT 0.0
490 .INDENT 3.5
491 .sp
492 This value causes the entity\(aqs logging messages to go to the specified file. If the = form is used, the file is overwritten. If the : form is used, the file is appended to.
493 .UNINDENT
494 .UNINDENT
495 .INDENT 0.0
496 .TP
497 .B STDERR
498 .
499 This value causes the entity\(aqs logging messages to go to its standard error stream.
500 .TP
501 .B CONSOLE
502 .
503 This value causes the entity\(aqs logging messages to go to the console, if the system supports it.
504 .TP
505 .B DEVICE=<devicename>
506 .
507 This causes the entity\(aqs logging messages to go to the specified device.
508 .TP
509 .B SYSLOG[:<severity>[:<facility>]]
510 .
511 This causes the entity\(aqs logging messages to go to the system log.
512 .sp
513 The severity argument specifies the default severity of system log messages. This may be any of the following severities supported by the syslog(3) call, minus the LOG_ prefix: LOG_EMERG, LOG_ALERT, LOG_CRIT, LOG_ERR, LOG_WARNING, LOG_NOTICE, LOG_INFO, and LOG_DEBUG. For example, a value of CRIT would specify LOG_CRIT severity.
514 .sp
515 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: LOG_KERN, LOG_USER, LOG_MAIL, LOG_DAEMON, LOG_AUTH, LOG_LPR, LOG_NEWS, LOG_UUCP, LOG_CRON, and LOG_LOCAL0 through LOG_LOCAL7.
516 .sp
517 If no severity is specified, the default is ERR. If no facility is specified, the default is AUTH.
518 .UNINDENT
519 .sp
520 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 with default severity of LOG_INFO; and the logging messages from the administrative server will be appended to the file \fI/var/adm/kadmin.log\fP and sent to the device \fI/dev/tty04\fP.:
521 .sp
522 .nf
523 .ft C
524 [logging]
525     kdc = CONSOLE
526     kdc = SYSLOG:INFO:DAEMON
527     admin_server = FILE:/var/adm/kadmin.log
528     admin_server = DEVICE=/dev/tty04
529 .ft P
530 .fi
531 .SS \fB[capaths]\fP
532 .sp
533 In order to perform direct (non\-hierarchical) cross\-realm authentication, a database is needed to construct the authentication paths between the realms. This section defines that database.
534 .sp
535 A client will use this section to find the authentication path between its realm and the realm of the server. The server will use this section to verify the authentication path used by the client, by checking the transited field of the received ticket.
536 .sp
537 There is a tag for each participating realm, and each tag has subtags for each of the realms. The value of the subtags is an intermediate realm which may participate in the cross\-realm authentication. The subtags may be repeated if there is more then one intermediate realm. A value of "." means that the two realms share keys directly, and no intermediate realms should be allowed to participate.
538 .sp
539 There are n**2 possible entries in this table, but only those entries which will be needed on the client or the server need to be present. The client needs a tag for its local realm, with subtags for all the realms of servers it will need to authenticate with. A server needs a tag for each realm of the clients it will serve.
540 .sp
541 For example, \fIANL.GOV, PNL.GOV\fP, and \fINERSC.GOV\fP all wish to use the \fIES.NET\fP realm as an intermediate realm. \fIANL\fP has a sub realm of \fITEST.ANL.GOV\fP which will authenticate with \fINERSC.GOV\fP but not \fIPNL.GOV\fP. The [capaths] section for \fIANL.GOV\fP systems would look like this:
542 .sp
543 .nf
544 .ft C
545 [capaths]
546     ANL.GOV = {
547         TEST.ANL.GOV = .
548         PNL.GOV = ES.NET
549         NERSC.GOV = ES.NET
550         ES.NET = .
551     }
552     TEST.ANL.GOV = {
553         ANL.GOV = .
554     }
555     PNL.GOV = {
556         ANL.GOV = ES.NET
557     }
558     NERSC.GOV = {
559         ANL.GOV = ES.NET
560     }
561     ES.NET = {
562         ANL.GOV = .
563     }
564 .ft P
565 .fi
566 .sp
567 The [capaths] section of the configuration file used on \fINERSC.GOV\fP systems would look like this:
568 .sp
569 .nf
570 .ft C
571 [capaths]
572     NERSC.GOV = {
573         ANL.GOV = ES.NET
574         TEST.ANL.GOV = ES.NET
575         TEST.ANL.GOV = ANL.GOV
576         PNL.GOV = ES.NET
577         ES.NET = .
578     }
579     ANL.GOV = {
580         NERSC.GOV = ES.NET
581     }
582     PNL.GOV = {
583         NERSC.GOV = ES.NET
584     }
585     ES.NET = {
586         NERSC.GOV = .
587     }
588     TEST.ANL.GOV = {
589         NERSC.GOV = ANL.GOV
590         NERSC.GOV = ES.NET
591     }
592 .ft P
593 .fi
594 .sp
595 In the above examples, the ordering is not important, except when the same subtag name is used more then once. The client will use this to determine the path. (It is not important to the server, since the transited field is not sorted.)
596 .sp
597 This feature is not currently supported by DCE. DCE security servers can be used with Kerberized clients and servers, but versions prior to DCE 1.1 did not fill in the transited field, and should be used with caution.
598 .SS \fB[dbdefaults]\fP
599 .sp
600 The [dbdefaults] section provides default values for the database specific parameters. It can also specify the configuration section under \fI\%dbmodules\fP section for database specific parameters used by the database library.
601 .sp
602 The following tags are used in this section:
603 .INDENT 0.0
604 .TP
605 .B \fBdatabase_module\fP
606 .sp
607 This relation indicates the name of the configuration section under the \fI\%dbmodules\fP for database specific parameters used by the loadable database library.
608 .TP
609 .B \fBldap_kerberos_container_dn\fP
610 .sp
611 This LDAP specific tag indicates the DN of the container object where the realm objects will be located. This value is used if the container object is not mentioned in the configuration section under \fI\%dbmodules\fP.
612 .TP
613 .B \fBldap_kdc_dn\fP
614 .sp
615 This LDAP specific tag indicates the default bind DN for the KDC server. The KDC server does a login to the directory as this object. This object should have the rights to read the Kerberos data in the LDAP database. This value is used if the bind DN for the KDC is not mentioned in the configuration section under \fI\%dbmodules\fP.
616 .TP
617 .B \fBldap_kadmind_dn\fP
618 .sp
619 This LDAP specific tag indicates the default bind DN for the Administration server. The administration server does a login to the directory as this object. This object should have the rights to read and write the Kerberos data in the LDAP database. This value is used if the bind DN for the Administration server is not mentioned in the configuration section under \fI\%dbmodules\fP.
620 .TP
621 .B \fBldap_service_password_file\fP
622 .sp
623 This LDAP specific tag indicates the file containing the stashed passwords (created by kdb5_ldap_util stashsrvpw) for the objects used by the Kerberos servers to bind to the LDAP server. This file must be kept secure. This value is used if no service password file is mentioned in the configuration section under \fI\%dbmodules\fP.
624 .TP
625 .B \fBldap_servers\fP
626 .sp
627 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. This value is used if no LDAP servers are mentioned in the configuration section under \fI\%dbmodules\fP. It is recommended to use the \fIldapi://\fP or \fIldaps://\fP interface and not to use \fIldap://\fP interface.
628 .TP
629 .B \fBldap_conns_per_server\fP
630 .sp
631 This LDAP specific tag indicates the number of connections to be maintained per LDAP server. This value is used if the number of connections per LDAP server are not mentioned in the configuration section under \fI\%dbmodules\fP. The default value is 5.
632 .UNINDENT
633 .SS \fB[dbmodules]\fP
634 .sp
635 Contains database specific parameters used by the database library. Each tag in the [dbmodules] section of the file names a configuration section for database specific parameters that can be referred to by a realm. The value of the tag is a subsection where the relations in that subsection define the database specific parameters.
636 .sp
637 For each section, the following tags may be specified in the subsection:
638 .INDENT 0.0
639 .TP
640 .B \fBdatabase_name\fP
641 .sp
642 This DB2\-specific tag indicates the location of the database in the filesystem. The default is \fI/usr/local/var/krb5kdc/principal\fP.
643 .TP
644 .B \fBdb_library\fP
645 .sp
646 This tag indicates the name of the loadable database library. The value should be \fIdb2\fP for DB2 database and \fIkldap\fP for LDAP database.
647 .TP
648 .B \fBdb_module_dir\fP
649 .sp
650 This tag controls where the plugin system looks for modules. The value should be an absolute path.
651 .TP
652 .B \fBdisable_last_success\fP
653 .sp
654 If set to \fItrue\fP, suppresses KDC updates to the \fI"Last successful authentication"\fP 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.).
655 .TP
656 .B \fBdisable_lockout\fP
657 .sp
658 If set to \fItrue\fP, suppresses KDC updates to the \fI"Last failed authentication"\fP and \fI"Failed password attempts"\fP fields of principal entries requiring preauthentication. Setting this flag may improve performance, but also disables account lockout.
659 .TP
660 .B \fBldap_conns_per_server\fP
661 .sp
662 This LDAP specific tags indicates the number of connections to be maintained per LDAP server.
663 .TP
664 .B \fBldap_kadmind_dn\fP
665 .sp
666 This LDAP specific tag indicates the default bind DN for the Administration server. The administration server does a login to the directory as this object. This object should have the rights to read and write the Kerberos data in the LDAP database.
667 .TP
668 .B \fBldap_kdc_dn\fP
669 .sp
670 This LDAP specific tag indicates the default bind DN for the KDC server. The KDC server does a login to the directory as this object. This object should have the rights to read the Kerberos data in the LDAP database.
671 .TP
672 .B \fBldap_kerberos_container_dn\fP
673 .sp
674 This LDAP specific tag indicates the DN of the container object where the realm objects will be located.
675 .TP
676 .B \fBldap_servers\fP
677 .sp
678 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 use \fIldapi://\fP or \fIldaps://\fP interface to connect to the LDAP server.
679 .TP
680 .B \fBldap_service_password_file\fP
681 .sp
682 This LDAP specific tag indicates the file containing the stashed passwords (created by \fIkdb5_ldap_util stashsrvpw\fP) for the objects used by the Kerberos servers to bind to the LDAP server. This file must be kept secure.
683 .UNINDENT
684 .SS \fB[appdefaults]\fP
685 .sp
686 Each tag in the [appdefaults] section names a Kerberos V5 application or an option that is used by some Kerberos V5 application[s]. The value of the tag defines the default behaviors for that application.
687 .sp
688 For example:
689 .sp
690 .nf
691 .ft C
692 [appdefaults]
693     telnet = {
694         ATHENA.MIT.EDU = {
695              option1 = false
696         }
697     }
698     telnet = {
699         option1 = true
700         option2 = true
701     }
702     ATHENA.MIT.EDU = {
703         option2 = false
704     }
705     option2 = true
706 .ft P
707 .fi
708 .sp
709 The above four ways of specifying the value of an option are shown in order of decreasing precedence. In this example, if telnet is running in the realm EXAMPLE.COM, it should, by default, have option1 and option2 set to true. However, a telnet program in the realm ATHENA.MIT.EDU should have option1 set to false and option2 set to true. Any other programs in ATHENA.MIT.EDU should have option2 set to false by default. Any programs running in other realms should have option2 set to true.
710 .sp
711 The list of specifiable options for each application may be found in that application\(aqs man pages. The application defaults specified here are overridden by those specified in the \fI\%realms\fP section.
712 .SH PLUGINS
713 .INDENT 0.0
714 .INDENT 3.5
715 .INDENT 0.0
716 .IP \(bu 2
717 .
718 \fI\%pwqual\fP interface
719 .IP \(bu 2
720 .
721 \fI\%kadm5_hook\fP interface
722 .IP \(bu 2
723 .
724 \fI\%clpreauth\fP and \fI\%kdcpreauth\fP interfaces
725 .UNINDENT
726 .UNINDENT
727 .UNINDENT
728 .sp
729 Tags in the \fB[plugins]\fP section can be used to register dynamic plugin modules and to turn modules on and off. Not every krb5 pluggable interface uses the [plugins] section; the ones that do are documented here.
730 .sp
731 Each pluggable interface corresponds to a subsection of [plugins]. All subsections support the same tags:
732 .INDENT 0.0
733 .TP
734 .B \fBdisable\fP
735 .sp
736 This tag may have multiple values. If there are values for this tag, then the named modules will be disabled for the pluggable interface.
737 .TP
738 .B \fBenable_only\fP
739 .sp
740 This tag may have multiple values. If there are values for this tag, then only the named modules will be enabled for the pluggable interface.
741 .TP
742 .B \fBmodule\fP
743 .sp
744 This tag may have multiple values. Each value is a string of the form "modulename:pathname", which causes the shared object located at pathname to be registered as a dynamic module named modulename for the pluggable interface. If pathname is not an absolute path, it will be treated as relative to the "krb5/plugins" subdirectory of the krb5 library directory.
745 .UNINDENT
746 .sp
747 The following subsections are currently supported within the [plugins] section:
748 .SS pwqual interface
749 .sp
750 The \fBpwqual\fP subsection controls modules for the password quality interface, which is used to reject weak passwords when passwords are changed. In addition to any registered dynamic modules, the following built\-in modules exist (and may be disabled with the disable tag):
751 .INDENT 0.0
752 .TP
753 .B \fBdict\fP
754 .sp
755 Checks against the realm dictionary file
756 .TP
757 .B \fBempty\fP
758 .sp
759 Rejects empty passwords
760 .TP
761 .B \fBhesiod\fP
762 .sp
763 Checks against user information stored in Hesiod (only if Kerberos was built with Hesiod support)
764 .TP
765 .B \fBprinc\fP
766 .sp
767 Checks against components of the principal name
768 .UNINDENT
769 .SS kadm5_hook interface
770 .sp
771 The \fBkadm5_hook\fP interface provides plugins with information on principal creation, modification, password changes and deletion. This interface can be used to write a plugin to synchronize MIT Kerberos with another database such as Active Directory. No plugins are built in for this interface.
772 .SS clpreauth and kdcpreauth interfaces
773 .sp
774 The \fBclpreauth\fP and \fBkdcpreauth\fP interfaces allow plugin modules to provide client and KDC preauthentication mechanisms.  The following built\-in modules exist for these interfaces:
775 .INDENT 0.0
776 .TP
777 .B \fBpkinit\fP
778 .sp
779 This module implements the PKINIT preauthentication mechanism.
780 .TP
781 .B \fBencrypted_challenge\fP
782 .sp
783 This module implements the encrypted challenge FAST factor.
784 .TP
785 .B \fBencrypted_timestamp\fP
786 .sp
787 This module implements the encrypted timestamp mechanism.
788 .UNINDENT
789 .SH PKINIT OPTIONS
790 .INDENT 0.0
791 .INDENT 3.5
792 .INDENT 0.0
793 .IP \(bu 2
794 .
795 pkinit identity syntax
796 .IP \(bu 2
797 .
798 pkinit krb5.conf options
799 .UNINDENT
800 .UNINDENT
801 .UNINDENT
802 .IP Note
803 .
804 The following are pkinit\-specific options. Note that these values may be specified in \fI[libdefaults]\fP as global defaults, or within a realm\-specific subsection of \fI[libdefaults]\fP, or may be specified as realm\-specific values in the \fI[realms]\fP section. Also note that a realm\-specific value over\-rides, does not add to, a generic \fI[libdefaults]\fP specification. The search order is:
805 .INDENT 0.0
806 .IP 1. 3
807 .
808 realm\-specific subsection of [libdefaults]
809 .INDENT 3.0
810 .INDENT 3.5
811 .INDENT 0.0
812 .TP
813 .B [libdefaults]
814 .INDENT 7.0
815 .TP
816 .B EXAMPLE.COM = {
817 .
818 pkinit_anchors = FILE:/usr/local/example.com.crt
819 .UNINDENT
820 .sp
821 }
822 .UNINDENT
823 .UNINDENT
824 .UNINDENT
825 .IP 2. 3
826 .
827 realm\-specific value in the [realms] section,
828 .INDENT 3.0
829 .INDENT 3.5
830 .INDENT 0.0
831 .TP
832 .B [realms]
833 .INDENT 7.0
834 .TP
835 .B OTHERREALM.ORG = {
836 .
837 pkinit_anchors = FILE:/usr/local/otherrealm.org.crt
838 .UNINDENT
839 .sp
840 }
841 .UNINDENT
842 .UNINDENT
843 .UNINDENT
844 .IP 3. 3
845 .
846 generic value in the [libdefaults] section.
847 .INDENT 3.0
848 .INDENT 3.5
849 .INDENT 0.0
850 .TP
851 .B [libdefaults]
852 .
853 pkinit_anchors = DIR:/usr/local/generic_trusted_cas/
854 .UNINDENT
855 .UNINDENT
856 .UNINDENT
857 .UNINDENT
858 .RE
859 .SS Specifying pkinit identity information
860 .sp
861 The syntax for specifying Public Key identity, trust, and revocation information for pkinit is as follows:
862 .INDENT 0.0
863 .TP
864 .B FILE:file\-name[,key\-file\-name]
865 .
866 This option has context\-specific behavior.
867 .nf
868 pkinit_identity
869 pkinit_identities
870 .fi
871 .sp
872 .INDENT 7.0
873 .INDENT 3.5
874 .sp
875 \fIfile\-name\fP specifies the name of a PEM\-format file containing the user\(aqs certificate. If \fIkey\-file\-name\fP is not specified, the user\(aqs private key is expected to be in file\-name as well. Otherwise, \fIkey\-file\-name\fP is the name of the file containing the private key.
876 .UNINDENT
877 .UNINDENT
878 .nf
879 pkinit_anchors
880 pkinit_pool
881 .fi
882 .sp
883 .INDENT 7.0
884 .INDENT 3.5
885 .sp
886 \fIfile\-name\fP is assumed to be the name of an OpenSSL\-style ca\-bundle file.
887 .UNINDENT
888 .UNINDENT
889 .TP
890 .B DIR:directory\-name
891 .
892 This option has context\-specific behavior.
893 .nf
894 pkinit_identity
895 pkinit_identities
896 .fi
897 .sp
898 .INDENT 7.0
899 .INDENT 3.5
900 .sp
901 \fIdirectory\-name\fP specifies a directory with files named *.crt and *.key, where the first part of the file name is the same for matching pairs of certificate and private key files. When a file with a name ending with .crt is found, a matching file ending with .key is assumed to contain the private key. If no such file is found, then the certificate in the .crt is not used.
902 .UNINDENT
903 .UNINDENT
904 .nf
905 pkinit_anchors
906 pkinit_pool
907 .fi
908 .sp
909 .INDENT 7.0
910 .INDENT 3.5
911 .sp
912 \fIdirectory\-name\fP is assumed to be an OpenSSL\-style hashed CA directory where each CA cert is stored in a file named \fIhash\-of\-ca\-cert.#\fP. This infrastructure is encouraged, but all files in the directory will be examined and if they contain certificates (in PEM format), they will be used.
913 .UNINDENT
914 .UNINDENT
915 .INDENT 7.0
916 .TP
917 .B pkinit_revoke
918 .
919 \fIdirectory\-name\fP is assumed to be an OpenSSL\-style hashed CA directory where each revocation list is stored in a file named \fIhash\-of\-ca\-cert.r#\fP. This infrastructure is encouraged, but all files in the directory will be examined and if they contain a revocation list (in PEM format), they will be used.
920 .UNINDENT
921 .TP
922 .B PKCS12:pkcs12\-file\-name
923 .
924 \fIpkcs12\-file\-name\fP is the name of a PKCS #12 format file, containing the user\(aqs certificate and private key.
925 .TP
926 .B PKCS11:[module_name=]module\-name[:slotid=slot\-id][:token=token\-label][:certid=cert\-id][:certlabel=cert\-label]
927 .
928 All keyword/values are optional. module\-name specifies the location of a library implementing PKCS #11. If a value is encountered with no keyword, it is assumed to be the \fImodule\-name\fP. If no module\-name is specified, the default is \fIopensc\-pkcs11.so\fP. \fIslotid=\fP and/or \fItoken=\fP may be specified to force the use of a particular smard card reader or token if there is more than one available. \fIcertid=\fP and/or \fIcertlabel=\fP may be specified to force the selection of a particular certificate on the device. See the \fIpkinit_cert_match\fP configuration option for more ways to select a particular certificate to use for pkinit.
929 .TP
930 .B ENV:environment\-variable\-name
931 .
932 environment\-variable\-name specifies the name of an environment variable which has been set to a value conforming to one of the previous values. For example, \fIENV:X509_PROXY\fP, where environment variable \fIX509_PROXY\fP has been set to \fIFILE:/tmp/my_proxy.pem\fP.
933 .UNINDENT
934 .SS PKINIT krb5.conf options
935 .INDENT 0.0
936 .TP
937 .B \fBpkinit_anchors\fP
938 .sp
939 Specifies the location of trusted anchor (root) certificates which the client trusts to sign KDC certificates. This option may be specified multiple times. These values from the config file are not used if the user specifies X509_anchors on the command line.
940 .TP
941 .B \fBpkinit_cert_match\fP
942 .sp
943 Specifies matching rules that the client certificate must match before it is used to attempt pkinit authentication. If a user has multiple certificates available (on a smart card, or via other media), there must be exactly one certificate chosen before attempting pkinit authentication. This option may be specified multiple times. All the available certificates are checked against each rule in order until there is a match of exactly one certificate.
944 .sp
945 The Subject and Issuer comparison strings are the \fI\%RFC 2253\fP string representations from the certificate Subject DN and Issuer DN values.
946 .sp
947 The syntax of the matching rules is:
948 .sp
949 .nf
950 .ft C
951 [relation\-operator]component\-rule ...
952 .ft P
953 .fi
954 .sp
955 where
956 .INDENT 7.0
957 .TP
958 .B \fIrelation\-operator\fP
959 .sp
960 can be either \fB&&\fP, meaning all component rules must match, or \fB||\fP, meaning only one component rule must match. The default is &&.
961 .TP
962 .B \fIcomponent\-rule\fP
963 .sp
964 can be one of the following. Note that there is no punctuation or whitespace between component rules.
965 .sp
966 \fI<SUBJECT>regular\-expression\fP
967 .sp
968 \fI<ISSUER>regular\-expression\fP
969 .sp
970 \fI<SAN>regular\-expression\fP
971 .INDENT 7.0
972 .TP
973 .B \fI<EKU>extended\-key\-usage\-list\fP
974 .sp
975 where \fIextended\-key\-usage\-list\fP is a comma\-separated list of required Extended Key Usage values. All values in the list must be present in the certificate.
976 .INDENT 7.0
977 .INDENT 3.5
978 .INDENT 0.0
979 .IP \(bu 2
980 .
981 pkinit
982 .IP \(bu 2
983 .
984 msScLogin
985 .IP \(bu 2
986 .
987 clientAuth
988 .IP \(bu 2
989 .
990 emailProtection
991 .UNINDENT
992 .UNINDENT
993 .UNINDENT
994 .TP
995 .B \fI<KU>key\-usage\-list\fP
996 .sp
997 where \fIkey\-usage\-list\fP is a comma\-separated list of required Key Usage values. All values in the list must be present in the certificate.
998 .INDENT 7.0
999 .INDENT 3.5
1000 .INDENT 0.0
1001 .IP \(bu 2
1002 .
1003 digitalSignature
1004 .IP \(bu 2
1005 .
1006 keyEncipherment
1007 .UNINDENT
1008 .UNINDENT
1009 .UNINDENT
1010 .UNINDENT
1011 .UNINDENT
1012 .sp
1013 Examples:
1014 .sp
1015 .nf
1016 .ft C
1017 pkinit_cert_match = ||<SUBJECT>.*DoE.*<SAN>.*@EXAMPLE.COM
1018 pkinit_cert_match = &&<EKU>msScLogin,clientAuth<ISSUER>.*DoE.*
1019 pkinit_cert_match = <EKU>msScLogin,clientAuth<KU>digitalSignature
1020 .ft P
1021 .fi
1022 .TP
1023 .B \fBpkinit_eku_checking\fP
1024 .sp
1025 This option specifies what Extended Key Usage value the KDC certificate presented to the client must contain. (Note that if the KDC certificate has the pkinit SubjectAlternativeName encoded as the Kerberos TGS name, EKU checking is not necessary since the issuing CA has certified this as a KDC certificate.) The values recognized in the krb5.conf file are:
1026 .INDENT 7.0
1027 .TP
1028 .B \fIkpKDC\fP
1029 .sp
1030 This is the default value and specifies that the KDC must have the id\-pkinit\-KPKdc EKU as defined in \fI\%RFC 4556\fP.
1031 .TP
1032 .B \fIkpServerAuth\fP
1033 .sp
1034 If kpServerAuth is specified, a KDC certificate with the id\-kp\-serverAuth EKU as used by Microsoft will be accepted.
1035 .TP
1036 .B \fInone\fP
1037 .sp
1038 If none is specified, then the KDC certificate will not be checked to verify it has an acceptable EKU. The use of this option is not recommended.
1039 .UNINDENT
1040 .TP
1041 .B \fBpkinit_dh_min_bits\fP
1042 .sp
1043 Specifies the size of the Diffie\-Hellman key the client will attempt to use. The acceptable values are currently 1024, 2048, and 4096. The default is 2048.
1044 .TP
1045 .B \fBpkinit_identities\fP
1046 .sp
1047 Specifies the location(s) to be used to find the user\(aqs X.509 identity information. This option may be specified multiple times. Each value is attempted in order until identity information is found and authentication is attempted. Note that these values are not used if the user specifies X509_user_identity on the command line.
1048 .TP
1049 .B \fBpkinit_kdc_hostname\fP
1050 .sp
1051 The presense of this option indicates that the client is willing to accept a KDC certificate with a dNSName SAN (Subject Alternative Name) rather than requiring the id\-pkinit\-san as defined in \fI\%RFC 4556\fP. This option may be specified multiple times. Its value should contain the acceptable hostname for the KDC (as contained in its certificate).
1052 .TP
1053 .B \fBpkinit_longhorn\fP
1054 .sp
1055 If this flag is set to true, we are talking to the Longhorn KDC.
1056 .TP
1057 .B \fBpkinit_pool\fP
1058 .sp
1059 Specifies the location of intermediate certificates which may be used by the client to complete the trust chain between a KDC certificate and a trusted anchor. This option may be specified multiple times.
1060 .TP
1061 .B \fBpkinit_require_crl_checking\fP
1062 .sp
1063 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, and \fIpkinit_require_crl_checking\fP is false, then verification succeeds.
1064 .sp
1065 However, if \fIpkinit_require_crl_checking\fP is true and there is no CRL information available for the issuing CA, then verification fails.
1066 .sp
1067 \fIpkinit_require_crl_checking\fP should be set to true if the policy is such that up\-to\-date CRLs must be present for every CA.
1068 .TP
1069 .B \fBpkinit_revoke\fP
1070 .sp
1071 Specifies the location of Certificate Revocation List (CRL) information to be used by the client when verifying the validity of the KDC certificate presented. This option may be specified multiple times.
1072 .TP
1073 .B \fBpkinit_win2k\fP
1074 .sp
1075 This flag specifies whether the target realm is assumed to support only the old, pre\-RFC version of the protocol. The default is false.
1076 .TP
1077 .B \fBpkinit_win2k_require_binding\fP
1078 .sp
1079 If this flag is set to true, it expects that the target KDC is patched to return a reply with a checksum rather than a nonce. The default is false.
1080 .UNINDENT
1081 .SH SAMPLE KRB5.CONF FILE
1082 .sp
1083 Here is an example of a generic krb5.conf file:
1084 .sp
1085 .nf
1086 .ft C
1087 [libdefaults]
1088     default_realm = ATHENA.MIT.EDU
1089     default_tkt_enctypes = des3\-hmac\-sha1 des\-cbc\-crc
1090     default_tgs_enctypes = des3\-hmac\-sha1 des\-cbc\-crc
1091     dns_lookup_kdc = true
1092     dns_lookup_realm = false
1093
1094 [realms]
1095     ATHENA.MIT.EDU = {
1096         kdc = kerberos.mit.edu
1097         kdc = kerberos\-1.mit.edu
1098         kdc = kerberos\-2.mit.edu:750
1099         admin_server = kerberos.mit.edu
1100         master_kdc = kerberos.mit.edu
1101         default_domain = mit.edu
1102     }
1103     EXAMPLE.COM = {
1104         kdc = kerberos.example.com
1105         kdc = kerberos\-1.example.com
1106         admin_server = kerberos.example.com
1107     }
1108     OPENLDAP.MIT.EDU = {
1109         kdc = kerberos.mit.edu
1110         admin_server = kerberos.mit.edu
1111         database_module = openldap_ldapconf
1112     }
1113
1114 [domain_realm]
1115     .mit.edu = ATHENA.MIT.EDU
1116     mit.edu = ATHENA.MIT.EDU
1117
1118 [capaths]
1119     ATHENA.MIT.EDU = {
1120            EXAMPLE.COM = .
1121     }
1122     EXAMPLE.COM = {
1123            ATHENA.MIT.EDU = .
1124     }
1125
1126 [logging]
1127     kdc = SYSLOG:INFO
1128     admin_server = FILE=/var/kadm5.log
1129 [dbdefaults]
1130     ldap_kerberos_container_dn = cn=krbcontainer,dc=example,dc=com
1131 [dbmodules]
1132     openldap_ldapconf = {
1133         db_library = kldap
1134         disable_last_success = true
1135         ldap_kerberos_container_dn = cn=krbcontainer,dc=example,dc=com
1136         ldap_kdc_dn = "cn=krbadmin,dc=example,dc=com"
1137             # this object needs to have read rights on
1138             # the realm container and principal subtrees
1139         ldap_kadmind_dn = "cn=krbadmin,dc=example,dc=com"
1140             # this object needs to have read and write rights on
1141             # the realm container and principal subtrees
1142         ldap_service_password_file = /etc/kerberos/service.keyfile
1143         ldap_servers = ldaps://kerberos.mit.edu
1144         ldap_conns_per_server = 5
1145 }
1146 .ft P
1147 .fi
1148 .SH FILES
1149 .sp
1150 /etc/krb5.conf
1151 .SH SEE ALSO
1152 .sp
1153 syslog(3)
1154 .SH AUTHOR
1155 MIT
1156 .SH COPYRIGHT
1157 2011, MIT
1158 .\" Generated by docutils manpage writer.
1159 .