1*0a6a1f1dSLionel Sambuc.\" $NetBSD: krb5.conf.5,v 1.4 2014/04/24 13:45:34 pettai Exp $ 2ebfedea0SLionel Sambuc.\" 3ebfedea0SLionel Sambuc.\" Copyright (c) 1999 - 2005 Kungliga Tekniska Högskolan 4ebfedea0SLionel Sambuc.\" (Royal Institute of Technology, Stockholm, Sweden). 5ebfedea0SLionel Sambuc.\" All rights reserved. 6ebfedea0SLionel Sambuc.\" 7ebfedea0SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without 8ebfedea0SLionel Sambuc.\" modification, are permitted provided that the following conditions 9ebfedea0SLionel Sambuc.\" are met: 10ebfedea0SLionel Sambuc.\" 11ebfedea0SLionel Sambuc.\" 1. Redistributions of source code must retain the above copyright 12ebfedea0SLionel Sambuc.\" notice, this list of conditions and the following disclaimer. 13ebfedea0SLionel Sambuc.\" 14ebfedea0SLionel Sambuc.\" 2. Redistributions in binary form must reproduce the above copyright 15ebfedea0SLionel Sambuc.\" notice, this list of conditions and the following disclaimer in the 16ebfedea0SLionel Sambuc.\" documentation and/or other materials provided with the distribution. 17ebfedea0SLionel Sambuc.\" 18ebfedea0SLionel Sambuc.\" 3. Neither the name of the Institute nor the names of its contributors 19ebfedea0SLionel Sambuc.\" may be used to endorse or promote products derived from this software 20ebfedea0SLionel Sambuc.\" without specific prior written permission. 21ebfedea0SLionel Sambuc.\" 22ebfedea0SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 23ebfedea0SLionel Sambuc.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 24ebfedea0SLionel Sambuc.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 25ebfedea0SLionel Sambuc.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 26ebfedea0SLionel Sambuc.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 27ebfedea0SLionel Sambuc.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28ebfedea0SLionel Sambuc.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29ebfedea0SLionel Sambuc.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30ebfedea0SLionel Sambuc.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31ebfedea0SLionel Sambuc.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32ebfedea0SLionel Sambuc.\" SUCH DAMAGE. 33ebfedea0SLionel Sambuc.\" 34ebfedea0SLionel Sambuc.\" Id 35ebfedea0SLionel Sambuc.\" 36ebfedea0SLionel Sambuc.Dd May 4, 2005 37ebfedea0SLionel Sambuc.Dt KRB5.CONF 5 38ebfedea0SLionel Sambuc.Os 39ebfedea0SLionel Sambuc.Sh NAME 40ebfedea0SLionel Sambuc.Nm krb5.conf 41ebfedea0SLionel Sambuc.Nd configuration file for Kerberos 5 42ebfedea0SLionel Sambuc.Sh SYNOPSIS 43ebfedea0SLionel Sambuc.In krb5/krb5.h 44ebfedea0SLionel Sambuc.Sh DESCRIPTION 45ebfedea0SLionel SambucThe 46ebfedea0SLionel Sambuc.Nm 47ebfedea0SLionel Sambucfile specifies several configuration parameters for the Kerberos 5 48ebfedea0SLionel Sambuclibrary, as well as for some programs. 49ebfedea0SLionel Sambuc.Pp 50ebfedea0SLionel SambucThe file consists of one or more sections, containing a number of 51ebfedea0SLionel Sambucbindings. 52ebfedea0SLionel SambucThe value of each binding can be either a string or a list of other 53ebfedea0SLionel Sambucbindings. 54ebfedea0SLionel SambucThe grammar looks like: 55ebfedea0SLionel Sambuc.Bd -literal -offset indent 56ebfedea0SLionel Sambucfile: 57ebfedea0SLionel Sambuc /* empty */ 58ebfedea0SLionel Sambuc sections 59ebfedea0SLionel Sambuc 60ebfedea0SLionel Sambucsections: 61ebfedea0SLionel Sambuc section sections 62ebfedea0SLionel Sambuc section 63ebfedea0SLionel Sambuc 64ebfedea0SLionel Sambucsection: 65ebfedea0SLionel Sambuc '[' section_name ']' bindings 66ebfedea0SLionel Sambuc 67ebfedea0SLionel Sambucsection_name: 68ebfedea0SLionel Sambuc STRING 69ebfedea0SLionel Sambuc 70ebfedea0SLionel Sambucbindings: 71ebfedea0SLionel Sambuc binding bindings 72ebfedea0SLionel Sambuc binding 73ebfedea0SLionel Sambuc 74ebfedea0SLionel Sambucbinding: 75ebfedea0SLionel Sambuc name '=' STRING 76ebfedea0SLionel Sambuc name '=' '{' bindings '}' 77ebfedea0SLionel Sambuc 78ebfedea0SLionel Sambucname: 79ebfedea0SLionel Sambuc STRING 80ebfedea0SLionel Sambuc 81ebfedea0SLionel Sambuc.Ed 82ebfedea0SLionel Sambuc.Li STRINGs 83ebfedea0SLionel Sambucconsists of one or more non-whitespace characters. 84ebfedea0SLionel Sambuc.Pp 85ebfedea0SLionel SambucSTRINGs that are specified later in this man-page uses the following 86ebfedea0SLionel Sambucnotation. 87ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 88ebfedea0SLionel Sambuc.It boolean 89ebfedea0SLionel Sambucvalues can be either yes/true or no/false. 90ebfedea0SLionel Sambuc.It time 91ebfedea0SLionel Sambucvalues can be a list of year, month, day, hour, min, second. 92ebfedea0SLionel SambucExample: 1 month 2 days 30 min. 93ebfedea0SLionel SambucIf no unit is given, seconds is assumed. 94ebfedea0SLionel Sambuc.It etypes 95ebfedea0SLionel Sambucvalid encryption types are: des-cbc-crc, des-cbc-md4, des-cbc-md5, 96ebfedea0SLionel Sambucdes3-cbc-sha1, arcfour-hmac-md5, aes128-cts-hmac-sha1-96, and 97ebfedea0SLionel Sambucaes256-cts-hmac-sha1-96 . 98ebfedea0SLionel Sambuc.It address 99ebfedea0SLionel Sambucan address can be either a IPv4 or a IPv6 address. 100ebfedea0SLionel Sambuc.El 101ebfedea0SLionel Sambuc.Pp 102ebfedea0SLionel SambucCurrently recognised sections and bindings are: 103ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 104ebfedea0SLionel Sambuc.It Li [appdefaults] 105ebfedea0SLionel SambucSpecifies the default values to be used for Kerberos applications. 106ebfedea0SLionel SambucYou can specify defaults per application, realm, or a combination of 107ebfedea0SLionel Sambucthese. 108ebfedea0SLionel SambucThe preference order is: 109ebfedea0SLionel Sambuc.Bl -enum -compact 110ebfedea0SLionel Sambuc.It 111ebfedea0SLionel Sambuc.Va application Va realm Va option 112ebfedea0SLionel Sambuc.It 113ebfedea0SLionel Sambuc.Va application Va option 114ebfedea0SLionel Sambuc.It 115ebfedea0SLionel Sambuc.Va realm Va option 116ebfedea0SLionel Sambuc.It 117ebfedea0SLionel Sambuc.Va option 118ebfedea0SLionel Sambuc.El 119ebfedea0SLionel Sambuc.Pp 120ebfedea0SLionel SambucThe supported options are: 121ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 122ebfedea0SLionel Sambuc.It Li forwardable = Va boolean 123ebfedea0SLionel SambucWhen obtaining initial credentials, make the credentials forwardable. 124ebfedea0SLionel Sambuc.It Li proxiable = Va boolean 125ebfedea0SLionel SambucWhen obtaining initial credentials, make the credentials proxiable. 126ebfedea0SLionel Sambuc.It Li no-addresses = Va boolean 127ebfedea0SLionel SambucWhen obtaining initial credentials, request them for an empty set of 128ebfedea0SLionel Sambucaddresses, making the tickets valid from any address. 129ebfedea0SLionel Sambuc.It Li ticket_lifetime = Va time 130ebfedea0SLionel SambucDefault ticket lifetime. 131ebfedea0SLionel Sambuc.It Li renew_lifetime = Va time 132ebfedea0SLionel SambucDefault renewable ticket lifetime. 133ebfedea0SLionel Sambuc.It Li encrypt = Va boolean 134ebfedea0SLionel SambucUse encryption, when available. 135ebfedea0SLionel Sambuc.It Li forward = Va boolean 136ebfedea0SLionel SambucForward credentials to remote host (for 137ebfedea0SLionel Sambuc.Xr rsh 1 , 138ebfedea0SLionel Sambuc.Xr telnet 1 , 139ebfedea0SLionel Sambucetc). 140ebfedea0SLionel Sambuc.El 141ebfedea0SLionel Sambuc.It Li [libdefaults] 142ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 143ebfedea0SLionel Sambuc.It Li default_realm = Va REALM 144ebfedea0SLionel SambucDefault realm to use, this is also known as your 145ebfedea0SLionel Sambuc.Dq local realm . 146ebfedea0SLionel SambucThe default is the result of 147ebfedea0SLionel Sambuc.Fn krb5_get_host_realm "local hostname" . 148ebfedea0SLionel Sambuc.It Li allow_weak_crypto = Va boolean 149ebfedea0SLionel Sambucis weaks crypto algorithms allowed to be used, among others, DES is 150ebfedea0SLionel Sambucconsidered weak. 151ebfedea0SLionel Sambuc.It Li clockskew = Va time 152ebfedea0SLionel SambucMaximum time differential (in seconds) allowed when comparing 153ebfedea0SLionel Sambuctimes. 154ebfedea0SLionel SambucDefault is 300 seconds (five minutes). 155ebfedea0SLionel Sambuc.It Li kdc_timeout = Va time 156ebfedea0SLionel SambucMaximum time to wait for a reply from the kdc, default is 3 seconds. 157ebfedea0SLionel Sambuc.It Li v4_name_convert 158ebfedea0SLionel Sambuc.It Li v4_instance_resolve 159ebfedea0SLionel SambucThese are described in the 160ebfedea0SLionel Sambuc.Xr krb5_425_conv_principal 3 161ebfedea0SLionel Sambucmanual page. 162ebfedea0SLionel Sambuc.It Li capath = { 163ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 164ebfedea0SLionel Sambuc.It Va destination-realm Li = Va next-hop-realm 165ebfedea0SLionel Sambuc.It ... 166ebfedea0SLionel Sambuc.It Li } 167ebfedea0SLionel Sambuc.El 168ebfedea0SLionel SambucThis is deprecated, see the 169ebfedea0SLionel Sambuc.Li capaths 170ebfedea0SLionel Sambucsection below. 171ebfedea0SLionel Sambuc.It Li default_cc_type = Va cctype 172ebfedea0SLionel Sambucsets the default credentials type. 173ebfedea0SLionel Sambuc.It Li default_cc_name = Va ccname 174ebfedea0SLionel Sambucthe default credentials cache name. 175ebfedea0SLionel SambucIf you want to change the type only use 176ebfedea0SLionel Sambuc.Li default_cc_type . 177ebfedea0SLionel SambucThe string can contain variables that are expanded on runtime. 178ebfedea0SLionel SambucOnly support variable now is 179ebfedea0SLionel Sambuc.Li %{uid} 180ebfedea0SLionel Sambucthat expands to the current user id. 181ebfedea0SLionel Sambuc.It Li default_etypes = Va etypes ... 182*0a6a1f1dSLionel SambucA list of default encryption types to use. (Default: all enctypes if 183*0a6a1f1dSLionel Sambucallow_weak_crypto = TRUE, else all enctypes except single DES enctypes.) 184*0a6a1f1dSLionel Sambuc.It Li default_as_etypes = Va etypes ... 185*0a6a1f1dSLionel SambucA list of default encryption types to use in AS requests. (Default: the 186*0a6a1f1dSLionel Sambucvalue of default_etypes.) 187*0a6a1f1dSLionel Sambuc.It Li default_tgs_etypes = Va etypes ... 188*0a6a1f1dSLionel SambucA list of default encryption types to use in TGS requests. (Default: 189*0a6a1f1dSLionel Sambucthe value of default_etypes.) 190ebfedea0SLionel Sambuc.It Li default_etypes_des = Va etypes ... 191ebfedea0SLionel SambucA list of default encryption types to use when requesting a DES credential. 192ebfedea0SLionel Sambuc.It Li default_keytab_name = Va keytab 193ebfedea0SLionel SambucThe keytab to use if no other is specified, default is 194ebfedea0SLionel Sambuc.Dq FILE:/etc/krb5.keytab . 195ebfedea0SLionel Sambuc.It Li dns_lookup_kdc = Va boolean 196ebfedea0SLionel SambucUse DNS SRV records to lookup KDC services location. 197ebfedea0SLionel Sambuc.It Li dns_lookup_realm = Va boolean 198ebfedea0SLionel SambucUse DNS TXT records to lookup domain to realm mappings. 199ebfedea0SLionel Sambuc.It Li kdc_timesync = Va boolean 200ebfedea0SLionel SambucTry to keep track of the time differential between the local machine 201ebfedea0SLionel Sambucand the KDC, and then compensate for that when issuing requests. 202ebfedea0SLionel Sambuc.It Li max_retries = Va number 203ebfedea0SLionel SambucThe max number of times to try to contact each KDC. 204ebfedea0SLionel Sambuc.It Li large_msg_size = Va number 205ebfedea0SLionel SambucThe threshold where protocols with tiny maximum message sizes are not 206ebfedea0SLionel Sambucconsidered usable to send messages to the KDC. 207ebfedea0SLionel Sambuc.It Li ticket_lifetime = Va time 208ebfedea0SLionel SambucDefault ticket lifetime. 209ebfedea0SLionel Sambuc.It Li renew_lifetime = Va time 210ebfedea0SLionel SambucDefault renewable ticket lifetime. 211ebfedea0SLionel Sambuc.It Li forwardable = Va boolean 212ebfedea0SLionel SambucWhen obtaining initial credentials, make the credentials forwardable. 213ebfedea0SLionel SambucThis option is also valid in the [realms] section. 214ebfedea0SLionel Sambuc.It Li proxiable = Va boolean 215ebfedea0SLionel SambucWhen obtaining initial credentials, make the credentials proxiable. 216ebfedea0SLionel SambucThis option is also valid in the [realms] section. 217ebfedea0SLionel Sambuc.It Li verify_ap_req_nofail = Va boolean 218ebfedea0SLionel SambucIf enabled, failure to verify credentials against a local key is a 219ebfedea0SLionel Sambucfatal error. 220ebfedea0SLionel SambucThe application has to be able to read the corresponding service key 221ebfedea0SLionel Sambucfor this to work. 222ebfedea0SLionel SambucSome applications, like 223ebfedea0SLionel Sambuc.Xr su 1 , 224ebfedea0SLionel Sambucenable this option unconditionally. 225ebfedea0SLionel Sambuc.It Li warn_pwexpire = Va time 226ebfedea0SLionel SambucHow soon to warn for expiring password. 227ebfedea0SLionel SambucDefault is seven days. 228ebfedea0SLionel Sambuc.It Li http_proxy = Va proxy-spec 229ebfedea0SLionel SambucA HTTP-proxy to use when talking to the KDC via HTTP. 230ebfedea0SLionel Sambuc.It Li dns_proxy = Va proxy-spec 231ebfedea0SLionel SambucEnable using DNS via HTTP. 232ebfedea0SLionel Sambuc.It Li extra_addresses = Va address ... 233ebfedea0SLionel SambucA list of addresses to get tickets for along with all local addresses. 234ebfedea0SLionel Sambuc.It Li time_format = Va string 235ebfedea0SLionel SambucHow to print time strings in logs, this string is passed to 236ebfedea0SLionel Sambuc.Xr strftime 3 . 237ebfedea0SLionel Sambuc.It Li date_format = Va string 238ebfedea0SLionel SambucHow to print date strings in logs, this string is passed to 239ebfedea0SLionel Sambuc.Xr strftime 3 . 240ebfedea0SLionel Sambuc.It Li log_utc = Va boolean 241ebfedea0SLionel SambucWrite log-entries using UTC instead of your local time zone. 242ebfedea0SLionel Sambuc.It Li scan_interfaces = Va boolean 243ebfedea0SLionel SambucScan all network interfaces for addresses, as opposed to simply using 244ebfedea0SLionel Sambucthe address associated with the system's host name. 245ebfedea0SLionel Sambuc.It Li fcache_version = Va int 246ebfedea0SLionel SambucUse file credential cache format version specified. 247ebfedea0SLionel Sambuc.It Li krb4_get_tickets = Va boolean 248ebfedea0SLionel SambucAlso get Kerberos 4 tickets in 249ebfedea0SLionel Sambuc.Nm kinit , 250ebfedea0SLionel Sambuc.Nm login , 251ebfedea0SLionel Sambucand other programs. 252ebfedea0SLionel SambucThis option is also valid in the [realms] section. 253ebfedea0SLionel Sambuc.It Li fcc-mit-ticketflags = Va boolean 254ebfedea0SLionel SambucUse MIT compatible format for file credential cache. 255ebfedea0SLionel SambucIt's the field ticketflags that is stored in reverse bit order for 256ebfedea0SLionel Sambucolder than Heimdal 0.7. 257ebfedea0SLionel SambucSetting this flag to 258ebfedea0SLionel Sambuc.Dv TRUE 259ebfedea0SLionel Sambucmake it store the MIT way, this is default for Heimdal 0.7. 260ebfedea0SLionel Sambuc.It Li check-rd-req-server 261ebfedea0SLionel SambucIf set to "ignore", the framework will ignore any the server input to 262ebfedea0SLionel Sambuc.Xr krb5_rd_req 3, 263ebfedea0SLionel Sambucthis is very useful when the GSS-API server input the 264ebfedea0SLionel Sambucwrong server name into the gss_accept_sec_context call. 265ebfedea0SLionel Sambuc.El 266ebfedea0SLionel Sambuc.It Li [domain_realm] 267ebfedea0SLionel SambucThis is a list of mappings from DNS domain to Kerberos realm. 268ebfedea0SLionel SambucEach binding in this section looks like: 269ebfedea0SLionel Sambuc.Pp 270ebfedea0SLionel Sambuc.Dl domain = realm 271ebfedea0SLionel Sambuc.Pp 272ebfedea0SLionel SambucThe domain can be either a full name of a host or a trailing 273ebfedea0SLionel Sambuccomponent, in the latter case the domain-string should start with a 274ebfedea0SLionel Sambucperiod. 275ebfedea0SLionel SambucThe trailing component only matches hosts that are in the same domain, ie 276ebfedea0SLionel Sambuc.Dq .example.com 277ebfedea0SLionel Sambucmatches 278ebfedea0SLionel Sambuc.Dq foo.example.com , 279ebfedea0SLionel Sambucbut not 280ebfedea0SLionel Sambuc.Dq foo.test.example.com . 281ebfedea0SLionel Sambuc.Pp 282ebfedea0SLionel SambucThe realm may be the token `dns_locate', in which case the actual 283ebfedea0SLionel Sambucrealm will be determined using DNS (independently of the setting 284ebfedea0SLionel Sambucof the `dns_lookup_realm' option). 285ebfedea0SLionel Sambuc.It Li [realms] 286ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 287ebfedea0SLionel Sambuc.It Va REALM Li = { 288ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 289ebfedea0SLionel Sambuc.It Li kdc = Va [service/]host[:port] 290ebfedea0SLionel SambucSpecifies a list of kdcs for this realm. 291ebfedea0SLionel SambucIf the optional 292ebfedea0SLionel Sambuc.Va port 293ebfedea0SLionel Sambucis absent, the 294ebfedea0SLionel Sambucdefault value for the 295ebfedea0SLionel Sambuc.Dq kerberos/udp 296ebfedea0SLionel Sambuc.Dq kerberos/tcp , 297ebfedea0SLionel Sambucand 298ebfedea0SLionel Sambuc.Dq http/tcp 299ebfedea0SLionel Sambucport (depending on service) will be used. 300ebfedea0SLionel SambucThe kdcs will be used in the order that they are specified. 301ebfedea0SLionel Sambuc.Pp 302ebfedea0SLionel SambucThe optional 303ebfedea0SLionel Sambuc.Va service 304ebfedea0SLionel Sambucspecifies over what medium the kdc should be 305ebfedea0SLionel Sambuccontacted. 306ebfedea0SLionel SambucPossible services are 307ebfedea0SLionel Sambuc.Dq udp , 308ebfedea0SLionel Sambuc.Dq tcp , 309ebfedea0SLionel Sambucand 310ebfedea0SLionel Sambuc.Dq http . 311ebfedea0SLionel SambucHttp can also be written as 312ebfedea0SLionel Sambuc.Dq http:// . 313ebfedea0SLionel SambucDefault service is 314ebfedea0SLionel Sambuc.Dq udp 315ebfedea0SLionel Sambucand 316ebfedea0SLionel Sambuc.Dq tcp . 317ebfedea0SLionel Sambuc.It Li admin_server = Va host[:port] 318ebfedea0SLionel SambucSpecifies the admin server for this realm, where all the modifications 319ebfedea0SLionel Sambucto the database are performed. 320ebfedea0SLionel Sambuc.It Li kpasswd_server = Va host[:port] 321ebfedea0SLionel SambucPoints to the server where all the password changes are performed. 322ebfedea0SLionel SambucIf there is no such entry, the kpasswd port on the admin_server host 323ebfedea0SLionel Sambucwill be tried. 324ebfedea0SLionel Sambuc.It Li krb524_server = Va host[:port] 325ebfedea0SLionel SambucPoints to the server that does 524 conversions. 326ebfedea0SLionel SambucIf it is not mentioned, the krb524 port on the kdcs will be tried. 327ebfedea0SLionel Sambuc.It Li v4_instance_convert 328ebfedea0SLionel Sambuc.It Li v4_name_convert 329ebfedea0SLionel Sambuc.It Li default_domain 330ebfedea0SLionel SambucSee 331ebfedea0SLionel Sambuc.Xr krb5_425_conv_principal 3 . 332ebfedea0SLionel Sambuc.It Li tgs_require_subkey 333ebfedea0SLionel Sambuca boolan variable that defaults to false. 334ebfedea0SLionel SambucOld DCE secd (pre 1.1) might need this to be true. 335ebfedea0SLionel Sambuc.El 336ebfedea0SLionel Sambuc.It Li } 337ebfedea0SLionel Sambuc.El 338ebfedea0SLionel Sambuc.It Li [capaths] 339ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 340ebfedea0SLionel Sambuc.It Va client-realm Li = { 341ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 342ebfedea0SLionel Sambuc.It Va server-realm Li = Va hop-realm ... 343ebfedea0SLionel SambucThis serves two purposes. First the first listed 344ebfedea0SLionel Sambuc.Va hop-realm 345ebfedea0SLionel Sambuctells a client which realm it should contact in order to ultimately 346ebfedea0SLionel Sambucobtain credentials for a service in the 347ebfedea0SLionel Sambuc.Va server-realm . 348ebfedea0SLionel SambucSecondly, it tells the KDC (and other servers) which realms are 349ebfedea0SLionel Sambucallowed in a multi-hop traversal from 350ebfedea0SLionel Sambuc.Va client-realm 351ebfedea0SLionel Sambucto 352ebfedea0SLionel Sambuc.Va server-realm . 353ebfedea0SLionel SambucExcept for the client case, the order of the realms are not important. 354ebfedea0SLionel Sambuc.El 355ebfedea0SLionel Sambuc.It Va } 356ebfedea0SLionel Sambuc.El 357ebfedea0SLionel Sambuc.It Li [logging] 358ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 359ebfedea0SLionel Sambuc.It Va entity Li = Va destination 360ebfedea0SLionel SambucSpecifies that 361ebfedea0SLionel Sambuc.Va entity 362ebfedea0SLionel Sambucshould use the specified 363ebfedea0SLionel Sambuc.Li destination 364ebfedea0SLionel Sambucfor logging. 365ebfedea0SLionel SambucSee the 366ebfedea0SLionel Sambuc.Xr krb5_openlog 3 367ebfedea0SLionel Sambucmanual page for a list of defined destinations. 368ebfedea0SLionel Sambuc.El 369ebfedea0SLionel Sambuc.It Li [kdc] 370ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 371ebfedea0SLionel Sambuc.It Li database Li = { 372ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 373ebfedea0SLionel Sambuc.It Li dbname Li = Va DATABASENAME 374ebfedea0SLionel SambucUse this database for this realm. 375ebfedea0SLionel SambucSee the info documetation how to configure different database backends. 376ebfedea0SLionel Sambuc.It Li realm Li = Va REALM 377ebfedea0SLionel SambucSpecifies the realm that will be stored in this database. 378ebfedea0SLionel SambucIt realm isn't set, it will used as the default database, there can 379ebfedea0SLionel Sambuconly be one entry that doesn't have a 380ebfedea0SLionel Sambuc.Li realm 381ebfedea0SLionel Sambucstanza. 382ebfedea0SLionel Sambuc.It Li mkey_file Li = Pa FILENAME 383ebfedea0SLionel SambucUse this keytab file for the master key of this database. 384ebfedea0SLionel SambucIf not specified 385ebfedea0SLionel Sambuc.Va DATABASENAME Ns .mkey 386ebfedea0SLionel Sambucwill be used. 387ebfedea0SLionel Sambuc.It Li acl_file Li = PA FILENAME 388ebfedea0SLionel SambucUse this file for the ACL list of this database. 389ebfedea0SLionel Sambuc.It Li log_file Li = Pa FILENAME 390ebfedea0SLionel SambucUse this file as the log of changes performed to the database. 391ebfedea0SLionel SambucThis file is used by 392ebfedea0SLionel Sambuc.Nm ipropd-master 393ebfedea0SLionel Sambucfor propagating changes to slaves. 394ebfedea0SLionel Sambuc.El 395ebfedea0SLionel Sambuc.It Li } 396ebfedea0SLionel Sambuc.It Li max-request = Va SIZE 397ebfedea0SLionel SambucMaximum size of a kdc request. 398ebfedea0SLionel Sambuc.It Li require-preauth = Va BOOL 399ebfedea0SLionel SambucIf set pre-authentication is required. 400ebfedea0SLionel SambucSince krb4 requests are not pre-authenticated they will be rejected. 401ebfedea0SLionel Sambuc.It Li ports = Va "list of ports" 402ebfedea0SLionel SambucList of ports the kdc should listen to. 403ebfedea0SLionel Sambuc.It Li addresses = Va "list of interfaces" 404ebfedea0SLionel SambucList of addresses the kdc should bind to. 405ebfedea0SLionel Sambuc.It Li enable-kerberos4 = Va BOOL 406ebfedea0SLionel SambucTurn on Kerberos 4 support. 407ebfedea0SLionel Sambuc.It Li v4-realm = Va REALM 408ebfedea0SLionel SambucTo what realm v4 requests should be mapped. 409ebfedea0SLionel Sambuc.It Li enable-524 = Va BOOL 410ebfedea0SLionel SambucShould the Kerberos 524 converting facility be turned on. 411ebfedea0SLionel SambucDefault is the same as 412ebfedea0SLionel Sambuc.Va enable-kerberos4 . 413ebfedea0SLionel Sambuc.It Li enable-http = Va BOOL 414ebfedea0SLionel SambucShould the kdc answer kdc-requests over http. 415ebfedea0SLionel Sambuc.It Li enable-kaserver = Va BOOL 416ebfedea0SLionel SambucIf this kdc should emulate the AFS kaserver. 417*0a6a1f1dSLionel Sambuc.It Li tgt-use-strongest-session-key = Va BOOL 418*0a6a1f1dSLionel SambucIf this is TRUE then the KDC will prefer the strongest key from the 419*0a6a1f1dSLionel Sambucclient's AS-REQ or TGS-REQ enctype list for the ticket session key that 420*0a6a1f1dSLionel Sambucis supported by the KDC and the target principal when the target 421*0a6a1f1dSLionel Sambucprincipal is a krbtgt principal. Else it will prefer the first key from 422*0a6a1f1dSLionel Sambucthe client's AS-REQ enctype list that is also supported by the KDC and 423*0a6a1f1dSLionel Sambucthe target principal. Defaults to FALSE. 424*0a6a1f1dSLionel Sambuc.It Li svc-use-strongest-session-key = Va BOOL 425*0a6a1f1dSLionel SambucLike tgt-use-strongest-session-key, but applies to the session key 426*0a6a1f1dSLionel Sambucenctype of tickets for services other than krbtgt principals. Defaults 427*0a6a1f1dSLionel Sambucto FALSE. 428*0a6a1f1dSLionel Sambuc.It Li preauth-use-strongest-session-key = Va BOOL 429*0a6a1f1dSLionel SambucIf TRUE then select the strongest possible enctype from the client's 430*0a6a1f1dSLionel SambucAS-REQ for PA-ETYPE-INFO2 (i.e., for password-based pre-authentication). 431*0a6a1f1dSLionel SambucElse pick the first supported enctype from the client's AS-REQ. Defaults 432*0a6a1f1dSLionel Sambucto FALSE. 433*0a6a1f1dSLionel Sambuc.It Li use-strongest-server-key = Va BOOL 434*0a6a1f1dSLionel SambucIf TRUE then the KDC picks, for the ticket encrypted part's key, the 435*0a6a1f1dSLionel Sambucfirst supported enctype from the target service principal's hdb entry's 436*0a6a1f1dSLionel Sambuccurrent keyset. Else the KDC picks the first supported enctype from the 437*0a6a1f1dSLionel Sambuctarget service principal's hdb entry's current keyset. Defaults to TRUE. 438ebfedea0SLionel Sambuc.It Li check-ticket-addresses = Va BOOL 439ebfedea0SLionel SambucVerify the addresses in the tickets used in tgs requests. 440ebfedea0SLionel Sambuc.\" XXX 441ebfedea0SLionel Sambuc.It Li allow-null-ticket-addresses = Va BOOL 442ebfedea0SLionel SambucAllow address-less tickets. 443ebfedea0SLionel Sambuc.\" XXX 444ebfedea0SLionel Sambuc.It Li allow-anonymous = Va BOOL 445ebfedea0SLionel SambucIf the kdc is allowed to hand out anonymous tickets. 446ebfedea0SLionel Sambuc.It Li encode_as_rep_as_tgs_rep = Va BOOL 447ebfedea0SLionel SambucEncode as-rep as tgs-rep tobe compatible with mistakes older DCE secd did. 448ebfedea0SLionel Sambuc.\" XXX 449ebfedea0SLionel Sambuc.It Li kdc_warn_pwexpire = Va TIME 450ebfedea0SLionel SambucThe time before expiration that the user should be warned that her 451ebfedea0SLionel Sambucpassword is about to expire. 452ebfedea0SLionel Sambuc.It Li logging = Va Logging 453ebfedea0SLionel SambucWhat type of logging the kdc should use, see also [logging]/kdc. 454ebfedea0SLionel Sambuc.It Li use_2b = { 455ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 456ebfedea0SLionel Sambuc.It Va principal Li = Va BOOL 457ebfedea0SLionel Sambucboolean value if the 524 daemon should return AFS 2b tokens for 458ebfedea0SLionel Sambuc.Fa principal . 459ebfedea0SLionel Sambuc.It ... 460ebfedea0SLionel Sambuc.El 461ebfedea0SLionel Sambuc.It Li } 462ebfedea0SLionel Sambuc.It Li hdb-ldap-structural-object Va structural object 463ebfedea0SLionel SambucIf the LDAP backend is used for storing principals, this is the 464ebfedea0SLionel Sambucstructural object that will be used when creating and when reading 465ebfedea0SLionel Sambucobjects. 466ebfedea0SLionel SambucThe default value is account . 467ebfedea0SLionel Sambuc.It Li hdb-ldap-create-base Va creation dn 468ebfedea0SLionel Sambucis the dn that will be appended to the principal when creating entries. 469ebfedea0SLionel SambucDefault value is the search dn. 470ebfedea0SLionel Sambuc.It Li enable-digest = Va BOOL 471ebfedea0SLionel SambucShould the kdc answer digest requests. The default is FALSE. 472ebfedea0SLionel Sambuc.It Li digests_allowed = Va list of digests 473ebfedea0SLionel SambucSpecifies the digests the kdc will reply to. The default is 474ebfedea0SLionel Sambuc.Li ntlm-v2 . 475ebfedea0SLionel Sambuc.El 476ebfedea0SLionel Sambuc.It Li [kadmin] 477ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 478ebfedea0SLionel Sambuc.It Li require-preauth = Va BOOL 479ebfedea0SLionel SambucIf pre-authentication is required to talk to the kadmin server. 480ebfedea0SLionel Sambuc.It Li password_lifetime = Va time 481ebfedea0SLionel SambucIf a principal already have its password set for expiration, this is 482ebfedea0SLionel Sambucthe time it will be valid for after a change. 483ebfedea0SLionel Sambuc.It Li default_keys = Va keytypes... 484ebfedea0SLionel SambucFor each entry in 485ebfedea0SLionel Sambuc.Va default_keys 486ebfedea0SLionel Sambuctry to parse it as a sequence of 487ebfedea0SLionel Sambuc.Va etype:salttype:salt 488ebfedea0SLionel Sambucsyntax of this if something like: 489ebfedea0SLionel Sambuc.Pp 490ebfedea0SLionel Sambuc[(des|des3|etype):](pw-salt|afs3-salt)[:string] 491ebfedea0SLionel Sambuc.Pp 492ebfedea0SLionel SambucIf 493ebfedea0SLionel Sambuc.Ar etype 494ebfedea0SLionel Sambucis omitted it means everything, and if string is omitted it means the 495ebfedea0SLionel Sambucdefault salt string (for that principal and encryption type). 496ebfedea0SLionel SambucAdditional special values of keytypes are: 497ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 498ebfedea0SLionel Sambuc.It Li v5 499ebfedea0SLionel SambucThe Kerberos 5 salt 500ebfedea0SLionel Sambuc.Va pw-salt 501ebfedea0SLionel Sambuc.It Li v4 502ebfedea0SLionel SambucThe Kerberos 4 salt 503ebfedea0SLionel Sambuc.Va des:pw-salt: 504ebfedea0SLionel Sambuc.El 505ebfedea0SLionel Sambuc.It Li use_v4_salt = Va BOOL 506ebfedea0SLionel SambucWhen true, this is the same as 507ebfedea0SLionel Sambuc.Pp 508ebfedea0SLionel Sambuc.Va default_keys = Va des3:pw-salt Va v4 509ebfedea0SLionel Sambuc.Pp 510ebfedea0SLionel Sambucand is only left for backwards compatibility. 511ebfedea0SLionel Sambuc.El 512ebfedea0SLionel Sambuc.It Li [password_quality] 513ebfedea0SLionel SambucCheck the Password quality assurance in the info documentation for 514ebfedea0SLionel Sambucmore information. 515ebfedea0SLionel Sambuc.Bl -tag -width "xxx" -offset indent 516ebfedea0SLionel Sambuc.It Li check_library = Va library-name 517ebfedea0SLionel SambucLibrary name that contains the password check_function 518ebfedea0SLionel Sambuc.It Li check_function = Va function-name 519ebfedea0SLionel SambucFunction name for checking passwords in check_library 520ebfedea0SLionel Sambuc.It Li policy_libraries = Va library1 ... libraryN 521ebfedea0SLionel SambucList of libraries that can do password policy checks 522ebfedea0SLionel Sambuc.It Li policies = Va policy1 ... policyN 523ebfedea0SLionel SambucList of policy names to apply to the password. Builtin policies are 524ebfedea0SLionel Sambucamong other minimum-length, character-class, external-check. 525ebfedea0SLionel Sambuc.El 526ebfedea0SLionel Sambuc.El 527ebfedea0SLionel Sambuc.Sh ENVIRONMENT 528ebfedea0SLionel Sambuc.Ev KRB5_CONFIG 529ebfedea0SLionel Sambucpoints to the configuration file to read. 530ebfedea0SLionel Sambuc.Sh FILES 531ebfedea0SLionel Sambuc.Bl -tag -width "/etc/krb5.conf" 532ebfedea0SLionel Sambuc.It Pa /etc/krb5.conf 533ebfedea0SLionel Sambucconfiguration file for Kerberos 5. 534ebfedea0SLionel Sambuc.El 535ebfedea0SLionel Sambuc.Sh EXAMPLES 536ebfedea0SLionel Sambuc.Bd -literal -offset indent 537ebfedea0SLionel Sambuc[libdefaults] 538ebfedea0SLionel Sambuc default_realm = FOO.SE 539ebfedea0SLionel Sambuc[domain_realm] 540ebfedea0SLionel Sambuc .foo.se = FOO.SE 541ebfedea0SLionel Sambuc .bar.se = FOO.SE 542ebfedea0SLionel Sambuc[realms] 543ebfedea0SLionel Sambuc FOO.SE = { 544ebfedea0SLionel Sambuc kdc = kerberos.foo.se 545ebfedea0SLionel Sambuc v4_name_convert = { 546ebfedea0SLionel Sambuc rcmd = host 547ebfedea0SLionel Sambuc } 548ebfedea0SLionel Sambuc v4_instance_convert = { 549ebfedea0SLionel Sambuc xyz = xyz.bar.se 550ebfedea0SLionel Sambuc } 551ebfedea0SLionel Sambuc default_domain = foo.se 552ebfedea0SLionel Sambuc } 553ebfedea0SLionel Sambuc[logging] 554ebfedea0SLionel Sambuc kdc = FILE:/var/heimdal/kdc.log 555ebfedea0SLionel Sambuc kdc = SYSLOG:INFO 556ebfedea0SLionel Sambuc default = SYSLOG:INFO:USER 557ebfedea0SLionel Sambuc.Ed 558ebfedea0SLionel Sambuc.Sh DIAGNOSTICS 559ebfedea0SLionel SambucSince 560ebfedea0SLionel Sambuc.Nm 561ebfedea0SLionel Sambucis read and parsed by the krb5 library, there is not a lot of 562ebfedea0SLionel Sambucopportunities for programs to report parsing errors in any useful 563ebfedea0SLionel Sambucformat. 564ebfedea0SLionel SambucTo help overcome this problem, there is a program 565ebfedea0SLionel Sambuc.Nm verify_krb5_conf 566ebfedea0SLionel Sambucthat reads 567ebfedea0SLionel Sambuc.Nm 568ebfedea0SLionel Sambucand tries to emit useful diagnostics from parsing errors. 569ebfedea0SLionel SambucNote that this program does not have any way of knowing what options 570ebfedea0SLionel Sambucare actually used and thus cannot warn about unknown or misspelled 571ebfedea0SLionel Sambucones. 572ebfedea0SLionel Sambuc.Sh SEE ALSO 573ebfedea0SLionel Sambuc.Xr kinit 1 , 574ebfedea0SLionel Sambuc.Xr krb5_425_conv_principal 3 , 575ebfedea0SLionel Sambuc.Xr krb5_openlog 3 , 576ebfedea0SLionel Sambuc.Xr strftime 3 , 577ebfedea0SLionel Sambuc.Xr verify_krb5_conf 8 578