| 1 |
<!DOCTYPE html> |
| 2 |
|
| 3 |
<html lang="en" data-content_root="../../"> |
| 4 |
<head> |
| 5 |
<meta charset="utf-8" /> |
| 6 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 7 |
|
| 8 |
<title>krb5.conf — MIT Kerberos Documentation</title> |
| 9 |
<link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=fa44fd50" /> |
| 10 |
<link rel="stylesheet" type="text/css" href="../../_static/agogo.css?v=879f3c71" /> |
| 11 |
<link rel="stylesheet" type="text/css" href="../../_static/kerb.css?v=6a0b3979" /> |
| 12 |
<script src="../../_static/documentation_options.js?v=6dbce55c"></script> |
| 13 |
<script src="../../_static/doctools.js?v=888ff710"></script> |
| 14 |
<script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> |
| 15 |
<link rel="author" title="About these documents" href="../../about.html" /> |
| 16 |
<link rel="index" title="Index" href="../../genindex.html" /> |
| 17 |
<link rel="search" title="Search" href="../../search.html" /> |
| 18 |
<link rel="copyright" title="Copyright" href="../../copyright.html" /> |
| 19 |
<link rel="next" title="kdc.conf" href="kdc_conf.html" /> |
| 20 |
<link rel="prev" title="Configuration Files" href="index.html" /> |
| 21 |
</head><body> |
| 22 |
<div class="header-wrapper"> |
| 23 |
<div class="header"> |
| 24 |
|
| 25 |
|
| 26 |
<h1><a href="../../index.html">MIT Kerberos Documentation</a></h1> |
| 27 |
|
| 28 |
<div class="rel"> |
| 29 |
|
| 30 |
<a href="../../index.html" title="Full Table of Contents" |
| 31 |
accesskey="C">Contents</a> | |
| 32 |
<a href="index.html" title="Configuration Files" |
| 33 |
accesskey="P">previous</a> | |
| 34 |
<a href="kdc_conf.html" title="kdc.conf" |
| 35 |
accesskey="N">next</a> | |
| 36 |
<a href="../../genindex.html" title="General Index" |
| 37 |
accesskey="I">index</a> | |
| 38 |
<a href="../../search.html" title="Enter search criteria" |
| 39 |
accesskey="S">Search</a> | |
| 40 |
<a href="mailto:[email protected]?subject=Documentation__krb5.conf">feedback</a> |
| 41 |
</div> |
| 42 |
</div> |
| 43 |
</div> |
| 44 |
|
| 45 |
<div class="content-wrapper"> |
| 46 |
<div class="content"> |
| 47 |
<div class="document"> |
| 48 |
|
| 49 |
<div class="documentwrapper"> |
| 50 |
<div class="bodywrapper"> |
| 51 |
<div class="body" role="main"> |
| 52 |
|
| 53 |
<section id="krb5-conf"> |
| 54 |
<span id="krb5-conf-5"></span><h1>krb5.conf<a class="headerlink" href="#krb5-conf" title="Link to this heading">¶</a></h1> |
| 55 |
<p>The krb5.conf file contains Kerberos configuration information, |
| 56 |
including the locations of KDCs and admin servers for the Kerberos |
| 57 |
realms of interest, defaults for the current realm and for Kerberos |
| 58 |
applications, and mappings of hostnames onto Kerberos realms. |
| 59 |
Normally, you should install your krb5.conf file in the directory |
| 60 |
<code class="docutils literal notranslate"><span class="pre">/etc</span></code>. You can override the default location by setting the |
| 61 |
environment variable <strong>KRB5_CONFIG</strong>. Multiple colon-separated |
| 62 |
filenames may be specified in <strong>KRB5_CONFIG</strong>; all files which are |
| 63 |
present will be read. Starting in release 1.14, directory names can |
| 64 |
also be specified in <strong>KRB5_CONFIG</strong>; all files within the directory |
| 65 |
whose names consist solely of alphanumeric characters, dashes, or |
| 66 |
underscores will be read.</p> |
| 67 |
<section id="structure"> |
| 68 |
<h2>Structure<a class="headerlink" href="#structure" title="Link to this heading">¶</a></h2> |
| 69 |
<p>The krb5.conf file is set up in the style of a Windows INI file. |
| 70 |
Lines beginning with ‘#’ or ‘;’ (possibly after initial whitespace) |
| 71 |
are ignored as comments. Sections are headed by the section name, in |
| 72 |
square brackets. Each section may contain zero or more relations, of |
| 73 |
the form:</p> |
| 74 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">foo</span> <span class="o">=</span> <span class="n">bar</span> |
| 75 |
</pre></div> |
| 76 |
</div> |
| 77 |
<p>or:</p> |
| 78 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">fubar</span> <span class="o">=</span> <span class="p">{</span> |
| 79 |
<span class="n">foo</span> <span class="o">=</span> <span class="n">bar</span> |
| 80 |
<span class="n">baz</span> <span class="o">=</span> <span class="n">quux</span> |
| 81 |
<span class="p">}</span> |
| 82 |
</pre></div> |
| 83 |
</div> |
| 84 |
<p>The krb5.conf file can include other files using either of the |
| 85 |
following directives at the beginning of a line:</p> |
| 86 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">include</span> <span class="n">FILENAME</span> |
| 87 |
<span class="n">includedir</span> <span class="n">DIRNAME</span> |
| 88 |
</pre></div> |
| 89 |
</div> |
| 90 |
<p><em>FILENAME</em> or <em>DIRNAME</em> should be an absolute path. The named file or |
| 91 |
directory must exist and be readable. Including a directory includes |
| 92 |
all files within the directory whose names consist solely of |
| 93 |
alphanumeric characters, dashes, or underscores. Starting in release |
| 94 |
1.15, files with names ending in “.conf” are also included, unless the |
| 95 |
name begins with “.”. Included profile files are syntactically |
| 96 |
independent of their parents, so each included file must begin with a |
| 97 |
section header. Starting in release 1.17, files are read in |
| 98 |
alphanumeric order; in previous releases, they may be read in any |
| 99 |
order.</p> |
| 100 |
<p>Placing a ‘*’ after the closing bracket of a section name indicates |
| 101 |
that the section is <em>final</em>, meaning that if the same section appears |
| 102 |
again later, it will be ignored. A subsection can be marked as final |
| 103 |
by placing a ‘*’ after either the tag name or the closing brace. A |
| 104 |
relation can be marked as final by placing a ‘*’ after the tag name. |
| 105 |
Prior to release 1.22, only sections and subsections can be marked as |
| 106 |
final, and the flag only causes values to be ignored if they appear in |
| 107 |
later files specified in <strong>KRB5_CONFIG</strong>, not if they appear later |
| 108 |
within the same file or an included file.</p> |
| 109 |
<p>The krb5.conf file can specify that configuration should be obtained |
| 110 |
from a loadable module, rather than the file itself, using the |
| 111 |
following directive at the beginning of a line before any section |
| 112 |
headers:</p> |
| 113 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">module</span> <span class="n">MODULEPATH</span><span class="p">:</span><span class="n">RESIDUAL</span> |
| 114 |
</pre></div> |
| 115 |
</div> |
| 116 |
<p><em>MODULEPATH</em> may be relative to the library path of the krb5 |
| 117 |
installation, or it may be an absolute path. <em>RESIDUAL</em> is provided |
| 118 |
to the module at initialization time. If krb5.conf uses a module |
| 119 |
directive, <a class="reference internal" href="kdc_conf.html#kdc-conf-5"><span class="std std-ref">kdc.conf</span></a> should also use one if it exists.</p> |
| 120 |
</section> |
| 121 |
<section id="sections"> |
| 122 |
<h2>Sections<a class="headerlink" href="#sections" title="Link to this heading">¶</a></h2> |
| 123 |
<p>The krb5.conf file may contain the following sections:</p> |
| 124 |
<table class="docutils align-default"> |
| 125 |
<tbody> |
| 126 |
<tr class="row-odd"><td><p><a class="reference internal" href="#libdefaults"><span class="std std-ref">[libdefaults]</span></a></p></td> |
| 127 |
<td><p>Settings used by the Kerberos V5 library</p></td> |
| 128 |
</tr> |
| 129 |
<tr class="row-even"><td><p><a class="reference internal" href="#realms"><span class="std std-ref">[realms]</span></a></p></td> |
| 130 |
<td><p>Realm-specific contact information and settings</p></td> |
| 131 |
</tr> |
| 132 |
<tr class="row-odd"><td><p><a class="reference internal" href="#domain-realm"><span class="std std-ref">[domain_realm]</span></a></p></td> |
| 133 |
<td><p>Maps server hostnames to Kerberos realms</p></td> |
| 134 |
</tr> |
| 135 |
<tr class="row-even"><td><p><a class="reference internal" href="#capaths"><span class="std std-ref">[capaths]</span></a></p></td> |
| 136 |
<td><p>Authentication paths for non-hierarchical cross-realm</p></td> |
| 137 |
</tr> |
| 138 |
<tr class="row-odd"><td><p><a class="reference internal" href="#appdefaults"><span class="std std-ref">[appdefaults]</span></a></p></td> |
| 139 |
<td><p>Settings used by some Kerberos V5 applications</p></td> |
| 140 |
</tr> |
| 141 |
<tr class="row-even"><td><p><a class="reference internal" href="#plugins"><span class="std std-ref">[plugins]</span></a></p></td> |
| 142 |
<td><p>Controls plugin module registration</p></td> |
| 143 |
</tr> |
| 144 |
</tbody> |
| 145 |
</table> |
| 146 |
<p>Additionally, krb5.conf may include any of the relations described in |
| 147 |
<a class="reference internal" href="kdc_conf.html#kdc-conf-5"><span class="std std-ref">kdc.conf</span></a>, but it is not a recommended practice.</p> |
| 148 |
<section id="libdefaults"> |
| 149 |
<span id="id1"></span><h3>[libdefaults]<a class="headerlink" href="#libdefaults" title="Link to this heading">¶</a></h3> |
| 150 |
<p>The libdefaults section may contain any of the following relations:</p> |
| 151 |
<dl> |
| 152 |
<dt><strong>allow_des3</strong></dt><dd><p>Permit the KDC to issue tickets with des3-cbc-sha1 session keys. |
| 153 |
In future releases, this flag will allow des3-cbc-sha1 to be used |
| 154 |
at all. The default value for this tag is false. (Added in |
| 155 |
release 1.21.)</p> |
| 156 |
</dd> |
| 157 |
<dt><strong>allow_rc4</strong></dt><dd><p>Permit the KDC to issue tickets with arcfour-hmac session keys. |
| 158 |
In future releases, this flag will allow arcfour-hmac to be used |
| 159 |
at all. The default value for this tag is false. (Added in |
| 160 |
release 1.21.)</p> |
| 161 |
</dd> |
| 162 |
<dt><strong>allow_weak_crypto</strong></dt><dd><p>If this flag is set to false, then weak encryption types (as noted |
| 163 |
in <a class="reference internal" href="kdc_conf.html#encryption-types"><span class="std std-ref">Encryption types</span></a> in <a class="reference internal" href="kdc_conf.html#kdc-conf-5"><span class="std std-ref">kdc.conf</span></a>) will be filtered |
| 164 |
out of the lists <strong>default_tgs_enctypes</strong>, |
| 165 |
<strong>default_tkt_enctypes</strong>, and <strong>permitted_enctypes</strong>. The default |
| 166 |
value for this tag is false.</p> |
| 167 |
</dd> |
| 168 |
<dt><strong>canonicalize</strong></dt><dd><p>If this flag is set to true, initial ticket requests to the KDC |
| 169 |
will request canonicalization of the client principal name, and |
| 170 |
answers with different client principals than the requested |
| 171 |
principal will be accepted. The default value is false.</p> |
| 172 |
</dd> |
| 173 |
<dt><strong>ccache_type</strong></dt><dd><p>This parameter determines the format of credential cache types |
| 174 |
created by <a class="reference internal" href="../../user/user_commands/kinit.html#kinit-1"><span class="std std-ref">kinit</span></a> or other programs. The default value |
| 175 |
is 4, which represents the most current format. Smaller values |
| 176 |
can be used for compatibility with very old implementations of |
| 177 |
Kerberos which interact with credential caches on the same host.</p> |
| 178 |
</dd> |
| 179 |
<dt><strong>clockskew</strong></dt><dd><p>Sets the maximum allowable amount of clockskew in seconds that the |
| 180 |
library will tolerate before assuming that a Kerberos message is |
| 181 |
invalid. The default value is 300 seconds, or five minutes.</p> |
| 182 |
<p>The clockskew setting is also used when evaluating ticket start |
| 183 |
and expiration times. For example, tickets that have reached |
| 184 |
their expiration time can still be used (and renewed if they are |
| 185 |
renewable tickets) if they have been expired for a shorter |
| 186 |
duration than the <strong>clockskew</strong> setting.</p> |
| 187 |
</dd> |
| 188 |
<dt><strong>default_ccache_name</strong></dt><dd><p>This relation specifies the name of the default credential cache. |
| 189 |
The default is <a class="reference internal" href="../../mitK5defaults.html#paths"><span class="std std-ref">DEFCCNAME</span></a>. This relation is subject to parameter |
| 190 |
expansion (see below). New in release 1.11.</p> |
| 191 |
</dd> |
| 192 |
<dt><strong>default_client_keytab_name</strong></dt><dd><p>This relation specifies the name of the default keytab for |
| 193 |
obtaining client credentials. The default is <a class="reference internal" href="../../mitK5defaults.html#paths"><span class="std std-ref">DEFCKTNAME</span></a>. This |
| 194 |
relation is subject to parameter expansion (see below). |
| 195 |
New in release 1.11.</p> |
| 196 |
</dd> |
| 197 |
<dt><strong>default_keytab_name</strong></dt><dd><p>This relation specifies the default keytab name to be used by |
| 198 |
application servers such as sshd. The default is <a class="reference internal" href="../../mitK5defaults.html#paths"><span class="std std-ref">DEFKTNAME</span></a>. This |
| 199 |
relation is subject to parameter expansion (see below).</p> |
| 200 |
</dd> |
| 201 |
<dt><strong>default_rcache_name</strong></dt><dd><p>This relation specifies the name of the default replay cache. |
| 202 |
The default is <code class="docutils literal notranslate"><span class="pre">dfl:</span></code>. This relation is subject to parameter |
| 203 |
expansion (see below). New in release 1.18.</p> |
| 204 |
</dd> |
| 205 |
<dt><strong>default_realm</strong></dt><dd><p>Identifies the default Kerberos realm for the client. Set its |
| 206 |
value to your Kerberos realm. If this value is not set, then a |
| 207 |
realm must be specified with every Kerberos principal when |
| 208 |
invoking programs such as <a class="reference internal" href="../../user/user_commands/kinit.html#kinit-1"><span class="std std-ref">kinit</span></a>.</p> |
| 209 |
</dd> |
| 210 |
<dt><strong>default_tgs_enctypes</strong></dt><dd><p>Identifies the supported list of session key encryption types that |
| 211 |
the client should request when making a TGS-REQ, in order of |
| 212 |
preference from highest to lowest. The list may be delimited with |
| 213 |
commas or whitespace. See <a class="reference internal" href="kdc_conf.html#encryption-types"><span class="std std-ref">Encryption types</span></a> in |
| 214 |
<a class="reference internal" href="kdc_conf.html#kdc-conf-5"><span class="std std-ref">kdc.conf</span></a> for a list of the accepted values for this tag. |
| 215 |
Starting in release 1.18, the default value is the value of |
| 216 |
<strong>permitted_enctypes</strong>. For previous releases or if |
| 217 |
<strong>permitted_enctypes</strong> is not set, the default value is |
| 218 |
<code class="docutils literal notranslate"><span class="pre">aes256-cts-hmac-sha1-96</span> <span class="pre">aes128-cts-hmac-sha1-96</span> <span class="pre">aes256-cts-hmac-sha384-192</span> <span class="pre">aes128-cts-hmac-sha256-128</span> <span class="pre">des3-cbc-sha1</span> <span class="pre">arcfour-hmac-md5</span> <span class="pre">camellia256-cts-cmac</span> <span class="pre">camellia128-cts-cmac</span></code>.</p> |
| 219 |
<p>Do not set this unless required for specific backward |
| 220 |
compatibility purposes; stale values of this setting can prevent |
| 221 |
clients from taking advantage of new stronger enctypes when the |
| 222 |
libraries are upgraded.</p> |
| 223 |
</dd> |
| 224 |
<dt><strong>default_tkt_enctypes</strong></dt><dd><p>Identifies the supported list of session key encryption types that |
| 225 |
the client should request when making an AS-REQ, in order of |
| 226 |
preference from highest to lowest. The format is the same as for |
| 227 |
default_tgs_enctypes. Starting in release 1.18, the default |
| 228 |
value is the value of <strong>permitted_enctypes</strong>. For previous |
| 229 |
releases or if <strong>permitted_enctypes</strong> is not set, the default |
| 230 |
value is <code class="docutils literal notranslate"><span class="pre">aes256-cts-hmac-sha1-96</span> <span class="pre">aes128-cts-hmac-sha1-96</span> <span class="pre">aes256-cts-hmac-sha384-192</span> <span class="pre">aes128-cts-hmac-sha256-128</span> <span class="pre">des3-cbc-sha1</span> <span class="pre">arcfour-hmac-md5</span> <span class="pre">camellia256-cts-cmac</span> <span class="pre">camellia128-cts-cmac</span></code>.</p> |
| 231 |
<p>Do not set this unless required for specific backward |
| 232 |
compatibility purposes; stale values of this setting can prevent |
| 233 |
clients from taking advantage of new stronger enctypes when the |
| 234 |
libraries are upgraded.</p> |
| 235 |
</dd> |
| 236 |
<dt><strong>dns_canonicalize_hostname</strong></dt><dd><p>Indicate whether name lookups will be used to canonicalize |
| 237 |
hostnames for use in service principal names. Setting this flag |
| 238 |
to false can improve security by reducing reliance on DNS, but |
| 239 |
means that short hostnames will not be canonicalized to |
| 240 |
fully-qualified hostnames. If this option is set to <code class="docutils literal notranslate"><span class="pre">fallback</span></code> (new |
| 241 |
in release 1.18), DNS canonicalization will only be performed the |
| 242 |
server hostname is not found with the original name when |
| 243 |
requesting credentials. The default value is true.</p> |
| 244 |
</dd> |
| 245 |
<dt><strong>dns_lookup_kdc</strong></dt><dd><p>Indicate whether DNS SRV records should be used to locate the KDCs |
| 246 |
and other servers for a realm, if they are not listed in the |
| 247 |
krb5.conf information for the realm. (Note that the admin_server |
| 248 |
entry must be in the krb5.conf realm information in order to |
| 249 |
contact kadmind, because the DNS implementation for kadmin is |
| 250 |
incomplete.)</p> |
| 251 |
<p>Enabling this option does open up a type of denial-of-service |
| 252 |
attack, if someone spoofs the DNS records and redirects you to |
| 253 |
another server. However, it’s no worse than a denial of service, |
| 254 |
because that fake KDC will be unable to decode anything you send |
| 255 |
it (besides the initial ticket request, which has no encrypted |
| 256 |
data), and anything the fake KDC sends will not be trusted without |
| 257 |
verification using some secret that it won’t know.</p> |
| 258 |
</dd> |
| 259 |
<dt><strong>dns_lookup_realm</strong></dt><dd><p>Indicate whether DNS TXT records should be used to map hostnames |
| 260 |
to realm names for hostnames not listed in the [domain_realm] |
| 261 |
section, and to determine the default realm if <strong>default_realm</strong> |
| 262 |
is not set. The default value is false.</p> |
| 263 |
</dd> |
| 264 |
<dt><strong>dns_uri_lookup</strong></dt><dd><p>Indicate whether DNS URI records should be used to locate the KDCs |
| 265 |
and other servers for a realm, if they are not listed in the |
| 266 |
krb5.conf information for the realm. SRV records are used as a |
| 267 |
fallback if no URI records were found. The default value is true. |
| 268 |
New in release 1.15.</p> |
| 269 |
</dd> |
| 270 |
<dt><strong>enforce_ok_as_delegate</strong></dt><dd><p>If this flag to true, GSSAPI credential delegation will be |
| 271 |
disabled when the <code class="docutils literal notranslate"><span class="pre">ok-as-delegate</span></code> flag is not set in the |
| 272 |
service ticket. If this flag is false, the <code class="docutils literal notranslate"><span class="pre">ok-as-delegate</span></code> |
| 273 |
ticket flag is only enforced when an application specifically |
| 274 |
requests enforcement. The default value is false.</p> |
| 275 |
</dd> |
| 276 |
<dt><strong>err_fmt</strong></dt><dd><p>This relation allows for custom error message formatting. If a |
| 277 |
value is set, error messages will be formatted by substituting a |
| 278 |
normal error message for %M and an error code for %C in the value.</p> |
| 279 |
</dd> |
| 280 |
<dt><strong>extra_addresses</strong></dt><dd><p>This allows a computer to use multiple local addresses, in order |
| 281 |
to allow Kerberos to work in a network that uses NATs while still |
| 282 |
using address-restricted tickets. The addresses should be in a |
| 283 |
comma-separated list. This option has no effect if |
| 284 |
<strong>noaddresses</strong> is true.</p> |
| 285 |
</dd> |
| 286 |
<dt><strong>forwardable</strong></dt><dd><p>If this flag is true, initial tickets will be forwardable by |
| 287 |
default, if allowed by the KDC. The default value is false.</p> |
| 288 |
</dd> |
| 289 |
<dt><strong>ignore_acceptor_hostname</strong></dt><dd><p>When accepting GSSAPI or krb5 security contexts for host-based |
| 290 |
service principals, ignore any hostname passed by the calling |
| 291 |
application, and allow clients to authenticate to any service |
| 292 |
principal in the keytab matching the service name and realm name |
| 293 |
(if given). This option can improve the administrative |
| 294 |
flexibility of server applications on multihomed hosts, but could |
| 295 |
compromise the security of virtual hosting environments. The |
| 296 |
default value is false. New in release 1.10.</p> |
| 297 |
</dd> |
| 298 |
<dt><strong>k5login_authoritative</strong></dt><dd><p>If this flag is true, principals must be listed in a local user’s |
| 299 |
k5login file to be granted login access, if a <a class="reference internal" href="../../user/user_config/k5login.html#k5login-5"><span class="std std-ref">.k5login</span></a> |
| 300 |
file exists. If this flag is false, a principal may still be |
| 301 |
granted login access through other mechanisms even if a k5login |
| 302 |
file exists but does not list the principal. The default value is |
| 303 |
true.</p> |
| 304 |
</dd> |
| 305 |
<dt><strong>k5login_directory</strong></dt><dd><p>If set, the library will look for a local user’s k5login file |
| 306 |
within the named directory, with a filename corresponding to the |
| 307 |
local username. If not set, the library will look for k5login |
| 308 |
files in the user’s home directory, with the filename .k5login. |
| 309 |
For security reasons, .k5login files must be owned by |
| 310 |
the local user or by root.</p> |
| 311 |
</dd> |
| 312 |
<dt><strong>kcm_mach_service</strong></dt><dd><p>On macOS only, determines the name of the bootstrap service used to |
| 313 |
contact the KCM daemon for the KCM credential cache type. If the |
| 314 |
value is <code class="docutils literal notranslate"><span class="pre">-</span></code>, Mach RPC will not be used to contact the KCM |
| 315 |
daemon. The default value is <code class="docutils literal notranslate"><span class="pre">org.h5l.kcm</span></code>.</p> |
| 316 |
</dd> |
| 317 |
<dt><strong>kcm_socket</strong></dt><dd><p>Determines the path to the Unix domain socket used to access the |
| 318 |
KCM daemon for the KCM credential cache type. If the value is |
| 319 |
<code class="docutils literal notranslate"><span class="pre">-</span></code>, Unix domain sockets will not be used to contact the KCM |
| 320 |
daemon. The default value is |
| 321 |
<code class="docutils literal notranslate"><span class="pre">/var/run/.heim_org.h5l.kcm-socket</span></code>.</p> |
| 322 |
</dd> |
| 323 |
<dt><strong>kdc_default_options</strong></dt><dd><p>Default KDC options (Xored for multiple values) when requesting |
| 324 |
initial tickets. By default it is set to 0x00000010 |
| 325 |
(KDC_OPT_RENEWABLE_OK).</p> |
| 326 |
</dd> |
| 327 |
<dt><strong>kdc_timesync</strong></dt><dd><p>Accepted values for this relation are 1 or 0. If it is nonzero, |
| 328 |
client machines will compute the difference between their time and |
| 329 |
the time returned by the KDC in the timestamps in the tickets and |
| 330 |
use this value to correct for an inaccurate system clock when |
| 331 |
requesting service tickets or authenticating to services. This |
| 332 |
corrective factor is only used by the Kerberos library; it is not |
| 333 |
used to change the system clock. The default value is 1.</p> |
| 334 |
</dd> |
| 335 |
<dt><strong>noaddresses</strong></dt><dd><p>If this flag is true, requests for initial tickets will not be |
| 336 |
made with address restrictions set, allowing the tickets to be |
| 337 |
used across NATs. The default value is true.</p> |
| 338 |
</dd> |
| 339 |
<dt><strong>permitted_enctypes</strong></dt><dd><p>Identifies the encryption types that servers will permit for |
| 340 |
session keys and for ticket and authenticator encryption, ordered |
| 341 |
by preference from highest to lowest. Starting in release 1.18, |
| 342 |
this tag also acts as the default value for |
| 343 |
<strong>default_tgs_enctypes</strong> and <strong>default_tkt_enctypes</strong>. The |
| 344 |
default value for this tag is <code class="docutils literal notranslate"><span class="pre">aes256-cts-hmac-sha1-96</span> <span class="pre">aes128-cts-hmac-sha1-96</span> <span class="pre">aes256-cts-hmac-sha384-192</span> <span class="pre">aes128-cts-hmac-sha256-128</span> <span class="pre">des3-cbc-sha1</span> <span class="pre">arcfour-hmac-md5</span> <span class="pre">camellia256-cts-cmac</span> <span class="pre">camellia128-cts-cmac</span></code>.</p> |
| 345 |
</dd> |
| 346 |
<dt><strong>plugin_base_dir</strong></dt><dd><p>If set, determines the base directory where krb5 plugins are |
| 347 |
located. The default value is the <code class="docutils literal notranslate"><span class="pre">krb5/plugins</span></code> subdirectory |
| 348 |
of the krb5 library directory. This relation is subject to |
| 349 |
parameter expansion (see below) in release 1.17 and later.</p> |
| 350 |
</dd> |
| 351 |
<dt><strong>preferred_preauth_types</strong></dt><dd><p>This allows you to set the preferred preauthentication types which |
| 352 |
the client will attempt before others which may be advertised by a |
| 353 |
KDC. The default value for this setting is “17, 16, 15, 14”, |
| 354 |
which forces libkrb5 to attempt to use PKINIT if it is supported.</p> |
| 355 |
</dd> |
| 356 |
<dt><strong>proxiable</strong></dt><dd><p>If this flag is true, initial tickets will be proxiable by |
| 357 |
default, if allowed by the KDC. The default value is false.</p> |
| 358 |
</dd> |
| 359 |
<dt><strong>qualify_shortname</strong></dt><dd><p>If this string is set, it determines the domain suffix for |
| 360 |
single-component hostnames when DNS canonicalization is not used |
| 361 |
(either because <strong>dns_canonicalize_hostname</strong> is false or because |
| 362 |
forward canonicalization failed). The default value is the first |
| 363 |
search domain of the system’s DNS configuration. To disable |
| 364 |
qualification of shortnames, set this relation to the empty string |
| 365 |
with <code class="docutils literal notranslate"><span class="pre">qualify_shortname</span> <span class="pre">=</span> <span class="pre">""</span></code>. (New in release 1.18.)</p> |
| 366 |
</dd> |
| 367 |
<dt><strong>rdns</strong></dt><dd><p>If this flag is true, reverse name lookup will be used in addition |
| 368 |
to forward name lookup to canonicalizing hostnames for use in |
| 369 |
service principal names. If <strong>dns_canonicalize_hostname</strong> is set |
| 370 |
to false, this flag has no effect. The default value is true.</p> |
| 371 |
</dd> |
| 372 |
<dt><strong>realm_try_domains</strong></dt><dd><p>Indicate whether a host’s domain components should be used to |
| 373 |
determine the Kerberos realm of the host. The value of this |
| 374 |
variable is an integer: -1 means not to search, 0 means to try the |
| 375 |
host’s domain itself, 1 means to also try the domain’s immediate |
| 376 |
parent, and so forth. The library’s usual mechanism for locating |
| 377 |
Kerberos realms is used to determine whether a domain is a valid |
| 378 |
realm, which may involve consulting DNS if <strong>dns_lookup_kdc</strong> is |
| 379 |
set. The default is not to search domain components.</p> |
| 380 |
</dd> |
| 381 |
<dt><strong>renew_lifetime</strong></dt><dd><p>(<a class="reference internal" href="../../basic/date_format.html#duration"><span class="std std-ref">Time duration</span></a> string.) Sets the default renewable lifetime |
| 382 |
for initial ticket requests. The default value is 0.</p> |
| 383 |
</dd> |
| 384 |
<dt><strong>request_timeout</strong></dt><dd><p>(<a class="reference internal" href="../../basic/date_format.html#duration"><span class="std std-ref">Time duration</span></a> string.) Sets the maximum total time for KDC and |
| 385 |
password change requests. This timeout does not affect the |
| 386 |
intervals between requests, so setting a low timeout may result in |
| 387 |
fewer requests being attempted and/or some servers not being |
| 388 |
contacted. A value of 0 indicates no specific maximum, in which |
| 389 |
case requests will time out if no server responds after several |
| 390 |
tries. The default value is 0. (New in release 1.22.)</p> |
| 391 |
</dd> |
| 392 |
<dt><strong>spake_preauth_groups</strong></dt><dd><p>A whitespace or comma-separated list of words which specifies the |
| 393 |
groups allowed for SPAKE preauthentication. The possible values |
| 394 |
are:</p> |
| 395 |
<table class="docutils align-default"> |
| 396 |
<tbody> |
| 397 |
<tr class="row-odd"><td><p>edwards25519</p></td> |
| 398 |
<td><p>Edwards25519 curve (<span class="target" id="index-0"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc7748.html"><strong>RFC 7748</strong></a>)</p></td> |
| 399 |
</tr> |
| 400 |
<tr class="row-even"><td><p>P-256</p></td> |
| 401 |
<td><p>NIST P-256 curve (<span class="target" id="index-1"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc5480.html"><strong>RFC 5480</strong></a>)</p></td> |
| 402 |
</tr> |
| 403 |
<tr class="row-odd"><td><p>P-384</p></td> |
| 404 |
<td><p>NIST P-384 curve (<span class="target" id="index-2"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc5480.html"><strong>RFC 5480</strong></a>)</p></td> |
| 405 |
</tr> |
| 406 |
<tr class="row-even"><td><p>P-521</p></td> |
| 407 |
<td><p>NIST P-521 curve (<span class="target" id="index-3"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc5480.html"><strong>RFC 5480</strong></a>)</p></td> |
| 408 |
</tr> |
| 409 |
</tbody> |
| 410 |
</table> |
| 411 |
<p>The default value for the client is <code class="docutils literal notranslate"><span class="pre">edwards25519</span></code>. The default |
| 412 |
value for the KDC is empty. New in release 1.17.</p> |
| 413 |
</dd> |
| 414 |
<dt><strong>ticket_lifetime</strong></dt><dd><p>(<a class="reference internal" href="../../basic/date_format.html#duration"><span class="std std-ref">Time duration</span></a> string.) Sets the default lifetime for initial |
| 415 |
ticket requests. The default value is 1 day.</p> |
| 416 |
</dd> |
| 417 |
<dt><strong>udp_preference_limit</strong></dt><dd><p>When sending a message to the KDC, the library will try using TCP |
| 418 |
before UDP if the size of the message is above |
| 419 |
<strong>udp_preference_limit</strong>. If the message is smaller than |
| 420 |
<strong>udp_preference_limit</strong>, then UDP will be tried before TCP. |
| 421 |
Regardless of the size, both protocols will be tried if the first |
| 422 |
attempt fails.</p> |
| 423 |
</dd> |
| 424 |
<dt><strong>verify_ap_req_nofail</strong></dt><dd><p>If this flag is true, then an attempt to verify initial |
| 425 |
credentials will fail if the client machine does not have a |
| 426 |
keytab. The default value is false.</p> |
| 427 |
</dd> |
| 428 |
<dt><strong>client_aware_channel_bindings</strong></dt><dd><p>If this flag is true, then all application protocol authentication |
| 429 |
requests will be flagged to indicate that the application supports |
| 430 |
channel bindings when operating over a secure channel. The |
| 431 |
default value is false.</p> |
| 432 |
</dd> |
| 433 |
</dl> |
| 434 |
</section> |
| 435 |
<section id="realms"> |
| 436 |
<span id="id2"></span><h3>[realms]<a class="headerlink" href="#realms" title="Link to this heading">¶</a></h3> |
| 437 |
<p>Each tag in the [realms] section of the file is the name of a Kerberos |
| 438 |
realm. The value of the tag is a subsection with relations that |
| 439 |
define the properties of that particular realm. For each realm, the |
| 440 |
following tags may be specified in the realm’s subsection:</p> |
| 441 |
<dl> |
| 442 |
<dt><strong>admin_server</strong></dt><dd><p>Identifies the host where the administration server is running. |
| 443 |
Typically, this is the primary Kerberos server. This tag must be |
| 444 |
given a value in order to communicate with the <a class="reference internal" href="../admin_commands/kadmind.html#kadmind-8"><span class="std std-ref">kadmind</span></a> |
| 445 |
server for the realm.</p> |
| 446 |
</dd> |
| 447 |
<dt><strong>auth_to_local</strong></dt><dd><p>This tag allows you to set a general rule for mapping principal |
| 448 |
names to local user names. It will be used if there is not an |
| 449 |
explicit mapping for the principal name that is being |
| 450 |
translated. The possible values are:</p> |
| 451 |
<dl> |
| 452 |
<dt><strong>RULE:</strong><em>exp</em></dt><dd><p>The local name will be formulated from <em>exp</em>.</p> |
| 453 |
<p>The format for <em>exp</em> is <strong>[</strong><em>n</em><strong>:</strong><em>string</em><strong>](</strong><em>regexp</em><strong>)s/</strong><em>pattern</em><strong>/</strong><em>replacement</em><strong>/g</strong>. |
| 454 |
The integer <em>n</em> indicates how many components the target |
| 455 |
principal should have. If this matches, then a string will be |
| 456 |
formed from <em>string</em>, substituting the realm of the principal |
| 457 |
for <code class="docutils literal notranslate"><span class="pre">$0</span></code> and the <em>n</em>’th component of the principal for |
| 458 |
<code class="docutils literal notranslate"><span class="pre">$n</span></code> (e.g., if the principal was <code class="docutils literal notranslate"><span class="pre">johndoe/admin</span></code> then |
| 459 |
<code class="docutils literal notranslate"><span class="pre">[2:$2$1foo]</span></code> would result in the string |
| 460 |
<code class="docutils literal notranslate"><span class="pre">adminjohndoefoo</span></code>). If this string matches <em>regexp</em>, then |
| 461 |
the <code class="docutils literal notranslate"><span class="pre">s//[g]</span></code> substitution command will be run over the |
| 462 |
string. The optional <strong>g</strong> will cause the substitution to be |
| 463 |
global over the <em>string</em>, instead of replacing only the first |
| 464 |
match in the <em>string</em>.</p> |
| 465 |
</dd> |
| 466 |
<dt><strong>DEFAULT</strong></dt><dd><p>The principal name will be used as the local user name. If |
| 467 |
the principal has more than one component or is not in the |
| 468 |
default realm, this rule is not applicable and the conversion |
| 469 |
will fail.</p> |
| 470 |
</dd> |
| 471 |
</dl> |
| 472 |
<p>For example:</p> |
| 473 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>[realms] |
| 474 |
ATHENA.MIT.EDU = { |
| 475 |
auth_to_local = RULE:[2:$1](johndoe)s/^.*$/guest/ |
| 476 |
auth_to_local = RULE:[2:$1;$2](^.*;admin$)s/;admin$// |
| 477 |
auth_to_local = RULE:[2:$2](^.*;root)s/^.*$/root/ |
| 478 |
auth_to_local = DEFAULT |
| 479 |
} |
| 480 |
</pre></div> |
| 481 |
</div> |
| 482 |
<p>would result in any principal without <code class="docutils literal notranslate"><span class="pre">root</span></code> or <code class="docutils literal notranslate"><span class="pre">admin</span></code> as the |
| 483 |
second component to be translated with the default rule. A |
| 484 |
principal with a second component of <code class="docutils literal notranslate"><span class="pre">admin</span></code> will become its |
| 485 |
first component. <code class="docutils literal notranslate"><span class="pre">root</span></code> will be used as the local name for any |
| 486 |
principal with a second component of <code class="docutils literal notranslate"><span class="pre">root</span></code>. The exception to |
| 487 |
these two rules are any principals <code class="docutils literal notranslate"><span class="pre">johndoe/*</span></code>, which will |
| 488 |
always get the local name <code class="docutils literal notranslate"><span class="pre">guest</span></code>.</p> |
| 489 |
</dd> |
| 490 |
<dt><strong>auth_to_local_names</strong></dt><dd><p>This subsection allows you to set explicit mappings from principal |
| 491 |
names to local user names. The tag is the mapping name, and the |
| 492 |
value is the corresponding local user name.</p> |
| 493 |
</dd> |
| 494 |
<dt><strong>default_domain</strong></dt><dd><p>This tag specifies the domain used to expand hostnames when |
| 495 |
translating Kerberos 4 service principals to Kerberos 5 principals |
| 496 |
(for example, when converting <code class="docutils literal notranslate"><span class="pre">rcmd.hostname</span></code> to |
| 497 |
<code class="docutils literal notranslate"><span class="pre">host/hostname.domain</span></code>).</p> |
| 498 |
</dd> |
| 499 |
<dt><strong>disable_encrypted_timestamp</strong></dt><dd><p>If this flag is true, the client will not perform encrypted |
| 500 |
timestamp preauthentication if requested by the KDC. Setting this |
| 501 |
flag can help to prevent dictionary attacks by active attackers, |
| 502 |
if the realm’s KDCs support SPAKE preauthentication or if initial |
| 503 |
authentication always uses another mechanism or always uses FAST. |
| 504 |
This flag persists across client referrals during initial |
| 505 |
authentication. This flag does not prevent the KDC from offering |
| 506 |
encrypted timestamp. New in release 1.17.</p> |
| 507 |
</dd> |
| 508 |
<dt><strong>http_anchors</strong></dt><dd><p>When KDCs and kpasswd servers are accessed through HTTPS proxies, this tag |
| 509 |
can be used to specify the location of the CA certificate which should be |
| 510 |
trusted to issue the certificate for a proxy server. If left unspecified, |
| 511 |
the system-wide default set of CA certificates is used.</p> |
| 512 |
<p>The syntax for values is similar to that of values for the |
| 513 |
<strong>pkinit_anchors</strong> tag:</p> |
| 514 |
<p><strong>FILE:</strong> <em>filename</em></p> |
| 515 |
<p><em>filename</em> is assumed to be the name of an OpenSSL-style ca-bundle file.</p> |
| 516 |
<p><strong>DIR:</strong> <em>dirname</em></p> |
| 517 |
<p><em>dirname</em> is assumed to be an directory which contains CA certificates. |
| 518 |
All files in the directory will be examined; if they contain certificates |
| 519 |
(in PEM format), they will be used.</p> |
| 520 |
<p><strong>ENV:</strong> <em>envvar</em></p> |
| 521 |
<p><em>envvar</em> specifies the name of an environment variable which has been set |
| 522 |
to a value conforming to one of the previous values. For example, |
| 523 |
<code class="docutils literal notranslate"><span class="pre">ENV:X509_PROXY_CA</span></code>, where environment variable <code class="docutils literal notranslate"><span class="pre">X509_PROXY_CA</span></code> has |
| 524 |
been set to <code class="docutils literal notranslate"><span class="pre">FILE:/tmp/my_proxy.pem</span></code>.</p> |
| 525 |
</dd> |
| 526 |
<dt><strong>kdc</strong></dt><dd><p>The name or address of a host running a KDC for the realm, or a |
| 527 |
UNIX domain socket path of a locally running KDC. An optional |
| 528 |
port number, separated from the hostname by a colon, may be |
| 529 |
included. If the name or address contains colons (for example, if |
| 530 |
it is an IPv6 address), enclose it in square brackets to |
| 531 |
distinguish the colon from a port separator. For your computer to |
| 532 |
be able to communicate with the KDC for each realm, this tag must |
| 533 |
be given a value in each realm subsection in the configuration |
| 534 |
file, or there must be DNS SRV records specifying the KDCs.</p> |
| 535 |
</dd> |
| 536 |
<dt><strong>kpasswd_server</strong></dt><dd><p>The location of the password change server for the realm, using |
| 537 |
the same syntax as <strong>kdc</strong>. If there is no such entry, DNS will |
| 538 |
be queried (unless forbidden by <strong>dns_lookup_kdc</strong>). Finally, |
| 539 |
port 464 on the <strong>admin_server</strong> host will be tried.</p> |
| 540 |
</dd> |
| 541 |
<dt><strong>master_kdc</strong></dt><dd><p>The name for <strong>primary_kdc</strong> prior to release 1.19. Its value is |
| 542 |
used as a fallback if <strong>primary_kdc</strong> is not specified.</p> |
| 543 |
</dd> |
| 544 |
<dt><strong>primary_kdc</strong></dt><dd><p>Identifies the primary KDC(s). Currently, this tag is used in only |
| 545 |
one case: If an attempt to get credentials fails because of an |
| 546 |
invalid password, the client software will attempt to contact the |
| 547 |
primary KDC, in case the user’s password has just been changed, and |
| 548 |
the updated database has not been propagated to the replica |
| 549 |
servers yet. New in release 1.19.</p> |
| 550 |
</dd> |
| 551 |
<dt><strong>sitename</strong></dt><dd><p>Specifies the name of the host’s site for the purpose of DNS-based |
| 552 |
KDC discovery for this realm. New in release 1.22.</p> |
| 553 |
</dd> |
| 554 |
<dt><strong>v4_instance_convert</strong></dt><dd><p>This subsection allows the administrator to configure exceptions |
| 555 |
to the <strong>default_domain</strong> mapping rule. It contains V4 instances |
| 556 |
(the tag name) which should be translated to some specific |
| 557 |
hostname (the tag value) as the second component in a Kerberos V5 |
| 558 |
principal name.</p> |
| 559 |
</dd> |
| 560 |
<dt><strong>v4_realm</strong></dt><dd><p>This relation is used by the krb524 library routines when |
| 561 |
converting a V5 principal name to a V4 principal name. It is used |
| 562 |
when the V4 realm name and the V5 realm name are not the same, but |
| 563 |
still share the same principal names and passwords. The tag value |
| 564 |
is the Kerberos V4 realm name.</p> |
| 565 |
</dd> |
| 566 |
</dl> |
| 567 |
</section> |
| 568 |
<section id="domain-realm"> |
| 569 |
<span id="id3"></span><h3>[domain_realm]<a class="headerlink" href="#domain-realm" title="Link to this heading">¶</a></h3> |
| 570 |
<p>The [domain_realm] section provides a translation from hostnames to |
| 571 |
Kerberos realms. Each tag is a domain name, providing the mapping for |
| 572 |
that domain and all subdomains. If the tag begins with a period |
| 573 |
(<code class="docutils literal notranslate"><span class="pre">.</span></code>) then it applies only to subdomains. The Kerberos realm may be |
| 574 |
identified either in the <a class="reference internal" href="#realms">realms</a> section or using DNS SRV records. |
| 575 |
Tag names should be in lower case. For example:</p> |
| 576 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">domain_realm</span><span class="p">]</span> |
| 577 |
<span class="n">crash</span><span class="o">.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> <span class="o">=</span> <span class="n">TEST</span><span class="o">.</span><span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> |
| 578 |
<span class="o">.</span><span class="n">dev</span><span class="o">.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> <span class="o">=</span> <span class="n">TEST</span><span class="o">.</span><span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> |
| 579 |
<span class="n">mit</span><span class="o">.</span><span class="n">edu</span> <span class="o">=</span> <span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> |
| 580 |
</pre></div> |
| 581 |
</div> |
| 582 |
<p>maps the host with the name <code class="docutils literal notranslate"><span class="pre">crash.mit.edu</span></code> into the |
| 583 |
<code class="docutils literal notranslate"><span class="pre">TEST.ATHENA.MIT.EDU</span></code> realm. The second entry maps all hosts under the |
| 584 |
domain <code class="docutils literal notranslate"><span class="pre">dev.mit.edu</span></code> into the <code class="docutils literal notranslate"><span class="pre">TEST.ATHENA.MIT.EDU</span></code> realm, but not |
| 585 |
the host with the name <code class="docutils literal notranslate"><span class="pre">dev.mit.edu</span></code>. That host is matched |
| 586 |
by the third entry, which maps the host <code class="docutils literal notranslate"><span class="pre">mit.edu</span></code> and all hosts |
| 587 |
under the domain <code class="docutils literal notranslate"><span class="pre">mit.edu</span></code> that do not match a preceding rule |
| 588 |
into the realm <code class="docutils literal notranslate"><span class="pre">ATHENA.MIT.EDU</span></code>.</p> |
| 589 |
<p>If no translation entry applies to a hostname used for a service |
| 590 |
principal for a service ticket request, the library will try to get a |
| 591 |
referral to the appropriate realm from the client realm’s KDC. If |
| 592 |
that does not succeed, the host’s realm is considered to be the |
| 593 |
hostname’s domain portion converted to uppercase, unless the |
| 594 |
<strong>realm_try_domains</strong> setting in [libdefaults] causes a different |
| 595 |
parent domain to be used.</p> |
| 596 |
</section> |
| 597 |
<section id="capaths"> |
| 598 |
<span id="id4"></span><h3>[capaths]<a class="headerlink" href="#capaths" title="Link to this heading">¶</a></h3> |
| 599 |
<p>In order to perform direct (non-hierarchical) cross-realm |
| 600 |
authentication, configuration is needed to determine the |
| 601 |
authentication paths between realms.</p> |
| 602 |
<p>A client will use this section to find the authentication path between |
| 603 |
its realm and the realm of the server. The server will use this |
| 604 |
section to verify the authentication path used by the client, by |
| 605 |
checking the transited field of the received ticket.</p> |
| 606 |
<p>There is a tag for each participating client realm, and each tag has |
| 607 |
subtags for each of the server realms. The value of the subtags is an |
| 608 |
intermediate realm which may participate in the cross-realm |
| 609 |
authentication. The subtags may be repeated if there is more then one |
| 610 |
intermediate realm. A value of “.” means that the two realms share |
| 611 |
keys directly, and no intermediate realms should be allowed to |
| 612 |
participate.</p> |
| 613 |
<p>Only those entries which will be needed on the client or the server |
| 614 |
need to be present. A client needs a tag for its local realm with |
| 615 |
subtags for all the realms of servers it will need to authenticate to. |
| 616 |
A server needs a tag for each realm of the clients it will serve, with |
| 617 |
a subtag of the server realm.</p> |
| 618 |
<p>For example, <code class="docutils literal notranslate"><span class="pre">ANL.GOV</span></code>, <code class="docutils literal notranslate"><span class="pre">PNL.GOV</span></code>, and <code class="docutils literal notranslate"><span class="pre">NERSC.GOV</span></code> all wish to |
| 619 |
use the <code class="docutils literal notranslate"><span class="pre">ES.NET</span></code> realm as an intermediate realm. ANL has a sub |
| 620 |
realm of <code class="docutils literal notranslate"><span class="pre">TEST.ANL.GOV</span></code> which will authenticate with <code class="docutils literal notranslate"><span class="pre">NERSC.GOV</span></code> |
| 621 |
but not <code class="docutils literal notranslate"><span class="pre">PNL.GOV</span></code>. The [capaths] section for <code class="docutils literal notranslate"><span class="pre">ANL.GOV</span></code> systems |
| 622 |
would look like this:</p> |
| 623 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">capaths</span><span class="p">]</span> |
| 624 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 625 |
<span class="n">TEST</span><span class="o">.</span><span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="o">.</span> |
| 626 |
<span class="n">PNL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 627 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 628 |
<span class="n">ES</span><span class="o">.</span><span class="n">NET</span> <span class="o">=</span> <span class="o">.</span> |
| 629 |
<span class="p">}</span> |
| 630 |
<span class="n">TEST</span><span class="o">.</span><span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 631 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="o">.</span> |
| 632 |
<span class="p">}</span> |
| 633 |
<span class="n">PNL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 634 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 635 |
<span class="p">}</span> |
| 636 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 637 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 638 |
<span class="p">}</span> |
| 639 |
<span class="n">ES</span><span class="o">.</span><span class="n">NET</span> <span class="o">=</span> <span class="p">{</span> |
| 640 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="o">.</span> |
| 641 |
<span class="p">}</span> |
| 642 |
</pre></div> |
| 643 |
</div> |
| 644 |
<p>The [capaths] section of the configuration file used on <code class="docutils literal notranslate"><span class="pre">NERSC.GOV</span></code> |
| 645 |
systems would look like this:</p> |
| 646 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">capaths</span><span class="p">]</span> |
| 647 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 648 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 649 |
<span class="n">TEST</span><span class="o">.</span><span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 650 |
<span class="n">TEST</span><span class="o">.</span><span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> |
| 651 |
<span class="n">PNL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 652 |
<span class="n">ES</span><span class="o">.</span><span class="n">NET</span> <span class="o">=</span> <span class="o">.</span> |
| 653 |
<span class="p">}</span> |
| 654 |
<span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 655 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 656 |
<span class="p">}</span> |
| 657 |
<span class="n">PNL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 658 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 659 |
<span class="p">}</span> |
| 660 |
<span class="n">ES</span><span class="o">.</span><span class="n">NET</span> <span class="o">=</span> <span class="p">{</span> |
| 661 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="o">.</span> |
| 662 |
<span class="p">}</span> |
| 663 |
<span class="n">TEST</span><span class="o">.</span><span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="p">{</span> |
| 664 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ANL</span><span class="o">.</span><span class="n">GOV</span> |
| 665 |
<span class="n">NERSC</span><span class="o">.</span><span class="n">GOV</span> <span class="o">=</span> <span class="n">ES</span><span class="o">.</span><span class="n">NET</span> |
| 666 |
<span class="p">}</span> |
| 667 |
</pre></div> |
| 668 |
</div> |
| 669 |
<p>When a subtag is used more than once within a tag, clients will use |
| 670 |
the order of values to determine the path. The order of values is not |
| 671 |
important to servers.</p> |
| 672 |
</section> |
| 673 |
<section id="appdefaults"> |
| 674 |
<span id="id5"></span><h3>[appdefaults]<a class="headerlink" href="#appdefaults" title="Link to this heading">¶</a></h3> |
| 675 |
<p>Each tag in the [appdefaults] section names a Kerberos V5 application |
| 676 |
or an option that is used by some Kerberos V5 application[s]. The |
| 677 |
value of the tag defines the default behaviors for that application.</p> |
| 678 |
<p>For example:</p> |
| 679 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">appdefaults</span><span class="p">]</span> |
| 680 |
<span class="n">telnet</span> <span class="o">=</span> <span class="p">{</span> |
| 681 |
<span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> <span class="o">=</span> <span class="p">{</span> |
| 682 |
<span class="n">option1</span> <span class="o">=</span> <span class="n">false</span> |
| 683 |
<span class="p">}</span> |
| 684 |
<span class="p">}</span> |
| 685 |
<span class="n">telnet</span> <span class="o">=</span> <span class="p">{</span> |
| 686 |
<span class="n">option1</span> <span class="o">=</span> <span class="n">true</span> |
| 687 |
<span class="n">option2</span> <span class="o">=</span> <span class="n">true</span> |
| 688 |
<span class="p">}</span> |
| 689 |
<span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> <span class="o">=</span> <span class="p">{</span> |
| 690 |
<span class="n">option2</span> <span class="o">=</span> <span class="n">false</span> |
| 691 |
<span class="p">}</span> |
| 692 |
<span class="n">option2</span> <span class="o">=</span> <span class="n">true</span> |
| 693 |
</pre></div> |
| 694 |
</div> |
| 695 |
<p>The above four ways of specifying the value of an option are shown in |
| 696 |
order of decreasing precedence. In this example, if telnet is running |
| 697 |
in the realm EXAMPLE.COM, it should, by default, have option1 and |
| 698 |
option2 set to true. However, a telnet program in the realm |
| 699 |
<code class="docutils literal notranslate"><span class="pre">ATHENA.MIT.EDU</span></code> should have <code class="docutils literal notranslate"><span class="pre">option1</span></code> set to false and |
| 700 |
<code class="docutils literal notranslate"><span class="pre">option2</span></code> set to true. Any other programs in ATHENA.MIT.EDU should |
| 701 |
have <code class="docutils literal notranslate"><span class="pre">option2</span></code> set to false by default. Any programs running in |
| 702 |
other realms should have <code class="docutils literal notranslate"><span class="pre">option2</span></code> set to true.</p> |
| 703 |
<p>The list of specifiable options for each application may be found in |
| 704 |
that application’s man pages. The application defaults specified here |
| 705 |
are overridden by those specified in the <a class="reference internal" href="#realms">realms</a> section.</p> |
| 706 |
</section> |
| 707 |
<section id="plugins"> |
| 708 |
<span id="id6"></span><h3>[plugins]<a class="headerlink" href="#plugins" title="Link to this heading">¶</a></h3> |
| 709 |
<blockquote> |
| 710 |
<div><ul class="simple"> |
| 711 |
<li><p><a class="reference internal" href="#pwqual">pwqual</a> interface</p></li> |
| 712 |
<li><p><a class="reference internal" href="#kadm5-hook">kadm5_hook</a> interface</p></li> |
| 713 |
<li><p><a class="reference internal" href="#clpreauth">clpreauth</a> and <a class="reference internal" href="#kdcpreauth">kdcpreauth</a> interfaces</p></li> |
| 714 |
</ul> |
| 715 |
</div></blockquote> |
| 716 |
<p>Tags in the [plugins] section can be used to register dynamic plugin |
| 717 |
modules and to turn modules on and off. Not every krb5 pluggable |
| 718 |
interface uses the [plugins] section; the ones that do are documented |
| 719 |
here.</p> |
| 720 |
<p>New in release 1.9.</p> |
| 721 |
<p>Each pluggable interface corresponds to a subsection of [plugins]. |
| 722 |
All subsections support the same tags:</p> |
| 723 |
<dl class="simple"> |
| 724 |
<dt><strong>disable</strong></dt><dd><p>This tag may have multiple values. If there are values for this |
| 725 |
tag, then the named modules will be disabled for the pluggable |
| 726 |
interface.</p> |
| 727 |
</dd> |
| 728 |
<dt><strong>enable_only</strong></dt><dd><p>This tag may have multiple values. If there are values for this |
| 729 |
tag, then only the named modules will be enabled for the pluggable |
| 730 |
interface.</p> |
| 731 |
</dd> |
| 732 |
<dt><strong>module</strong></dt><dd><p>This tag may have multiple values. Each value is a string of the |
| 733 |
form <code class="docutils literal notranslate"><span class="pre">modulename:pathname</span></code>, which causes the shared object |
| 734 |
located at <em>pathname</em> to be registered as a dynamic module named |
| 735 |
<em>modulename</em> for the pluggable interface. If <em>pathname</em> is not an |
| 736 |
absolute path, it will be treated as relative to the |
| 737 |
<strong>plugin_base_dir</strong> value from <a class="reference internal" href="#libdefaults"><span class="std std-ref">[libdefaults]</span></a>.</p> |
| 738 |
</dd> |
| 739 |
</dl> |
| 740 |
<p>For pluggable interfaces where module order matters, modules |
| 741 |
registered with a <strong>module</strong> tag normally come first, in the order |
| 742 |
they are registered, followed by built-in modules in the order they |
| 743 |
are documented below. If <strong>enable_only</strong> tags are used, then the |
| 744 |
order of those tags overrides the normal module order.</p> |
| 745 |
<p>The following subsections are currently supported within the [plugins] |
| 746 |
section:</p> |
| 747 |
<section id="ccselect-interface"> |
| 748 |
<span id="ccselect"></span><h4>ccselect interface<a class="headerlink" href="#ccselect-interface" title="Link to this heading">¶</a></h4> |
| 749 |
<p>The ccselect subsection controls modules for credential cache |
| 750 |
selection within a cache collection. In addition to any registered |
| 751 |
dynamic modules, the following built-in modules exist (and may be |
| 752 |
disabled with the disable tag):</p> |
| 753 |
<dl class="simple"> |
| 754 |
<dt><strong>k5identity</strong></dt><dd><p>Uses a .k5identity file in the user’s home directory to select a |
| 755 |
client principal</p> |
| 756 |
</dd> |
| 757 |
<dt><strong>realm</strong></dt><dd><p>Uses the service realm to guess an appropriate cache from the |
| 758 |
collection</p> |
| 759 |
</dd> |
| 760 |
<dt><strong>hostname</strong></dt><dd><p>If the service principal is host-based, uses the service hostname |
| 761 |
to guess an appropriate cache from the collection</p> |
| 762 |
</dd> |
| 763 |
</dl> |
| 764 |
</section> |
| 765 |
<section id="pwqual-interface"> |
| 766 |
<span id="pwqual"></span><h4>pwqual interface<a class="headerlink" href="#pwqual-interface" title="Link to this heading">¶</a></h4> |
| 767 |
<p>The pwqual subsection controls modules for the password quality |
| 768 |
interface, which is used to reject weak passwords when passwords are |
| 769 |
changed. The following built-in modules exist for this interface:</p> |
| 770 |
<dl class="simple"> |
| 771 |
<dt><strong>dict</strong></dt><dd><p>Checks against the realm dictionary file</p> |
| 772 |
</dd> |
| 773 |
<dt><strong>empty</strong></dt><dd><p>Rejects empty passwords</p> |
| 774 |
</dd> |
| 775 |
<dt><strong>hesiod</strong></dt><dd><p>Checks against user information stored in Hesiod (only if Kerberos |
| 776 |
was built with Hesiod support)</p> |
| 777 |
</dd> |
| 778 |
<dt><strong>princ</strong></dt><dd><p>Checks against components of the principal name</p> |
| 779 |
</dd> |
| 780 |
</dl> |
| 781 |
</section> |
| 782 |
<section id="kadm5-hook-interface"> |
| 783 |
<span id="kadm5-hook"></span><h4>kadm5_hook interface<a class="headerlink" href="#kadm5-hook-interface" title="Link to this heading">¶</a></h4> |
| 784 |
<p>The kadm5_hook interface provides plugins with information on |
| 785 |
principal creation, modification, password changes and deletion. This |
| 786 |
interface can be used to write a plugin to synchronize MIT Kerberos |
| 787 |
with another database such as Active Directory. No plugins are built |
| 788 |
in for this interface.</p> |
| 789 |
</section> |
| 790 |
<section id="kadm5-auth-interface"> |
| 791 |
<span id="kadm5-auth"></span><h4>kadm5_auth interface<a class="headerlink" href="#kadm5-auth-interface" title="Link to this heading">¶</a></h4> |
| 792 |
<p>The kadm5_auth section (introduced in release 1.16) controls modules |
| 793 |
for the kadmin authorization interface, which determines whether a |
| 794 |
client principal is allowed to perform a kadmin operation. The |
| 795 |
following built-in modules exist for this interface:</p> |
| 796 |
<dl class="simple"> |
| 797 |
<dt><strong>acl</strong></dt><dd><p>This module reads the <a class="reference internal" href="kadm5_acl.html#kadm5-acl-5"><span class="std std-ref">kadm5.acl</span></a> file, and authorizes |
| 798 |
operations which are allowed according to the rules in the file.</p> |
| 799 |
</dd> |
| 800 |
<dt><strong>self</strong></dt><dd><p>This module authorizes self-service operations including password |
| 801 |
changes, creation of new random keys, fetching the client’s |
| 802 |
principal record or string attributes, and fetching the policy |
| 803 |
record associated with the client principal.</p> |
| 804 |
</dd> |
| 805 |
</dl> |
| 806 |
</section> |
| 807 |
<section id="clpreauth-and-kdcpreauth-interfaces"> |
| 808 |
<span id="kdcpreauth"></span><span id="clpreauth"></span><h4>clpreauth and kdcpreauth interfaces<a class="headerlink" href="#clpreauth-and-kdcpreauth-interfaces" title="Link to this heading">¶</a></h4> |
| 809 |
<p>The clpreauth and kdcpreauth interfaces allow plugin modules to |
| 810 |
provide client and KDC preauthentication mechanisms. The following |
| 811 |
built-in modules exist for these interfaces:</p> |
| 812 |
<dl class="simple"> |
| 813 |
<dt><strong>pkinit</strong></dt><dd><p>This module implements the PKINIT preauthentication mechanism.</p> |
| 814 |
</dd> |
| 815 |
<dt><strong>encrypted_challenge</strong></dt><dd><p>This module implements the encrypted challenge FAST factor.</p> |
| 816 |
</dd> |
| 817 |
<dt><strong>encrypted_timestamp</strong></dt><dd><p>This module implements the encrypted timestamp mechanism.</p> |
| 818 |
</dd> |
| 819 |
</dl> |
| 820 |
</section> |
| 821 |
<section id="hostrealm-interface"> |
| 822 |
<span id="hostrealm"></span><h4>hostrealm interface<a class="headerlink" href="#hostrealm-interface" title="Link to this heading">¶</a></h4> |
| 823 |
<p>The hostrealm section (introduced in release 1.12) controls modules |
| 824 |
for the host-to-realm interface, which affects the local mapping of |
| 825 |
hostnames to realm names and the choice of default realm. The following |
| 826 |
built-in modules exist for this interface:</p> |
| 827 |
<dl class="simple"> |
| 828 |
<dt><strong>profile</strong></dt><dd><p>This module consults the [domain_realm] section of the profile for |
| 829 |
authoritative host-to-realm mappings, and the <strong>default_realm</strong> |
| 830 |
variable for the default realm.</p> |
| 831 |
</dd> |
| 832 |
<dt><strong>dns</strong></dt><dd><p>This module looks for DNS records for fallback host-to-realm |
| 833 |
mappings and the default realm. It only operates if the |
| 834 |
<strong>dns_lookup_realm</strong> variable is set to true.</p> |
| 835 |
</dd> |
| 836 |
<dt><strong>domain</strong></dt><dd><p>This module applies heuristics for fallback host-to-realm |
| 837 |
mappings. It implements the <strong>realm_try_domains</strong> variable, and |
| 838 |
uses the uppercased parent domain of the hostname if that does not |
| 839 |
produce a result.</p> |
| 840 |
</dd> |
| 841 |
</dl> |
| 842 |
</section> |
| 843 |
<section id="localauth-interface"> |
| 844 |
<span id="localauth"></span><h4>localauth interface<a class="headerlink" href="#localauth-interface" title="Link to this heading">¶</a></h4> |
| 845 |
<p>The localauth section (introduced in release 1.12) controls modules |
| 846 |
for the local authorization interface, which affects the relationship |
| 847 |
between Kerberos principals and local system accounts. The following |
| 848 |
built-in modules exist for this interface:</p> |
| 849 |
<dl class="simple"> |
| 850 |
<dt><strong>default</strong></dt><dd><p>This module implements the <strong>DEFAULT</strong> type for <strong>auth_to_local</strong> |
| 851 |
values.</p> |
| 852 |
</dd> |
| 853 |
<dt><strong>rule</strong></dt><dd><p>This module implements the <strong>RULE</strong> type for <strong>auth_to_local</strong> |
| 854 |
values.</p> |
| 855 |
</dd> |
| 856 |
<dt><strong>names</strong></dt><dd><p>This module looks for an <strong>auth_to_local_names</strong> mapping for the |
| 857 |
principal name.</p> |
| 858 |
</dd> |
| 859 |
<dt><strong>auth_to_local</strong></dt><dd><p>This module processes <strong>auth_to_local</strong> values in the default |
| 860 |
realm’s section, and applies the default method if no |
| 861 |
<strong>auth_to_local</strong> values exist.</p> |
| 862 |
</dd> |
| 863 |
<dt><strong>k5login</strong></dt><dd><p>This module authorizes a principal to a local account according to |
| 864 |
the account’s <a class="reference internal" href="../../user/user_config/k5login.html#k5login-5"><span class="std std-ref">.k5login</span></a> file.</p> |
| 865 |
</dd> |
| 866 |
<dt><strong>an2ln</strong></dt><dd><p>This module authorizes a principal to a local account if the |
| 867 |
principal name maps to the local account name.</p> |
| 868 |
</dd> |
| 869 |
</dl> |
| 870 |
</section> |
| 871 |
<section id="certauth-interface"> |
| 872 |
<span id="certauth"></span><h4>certauth interface<a class="headerlink" href="#certauth-interface" title="Link to this heading">¶</a></h4> |
| 873 |
<p>The certauth section (introduced in release 1.16) controls modules for |
| 874 |
the certificate authorization interface, which determines whether a |
| 875 |
certificate is allowed to preauthenticate a user via PKINIT. The |
| 876 |
following built-in modules exist for this interface:</p> |
| 877 |
<dl class="simple"> |
| 878 |
<dt><strong>pkinit_san</strong></dt><dd><p>This module authorizes the certificate if it contains a PKINIT |
| 879 |
Subject Alternative Name for the requested client principal, or a |
| 880 |
Microsoft UPN SAN matching the principal if <strong>pkinit_allow_upn</strong> |
| 881 |
is set to true for the realm.</p> |
| 882 |
</dd> |
| 883 |
<dt><strong>pkinit_eku</strong></dt><dd><p>This module rejects the certificate if it does not contain an |
| 884 |
Extended Key Usage attribute consistent with the |
| 885 |
<strong>pkinit_eku_checking</strong> value for the realm.</p> |
| 886 |
</dd> |
| 887 |
<dt><strong>dbmatch</strong></dt><dd><p>This module authorizes or rejects the certificate according to |
| 888 |
whether it matches the <strong>pkinit_cert_match</strong> string attribute on |
| 889 |
the client principal, if that attribute is present.</p> |
| 890 |
</dd> |
| 891 |
</dl> |
| 892 |
</section> |
| 893 |
</section> |
| 894 |
</section> |
| 895 |
<section id="pkinit-options"> |
| 896 |
<h2>PKINIT options<a class="headerlink" href="#pkinit-options" title="Link to this heading">¶</a></h2> |
| 897 |
<div class="admonition note"> |
| 898 |
<p class="admonition-title">Note</p> |
| 899 |
<p>The following are PKINIT-specific options. These values may |
| 900 |
be specified in [libdefaults] as global defaults, or within |
| 901 |
a realm-specific subsection of [libdefaults], or may be |
| 902 |
specified as realm-specific values in the [realms] section. |
| 903 |
A realm-specific value overrides, not adds to, a generic |
| 904 |
[libdefaults] specification. The search order is:</p> |
| 905 |
</div> |
| 906 |
<ol class="arabic"> |
| 907 |
<li><p>realm-specific subsection of [libdefaults]:</p> |
| 908 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">libdefaults</span><span class="p">]</span> |
| 909 |
<span class="n">EXAMPLE</span><span class="o">.</span><span class="n">COM</span> <span class="o">=</span> <span class="p">{</span> |
| 910 |
<span class="n">pkinit_anchors</span> <span class="o">=</span> <span class="n">FILE</span><span class="p">:</span><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">example</span><span class="o">.</span><span class="n">com</span><span class="o">.</span><span class="n">crt</span> |
| 911 |
<span class="p">}</span> |
| 912 |
</pre></div> |
| 913 |
</div> |
| 914 |
</li> |
| 915 |
<li><p>realm-specific value in the [realms] section:</p> |
| 916 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">realms</span><span class="p">]</span> |
| 917 |
<span class="n">OTHERREALM</span><span class="o">.</span><span class="n">ORG</span> <span class="o">=</span> <span class="p">{</span> |
| 918 |
<span class="n">pkinit_anchors</span> <span class="o">=</span> <span class="n">FILE</span><span class="p">:</span><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">otherrealm</span><span class="o">.</span><span class="n">org</span><span class="o">.</span><span class="n">crt</span> |
| 919 |
<span class="p">}</span> |
| 920 |
</pre></div> |
| 921 |
</div> |
| 922 |
</li> |
| 923 |
<li><p>generic value in the [libdefaults] section:</p> |
| 924 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">libdefaults</span><span class="p">]</span> |
| 925 |
<span class="n">pkinit_anchors</span> <span class="o">=</span> <span class="n">DIR</span><span class="p">:</span><span class="o">/</span><span class="n">usr</span><span class="o">/</span><span class="n">local</span><span class="o">/</span><span class="n">generic_trusted_cas</span><span class="o">/</span> |
| 926 |
</pre></div> |
| 927 |
</div> |
| 928 |
</li> |
| 929 |
</ol> |
| 930 |
<section id="specifying-pkinit-identity-information"> |
| 931 |
<span id="pkinit-identity"></span><h3>Specifying PKINIT identity information<a class="headerlink" href="#specifying-pkinit-identity-information" title="Link to this heading">¶</a></h3> |
| 932 |
<p>The syntax for specifying Public Key identity, trust, and revocation |
| 933 |
information for PKINIT is as follows:</p> |
| 934 |
<dl> |
| 935 |
<dt><strong>FILE:</strong><em>filename</em>[<strong>,</strong><em>keyfilename</em>]</dt><dd><p>This option has context-specific behavior.</p> |
| 936 |
<p>In <strong>pkinit_identity</strong> or <strong>pkinit_identities</strong>, <em>filename</em> |
| 937 |
specifies the name of a PEM-format file containing the user’s |
| 938 |
certificate. If <em>keyfilename</em> is not specified, the user’s |
| 939 |
private key is expected to be in <em>filename</em> as well. Otherwise, |
| 940 |
<em>keyfilename</em> is the name of the file containing the private key.</p> |
| 941 |
<p>In <strong>pkinit_anchors</strong> or <strong>pkinit_pool</strong>, <em>filename</em> is assumed to |
| 942 |
be the name of an OpenSSL-style ca-bundle file.</p> |
| 943 |
</dd> |
| 944 |
<dt><strong>DIR:</strong><em>dirname</em></dt><dd><p>This option has context-specific behavior.</p> |
| 945 |
<p>In <strong>pkinit_identity</strong> or <strong>pkinit_identities</strong>, <em>dirname</em> |
| 946 |
specifies a directory with files named <code class="docutils literal notranslate"><span class="pre">*.crt</span></code> and <code class="docutils literal notranslate"><span class="pre">*.key</span></code> |
| 947 |
where the first part of the file name is the same for matching |
| 948 |
pairs of certificate and private key files. When a file with a |
| 949 |
name ending with <code class="docutils literal notranslate"><span class="pre">.crt</span></code> is found, a matching file ending with |
| 950 |
<code class="docutils literal notranslate"><span class="pre">.key</span></code> is assumed to contain the private key. If no such file |
| 951 |
is found, then the certificate in the <code class="docutils literal notranslate"><span class="pre">.crt</span></code> is not used.</p> |
| 952 |
<p>In <strong>pkinit_anchors</strong> or <strong>pkinit_pool</strong>, <em>dirname</em> is assumed to |
| 953 |
be an OpenSSL-style hashed CA directory where each CA cert is |
| 954 |
stored in a file named <code class="docutils literal notranslate"><span class="pre">hash-of-ca-cert.#</span></code>. This infrastructure |
| 955 |
is encouraged, but all files in the directory will be examined and |
| 956 |
if they contain certificates (in PEM format), they will be used.</p> |
| 957 |
<p>In <strong>pkinit_revoke</strong>, <em>dirname</em> is assumed to be an OpenSSL-style |
| 958 |
hashed CA directory where each revocation list is stored in a file |
| 959 |
named <code class="docutils literal notranslate"><span class="pre">hash-of-ca-cert.r#</span></code>. This infrastructure is encouraged, |
| 960 |
but all files in the directory will be examined and if they |
| 961 |
contain a revocation list (in PEM format), they will be used.</p> |
| 962 |
</dd> |
| 963 |
<dt><strong>PKCS12:</strong><em>filename</em></dt><dd><p><em>filename</em> is the name of a PKCS #12 format file, containing the |
| 964 |
user’s certificate and private key.</p> |
| 965 |
</dd> |
| 966 |
<dt><strong>PKCS11:</strong>[<strong>module_name=</strong>]<em>modname</em>[<strong>:slotid=</strong><em>slot-id</em>][<strong>:token=</strong><em>token-label</em>][<strong>:certid=</strong><em>cert-id</em>][<strong>:certlabel=</strong><em>cert-label</em>]</dt><dd><p>All keyword/values are optional. <em>modname</em> specifies the location |
| 967 |
of a library implementing PKCS #11. If a value is encountered |
| 968 |
with no keyword, it is assumed to be the <em>modname</em>. If no |
| 969 |
module-name is specified, the default is <a class="reference internal" href="../../mitK5defaults.html#paths"><span class="std std-ref">PKCS11_MODNAME</span></a>. |
| 970 |
<code class="docutils literal notranslate"><span class="pre">slotid=</span></code> and/or <code class="docutils literal notranslate"><span class="pre">token=</span></code> may be specified to force the use of |
| 971 |
a particular smard card reader or token if there is more than one |
| 972 |
available. <code class="docutils literal notranslate"><span class="pre">certid=</span></code> and/or <code class="docutils literal notranslate"><span class="pre">certlabel=</span></code> may be specified to |
| 973 |
force the selection of a particular certificate on the device. |
| 974 |
Specifier values must not contain colon characters, as colons are |
| 975 |
always treated as separators. See the <strong>pkinit_cert_match</strong> |
| 976 |
configuration option for more ways to select a particular |
| 977 |
certificate to use for PKINIT.</p> |
| 978 |
</dd> |
| 979 |
<dt><strong>ENV:</strong><em>envvar</em></dt><dd><p><em>envvar</em> specifies the name of an environment variable which has |
| 980 |
been set to a value conforming to one of the previous values. For |
| 981 |
example, <code class="docutils literal notranslate"><span class="pre">ENV:X509_PROXY</span></code>, where environment variable |
| 982 |
<code class="docutils literal notranslate"><span class="pre">X509_PROXY</span></code> has been set to <code class="docutils literal notranslate"><span class="pre">FILE:/tmp/my_proxy.pem</span></code>.</p> |
| 983 |
</dd> |
| 984 |
</dl> |
| 985 |
</section> |
| 986 |
<section id="pkinit-krb5-conf-options"> |
| 987 |
<h3>PKINIT krb5.conf options<a class="headerlink" href="#pkinit-krb5-conf-options" title="Link to this heading">¶</a></h3> |
| 988 |
<dl> |
| 989 |
<dt><strong>pkinit_anchors</strong></dt><dd><p>Specifies the location of trusted anchor (root) certificates which |
| 990 |
the client trusts to sign KDC certificates. This option may be |
| 991 |
specified multiple times. These values from the config file are |
| 992 |
not used if the user specifies X509_anchors on the command line.</p> |
| 993 |
</dd> |
| 994 |
<dt><strong>pkinit_cert_match</strong></dt><dd><p>Specifies matching rules that the client certificate must match |
| 995 |
before it is used to attempt PKINIT authentication. If a user has |
| 996 |
multiple certificates available (on a smart card, or via other |
| 997 |
media), there must be exactly one certificate chosen before |
| 998 |
attempting PKINIT authentication. This option may be specified |
| 999 |
multiple times. All the available certificates are checked |
| 1000 |
against each rule in order until there is a match of exactly one |
| 1001 |
certificate.</p> |
| 1002 |
<p>The Subject and Issuer comparison strings are the <span class="target" id="index-4"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc2253.html"><strong>RFC 2253</strong></a> |
| 1003 |
string representations from the certificate Subject DN and Issuer |
| 1004 |
DN values.</p> |
| 1005 |
<p>The syntax of the matching rules is:</p> |
| 1006 |
<blockquote> |
| 1007 |
<div><p>[<em>relation-operator</em>]<em>component-rule</em> …</p> |
| 1008 |
</div></blockquote> |
| 1009 |
<p>where:</p> |
| 1010 |
<dl> |
| 1011 |
<dt><em>relation-operator</em></dt><dd><p>can be either <code class="docutils literal notranslate"><span class="pre">&&</span></code>, meaning all component rules must match, |
| 1012 |
or <code class="docutils literal notranslate"><span class="pre">||</span></code>, meaning only one component rule must match. The |
| 1013 |
default is <code class="docutils literal notranslate"><span class="pre">&&</span></code>.</p> |
| 1014 |
</dd> |
| 1015 |
<dt><em>component-rule</em></dt><dd><p>can be one of the following. Note that there is no |
| 1016 |
punctuation or whitespace between component rules.</p> |
| 1017 |
<blockquote> |
| 1018 |
<div><div class="line-block"> |
| 1019 |
<div class="line"><strong><SUBJECT></strong><em>regular-expression</em></div> |
| 1020 |
<div class="line"><strong><ISSUER></strong><em>regular-expression</em></div> |
| 1021 |
<div class="line"><strong><SAN></strong><em>regular-expression</em></div> |
| 1022 |
<div class="line"><strong><EKU></strong><em>extended-key-usage-list</em></div> |
| 1023 |
<div class="line"><strong><KU></strong><em>key-usage-list</em></div> |
| 1024 |
</div> |
| 1025 |
</div></blockquote> |
| 1026 |
<p><em>extended-key-usage-list</em> is a comma-separated list of |
| 1027 |
required Extended Key Usage values. All values in the list |
| 1028 |
must be present in the certificate. Extended Key Usage values |
| 1029 |
can be:</p> |
| 1030 |
<ul class="simple"> |
| 1031 |
<li><p>pkinit</p></li> |
| 1032 |
<li><p>msScLogin</p></li> |
| 1033 |
<li><p>clientAuth</p></li> |
| 1034 |
<li><p>emailProtection</p></li> |
| 1035 |
</ul> |
| 1036 |
<p><em>key-usage-list</em> is a comma-separated list of required Key |
| 1037 |
Usage values. All values in the list must be present in the |
| 1038 |
certificate. Key Usage values can be:</p> |
| 1039 |
<ul class="simple"> |
| 1040 |
<li><p>digitalSignature</p></li> |
| 1041 |
<li><p>keyEncipherment</p></li> |
| 1042 |
</ul> |
| 1043 |
</dd> |
| 1044 |
</dl> |
| 1045 |
<p>Examples:</p> |
| 1046 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pkinit_cert_match</span> <span class="o">=</span> <span class="o">||<</span><span class="n">SUBJECT</span><span class="o">>.*</span><span class="n">DoE</span><span class="o">.*<</span><span class="n">SAN</span><span class="o">>.*</span><span class="nd">@EXAMPLE</span><span class="o">.</span><span class="n">COM</span> |
| 1047 |
<span class="n">pkinit_cert_match</span> <span class="o">=</span> <span class="o">&&<</span><span class="n">EKU</span><span class="o">></span><span class="n">msScLogin</span><span class="p">,</span><span class="n">clientAuth</span><span class="o"><</span><span class="n">ISSUER</span><span class="o">>.*</span><span class="n">DoE</span><span class="o">.*</span> |
| 1048 |
<span class="n">pkinit_cert_match</span> <span class="o">=</span> <span class="o"><</span><span class="n">EKU</span><span class="o">></span><span class="n">msScLogin</span><span class="p">,</span><span class="n">clientAuth</span><span class="o"><</span><span class="n">KU</span><span class="o">></span><span class="n">digitalSignature</span> |
| 1049 |
</pre></div> |
| 1050 |
</div> |
| 1051 |
</dd> |
| 1052 |
<dt><strong>pkinit_eku_checking</strong></dt><dd><p>This option specifies what Extended Key Usage value the KDC |
| 1053 |
certificate presented to the client must contain. (Note that if |
| 1054 |
the KDC certificate has the pkinit SubjectAlternativeName encoded |
| 1055 |
as the Kerberos TGS name, EKU checking is not necessary since the |
| 1056 |
issuing CA has certified this as a KDC certificate.) The values |
| 1057 |
recognized in the krb5.conf file are:</p> |
| 1058 |
<dl class="simple"> |
| 1059 |
<dt><strong>kpKDC</strong></dt><dd><p>This is the default value and specifies that the KDC must have |
| 1060 |
the id-pkinit-KPKdc EKU as defined in <span class="target" id="index-5"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc4556.html"><strong>RFC 4556</strong></a>.</p> |
| 1061 |
</dd> |
| 1062 |
<dt><strong>kpServerAuth</strong></dt><dd><p>If <strong>kpServerAuth</strong> is specified, a KDC certificate with the |
| 1063 |
id-kp-serverAuth EKU will be accepted. This key usage value |
| 1064 |
is used in most commercially issued server certificates.</p> |
| 1065 |
</dd> |
| 1066 |
<dt><strong>none</strong></dt><dd><p>If <strong>none</strong> is specified, then the KDC certificate will not be |
| 1067 |
checked to verify it has an acceptable EKU. The use of this |
| 1068 |
option is not recommended.</p> |
| 1069 |
</dd> |
| 1070 |
</dl> |
| 1071 |
</dd> |
| 1072 |
<dt><strong>pkinit_dh_min_bits</strong></dt><dd><p>Specifies the group of the Diffie-Hellman key the client will |
| 1073 |
attempt to use. The acceptable values are 1024, 2048, P-256, |
| 1074 |
4096, P-384, and P-521. The default is 2048. (P-256, P-384, and |
| 1075 |
P-521 are new in release 1.22.)</p> |
| 1076 |
</dd> |
| 1077 |
<dt><strong>pkinit_identities</strong></dt><dd><p>Specifies the location(s) to be used to find the user’s X.509 |
| 1078 |
identity information. If this option is specified multiple times, |
| 1079 |
each value is attempted in order until certificates are found. |
| 1080 |
Note that these values are not used if the user specifies |
| 1081 |
<strong>X509_user_identity</strong> on the command line.</p> |
| 1082 |
</dd> |
| 1083 |
<dt><strong>pkinit_kdc_hostname</strong></dt><dd><p>The presence of this option indicates that the client is willing |
| 1084 |
to accept a KDC certificate with a dNSName SAN (Subject |
| 1085 |
Alternative Name) rather than requiring the id-pkinit-san as |
| 1086 |
defined in <span class="target" id="index-6"></span><a class="rfc reference external" href="https://datatracker.ietf.org/doc/html/rfc4556.html"><strong>RFC 4556</strong></a>. This option may be specified multiple |
| 1087 |
times. Its value should contain the acceptable hostname for the |
| 1088 |
KDC (as contained in its certificate).</p> |
| 1089 |
</dd> |
| 1090 |
<dt><strong>pkinit_pool</strong></dt><dd><p>Specifies the location of intermediate certificates which may be |
| 1091 |
used by the client to complete the trust chain between a KDC |
| 1092 |
certificate and a trusted anchor. This option may be specified |
| 1093 |
multiple times.</p> |
| 1094 |
</dd> |
| 1095 |
<dt><strong>pkinit_require_crl_checking</strong></dt><dd><p>The default certificate verification process will always check the |
| 1096 |
available revocation information to see if a certificate has been |
| 1097 |
revoked. If a match is found for the certificate in a CRL, |
| 1098 |
verification fails. If the certificate being verified is not |
| 1099 |
listed in a CRL, or there is no CRL present for its issuing CA, |
| 1100 |
and <strong>pkinit_require_crl_checking</strong> is false, then verification |
| 1101 |
succeeds.</p> |
| 1102 |
<p>However, if <strong>pkinit_require_crl_checking</strong> is true and there is |
| 1103 |
no CRL information available for the issuing CA, then verification |
| 1104 |
fails.</p> |
| 1105 |
<p><strong>pkinit_require_crl_checking</strong> should be set to true if the |
| 1106 |
policy is such that up-to-date CRLs must be present for every CA.</p> |
| 1107 |
</dd> |
| 1108 |
<dt><strong>pkinit_revoke</strong></dt><dd><p>Specifies the location of Certificate Revocation List (CRL) |
| 1109 |
information to be used by the client when verifying the validity |
| 1110 |
of the KDC certificate presented. This option may be specified |
| 1111 |
multiple times.</p> |
| 1112 |
</dd> |
| 1113 |
</dl> |
| 1114 |
</section> |
| 1115 |
</section> |
| 1116 |
<section id="parameter-expansion"> |
| 1117 |
<span id="id7"></span><h2>Parameter expansion<a class="headerlink" href="#parameter-expansion" title="Link to this heading">¶</a></h2> |
| 1118 |
<p>Starting with release 1.11, several variables, such as |
| 1119 |
<strong>default_keytab_name</strong>, allow parameters to be expanded. |
| 1120 |
Valid parameters are:</p> |
| 1121 |
<blockquote> |
| 1122 |
<div><table class="docutils align-default"> |
| 1123 |
<tbody> |
| 1124 |
<tr class="row-odd"><td><p>%{TEMP}</p></td> |
| 1125 |
<td><p>Temporary directory</p></td> |
| 1126 |
</tr> |
| 1127 |
<tr class="row-even"><td><p>%{uid}</p></td> |
| 1128 |
<td><p>Unix real UID or Windows SID</p></td> |
| 1129 |
</tr> |
| 1130 |
<tr class="row-odd"><td><p>%{euid}</p></td> |
| 1131 |
<td><p>Unix effective user ID or Windows SID</p></td> |
| 1132 |
</tr> |
| 1133 |
<tr class="row-even"><td><p>%{USERID}</p></td> |
| 1134 |
<td><p>Same as %{uid}</p></td> |
| 1135 |
</tr> |
| 1136 |
<tr class="row-odd"><td><p>%{null}</p></td> |
| 1137 |
<td><p>Empty string</p></td> |
| 1138 |
</tr> |
| 1139 |
<tr class="row-even"><td><p>%{LIBDIR}</p></td> |
| 1140 |
<td><p>Installation library directory</p></td> |
| 1141 |
</tr> |
| 1142 |
<tr class="row-odd"><td><p>%{BINDIR}</p></td> |
| 1143 |
<td><p>Installation binary directory</p></td> |
| 1144 |
</tr> |
| 1145 |
<tr class="row-even"><td><p>%{SBINDIR}</p></td> |
| 1146 |
<td><p>Installation admin binary directory</p></td> |
| 1147 |
</tr> |
| 1148 |
<tr class="row-odd"><td><p>%{username}</p></td> |
| 1149 |
<td><p>(Unix) Username of effective user ID</p></td> |
| 1150 |
</tr> |
| 1151 |
<tr class="row-even"><td><p>%{APPDATA}</p></td> |
| 1152 |
<td><p>(Windows) Roaming application data for current user</p></td> |
| 1153 |
</tr> |
| 1154 |
<tr class="row-odd"><td><p>%{COMMON_APPDATA}</p></td> |
| 1155 |
<td><p>(Windows) Application data for all users</p></td> |
| 1156 |
</tr> |
| 1157 |
<tr class="row-even"><td><p>%{LOCAL_APPDATA}</p></td> |
| 1158 |
<td><p>(Windows) Local application data for current user</p></td> |
| 1159 |
</tr> |
| 1160 |
<tr class="row-odd"><td><p>%{SYSTEM}</p></td> |
| 1161 |
<td><p>(Windows) Windows system folder</p></td> |
| 1162 |
</tr> |
| 1163 |
<tr class="row-even"><td><p>%{WINDOWS}</p></td> |
| 1164 |
<td><p>(Windows) Windows folder</p></td> |
| 1165 |
</tr> |
| 1166 |
<tr class="row-odd"><td><p>%{USERCONFIG}</p></td> |
| 1167 |
<td><p>(Windows) Per-user MIT krb5 config file directory</p></td> |
| 1168 |
</tr> |
| 1169 |
<tr class="row-even"><td><p>%{COMMONCONFIG}</p></td> |
| 1170 |
<td><p>(Windows) Common MIT krb5 config file directory</p></td> |
| 1171 |
</tr> |
| 1172 |
</tbody> |
| 1173 |
</table> |
| 1174 |
</div></blockquote> |
| 1175 |
</section> |
| 1176 |
<section id="sample-krb5-conf-file"> |
| 1177 |
<h2>Sample krb5.conf file<a class="headerlink" href="#sample-krb5-conf-file" title="Link to this heading">¶</a></h2> |
| 1178 |
<p>Here is an example of a generic krb5.conf file:</p> |
| 1179 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="p">[</span><span class="n">libdefaults</span><span class="p">]</span> |
| 1180 |
<span class="n">default_realm</span> <span class="o">=</span> <span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> |
| 1181 |
<span class="n">dns_lookup_kdc</span> <span class="o">=</span> <span class="n">true</span> |
| 1182 |
<span class="n">dns_lookup_realm</span> <span class="o">=</span> <span class="n">false</span> |
| 1183 |
|
| 1184 |
<span class="p">[</span><span class="n">realms</span><span class="p">]</span> |
| 1185 |
<span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> <span class="o">=</span> <span class="p">{</span> |
| 1186 |
<span class="n">kdc</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> |
| 1187 |
<span class="n">kdc</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">-</span><span class="mf">1.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> |
| 1188 |
<span class="n">kdc</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">-</span><span class="mf">2.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> |
| 1189 |
<span class="n">admin_server</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> |
| 1190 |
<span class="n">primary_kdc</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">.</span><span class="n">mit</span><span class="o">.</span><span class="n">edu</span> |
| 1191 |
<span class="p">}</span> |
| 1192 |
<span class="n">EXAMPLE</span><span class="o">.</span><span class="n">COM</span> <span class="o">=</span> <span class="p">{</span> |
| 1193 |
<span class="n">kdc</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span> |
| 1194 |
<span class="n">kdc</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">-</span><span class="mf">1.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span> |
| 1195 |
<span class="n">admin_server</span> <span class="o">=</span> <span class="n">kerberos</span><span class="o">.</span><span class="n">example</span><span class="o">.</span><span class="n">com</span> |
| 1196 |
<span class="p">}</span> |
| 1197 |
|
| 1198 |
<span class="p">[</span><span class="n">domain_realm</span><span class="p">]</span> |
| 1199 |
<span class="n">mit</span><span class="o">.</span><span class="n">edu</span> <span class="o">=</span> <span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> |
| 1200 |
|
| 1201 |
<span class="p">[</span><span class="n">capaths</span><span class="p">]</span> |
| 1202 |
<span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> <span class="o">=</span> <span class="p">{</span> |
| 1203 |
<span class="n">EXAMPLE</span><span class="o">.</span><span class="n">COM</span> <span class="o">=</span> <span class="o">.</span> |
| 1204 |
<span class="p">}</span> |
| 1205 |
<span class="n">EXAMPLE</span><span class="o">.</span><span class="n">COM</span> <span class="o">=</span> <span class="p">{</span> |
| 1206 |
<span class="n">ATHENA</span><span class="o">.</span><span class="n">MIT</span><span class="o">.</span><span class="n">EDU</span> <span class="o">=</span> <span class="o">.</span> |
| 1207 |
<span class="p">}</span> |
| 1208 |
</pre></div> |
| 1209 |
</div> |
| 1210 |
</section> |
| 1211 |
<section id="files"> |
| 1212 |
<h2>FILES<a class="headerlink" href="#files" title="Link to this heading">¶</a></h2> |
| 1213 |
<p><code class="docutils literal notranslate"><span class="pre">/etc/krb5.conf</span></code></p> |
| 1214 |
</section> |
| 1215 |
<section id="see-also"> |
| 1216 |
<h2>SEE ALSO<a class="headerlink" href="#see-also" title="Link to this heading">¶</a></h2> |
| 1217 |
<p>syslog(3)</p> |
| 1218 |
</section> |
| 1219 |
</section> |
| 1220 |
|
| 1221 |
|
| 1222 |
<div class="clearer"></div> |
| 1223 |
</div> |
| 1224 |
</div> |
| 1225 |
</div> |
| 1226 |
</div> |
| 1227 |
<div class="sidebar"> |
| 1228 |
|
| 1229 |
<h2>On this page</h2> |
| 1230 |
<ul> |
| 1231 |
<li><a class="reference internal" href="#">krb5.conf</a><ul> |
| 1232 |
<li><a class="reference internal" href="#structure">Structure</a></li> |
| 1233 |
<li><a class="reference internal" href="#sections">Sections</a><ul> |
| 1234 |
<li><a class="reference internal" href="#libdefaults">[libdefaults]</a></li> |
| 1235 |
<li><a class="reference internal" href="#realms">[realms]</a></li> |
| 1236 |
<li><a class="reference internal" href="#domain-realm">[domain_realm]</a></li> |
| 1237 |
<li><a class="reference internal" href="#capaths">[capaths]</a></li> |
| 1238 |
<li><a class="reference internal" href="#appdefaults">[appdefaults]</a></li> |
| 1239 |
<li><a class="reference internal" href="#plugins">[plugins]</a><ul> |
| 1240 |
<li><a class="reference internal" href="#ccselect-interface">ccselect interface</a></li> |
| 1241 |
<li><a class="reference internal" href="#pwqual-interface">pwqual interface</a></li> |
| 1242 |
<li><a class="reference internal" href="#kadm5-hook-interface">kadm5_hook interface</a></li> |
| 1243 |
<li><a class="reference internal" href="#kadm5-auth-interface">kadm5_auth interface</a></li> |
| 1244 |
<li><a class="reference internal" href="#clpreauth-and-kdcpreauth-interfaces">clpreauth and kdcpreauth interfaces</a></li> |
| 1245 |
<li><a class="reference internal" href="#hostrealm-interface">hostrealm interface</a></li> |
| 1246 |
<li><a class="reference internal" href="#localauth-interface">localauth interface</a></li> |
| 1247 |
<li><a class="reference internal" href="#certauth-interface">certauth interface</a></li> |
| 1248 |
</ul> |
| 1249 |
</li> |
| 1250 |
</ul> |
| 1251 |
</li> |
| 1252 |
<li><a class="reference internal" href="#pkinit-options">PKINIT options</a><ul> |
| 1253 |
<li><a class="reference internal" href="#specifying-pkinit-identity-information">Specifying PKINIT identity information</a></li> |
| 1254 |
<li><a class="reference internal" href="#pkinit-krb5-conf-options">PKINIT krb5.conf options</a></li> |
| 1255 |
</ul> |
| 1256 |
</li> |
| 1257 |
<li><a class="reference internal" href="#parameter-expansion">Parameter expansion</a></li> |
| 1258 |
<li><a class="reference internal" href="#sample-krb5-conf-file">Sample krb5.conf file</a></li> |
| 1259 |
<li><a class="reference internal" href="#files">FILES</a></li> |
| 1260 |
<li><a class="reference internal" href="#see-also">SEE ALSO</a></li> |
| 1261 |
</ul> |
| 1262 |
</li> |
| 1263 |
</ul> |
| 1264 |
|
| 1265 |
<br/> |
| 1266 |
<h2>Table of contents</h2> |
| 1267 |
<ul class="current"> |
| 1268 |
<li class="toctree-l1"><a class="reference internal" href="../../user/index.html">For users</a></li> |
| 1269 |
<li class="toctree-l1 current"><a class="reference internal" href="../index.html">For administrators</a><ul class="current"> |
| 1270 |
<li class="toctree-l2"><a class="reference internal" href="../install.html">Installation guide</a></li> |
| 1271 |
<li class="toctree-l2 current"><a class="reference internal" href="index.html">Configuration Files</a><ul class="current"> |
| 1272 |
<li class="toctree-l3 current"><a class="current reference internal" href="#">krb5.conf</a></li> |
| 1273 |
<li class="toctree-l3"><a class="reference internal" href="kdc_conf.html">kdc.conf</a></li> |
| 1274 |
<li class="toctree-l3"><a class="reference internal" href="kadm5_acl.html">kadm5.acl</a></li> |
| 1275 |
</ul> |
| 1276 |
</li> |
| 1277 |
<li class="toctree-l2"><a class="reference internal" href="../realm_config.html">Realm configuration decisions</a></li> |
| 1278 |
<li class="toctree-l2"><a class="reference internal" href="../database.html">Database administration</a></li> |
| 1279 |
<li class="toctree-l2"><a class="reference internal" href="../dbtypes.html">Database types</a></li> |
| 1280 |
<li class="toctree-l2"><a class="reference internal" href="../lockout.html">Account lockout</a></li> |
| 1281 |
<li class="toctree-l2"><a class="reference internal" href="../conf_ldap.html">Configuring Kerberos with OpenLDAP back-end</a></li> |
| 1282 |
<li class="toctree-l2"><a class="reference internal" href="../appl_servers.html">Application servers</a></li> |
| 1283 |
<li class="toctree-l2"><a class="reference internal" href="../host_config.html">Host configuration</a></li> |
| 1284 |
<li class="toctree-l2"><a class="reference internal" href="../backup_host.html">Backups of secure hosts</a></li> |
| 1285 |
<li class="toctree-l2"><a class="reference internal" href="../pkinit.html">PKINIT configuration</a></li> |
| 1286 |
<li class="toctree-l2"><a class="reference internal" href="../otp.html">OTP Preauthentication</a></li> |
| 1287 |
<li class="toctree-l2"><a class="reference internal" href="../spake.html">SPAKE Preauthentication</a></li> |
| 1288 |
<li class="toctree-l2"><a class="reference internal" href="../dictionary.html">Addressing dictionary attack risks</a></li> |
| 1289 |
<li class="toctree-l2"><a class="reference internal" href="../princ_dns.html">Principal names and DNS</a></li> |
| 1290 |
<li class="toctree-l2"><a class="reference internal" href="../enctypes.html">Encryption types</a></li> |
| 1291 |
<li class="toctree-l2"><a class="reference internal" href="../https.html">HTTPS proxy configuration</a></li> |
| 1292 |
<li class="toctree-l2"><a class="reference internal" href="../auth_indicator.html">Authentication indicators</a></li> |
| 1293 |
<li class="toctree-l2"><a class="reference internal" href="../admin_commands/index.html">Administration programs</a></li> |
| 1294 |
<li class="toctree-l2"><a class="reference internal" href="../../mitK5defaults.html">MIT Kerberos defaults</a></li> |
| 1295 |
<li class="toctree-l2"><a class="reference internal" href="../env_variables.html">Environment variables</a></li> |
| 1296 |
<li class="toctree-l2"><a class="reference internal" href="../troubleshoot.html">Troubleshooting</a></li> |
| 1297 |
<li class="toctree-l2"><a class="reference internal" href="../advanced/index.html">Advanced topics</a></li> |
| 1298 |
<li class="toctree-l2"><a class="reference internal" href="../various_envs.html">Various links</a></li> |
| 1299 |
</ul> |
| 1300 |
</li> |
| 1301 |
<li class="toctree-l1"><a class="reference internal" href="../../appdev/index.html">For application developers</a></li> |
| 1302 |
<li class="toctree-l1"><a class="reference internal" href="../../plugindev/index.html">For plugin module developers</a></li> |
| 1303 |
<li class="toctree-l1"><a class="reference internal" href="../../build/index.html">Building Kerberos V5</a></li> |
| 1304 |
<li class="toctree-l1"><a class="reference internal" href="../../basic/index.html">Kerberos V5 concepts</a></li> |
| 1305 |
<li class="toctree-l1"><a class="reference internal" href="../../formats/index.html">Protocols and file formats</a></li> |
| 1306 |
<li class="toctree-l1"><a class="reference internal" href="../../mitK5features.html">MIT Kerberos features</a></li> |
| 1307 |
<li class="toctree-l1"><a class="reference internal" href="../../build_this.html">How to build this documentation from the source</a></li> |
| 1308 |
<li class="toctree-l1"><a class="reference internal" href="../../about.html">Contributing to the MIT Kerberos Documentation</a></li> |
| 1309 |
<li class="toctree-l1"><a class="reference internal" href="../../resources.html">Resources</a></li> |
| 1310 |
</ul> |
| 1311 |
|
| 1312 |
<br/> |
| 1313 |
<h4><a href="../../index.html">Full Table of Contents</a></h4> |
| 1314 |
<h4>Search</h4> |
| 1315 |
<form class="search" action="../../search.html" method="get"> |
| 1316 |
<input type="text" name="q" size="18" /> |
| 1317 |
<input type="submit" value="Go" /> |
| 1318 |
<input type="hidden" name="check_keywords" value="yes" /> |
| 1319 |
<input type="hidden" name="area" value="default" /> |
| 1320 |
</form> |
| 1321 |
|
| 1322 |
</div> |
| 1323 |
<div class="clearer"></div> |
| 1324 |
</div> |
| 1325 |
</div> |
| 1326 |
|
| 1327 |
<div class="footer-wrapper"> |
| 1328 |
<div class="footer" > |
| 1329 |
<div class="right" ><i>Release: 1.22.1</i><br /> |
| 1330 |
© <a href="../../copyright.html">Copyright</a> 1985-2025, MIT. |
| 1331 |
</div> |
| 1332 |
<div class="left"> |
| 1333 |
|
| 1334 |
<a href="../../index.html" title="Full Table of Contents" |
| 1335 |
>Contents</a> | |
| 1336 |
<a href="index.html" title="Configuration Files" |
| 1337 |
>previous</a> | |
| 1338 |
<a href="kdc_conf.html" title="kdc.conf" |
| 1339 |
>next</a> | |
| 1340 |
<a href="../../genindex.html" title="General Index" |
| 1341 |
>index</a> | |
| 1342 |
<a href="../../search.html" title="Enter search criteria" |
| 1343 |
>Search</a> | |
| 1344 |
<a href="mailto:[email protected]?subject=Documentation__krb5.conf">feedback</a> |
| 1345 |
</div> |
| 1346 |
</div> |
| 1347 |
</div> |
| 1348 |
|
| 1349 |
</body> |
| 1350 |
</html> |