1ae771770SStanislav Sedov.\" Copyright (c) 1999 - 2005 Kungliga Tekniska Högskolan 2bbd80c28SJacques Vidrine.\" (Royal Institute of Technology, Stockholm, Sweden). 3bbd80c28SJacques Vidrine.\" All rights reserved. 4bbd80c28SJacques Vidrine.\" 5bbd80c28SJacques Vidrine.\" Redistribution and use in source and binary forms, with or without 6bbd80c28SJacques Vidrine.\" modification, are permitted provided that the following conditions 7bbd80c28SJacques Vidrine.\" are met: 8bbd80c28SJacques Vidrine.\" 9bbd80c28SJacques Vidrine.\" 1. Redistributions of source code must retain the above copyright 10bbd80c28SJacques Vidrine.\" notice, this list of conditions and the following disclaimer. 11bbd80c28SJacques Vidrine.\" 12bbd80c28SJacques Vidrine.\" 2. Redistributions in binary form must reproduce the above copyright 13bbd80c28SJacques Vidrine.\" notice, this list of conditions and the following disclaimer in the 14bbd80c28SJacques Vidrine.\" documentation and/or other materials provided with the distribution. 15bbd80c28SJacques Vidrine.\" 16bbd80c28SJacques Vidrine.\" 3. Neither the name of the Institute nor the names of its contributors 17bbd80c28SJacques Vidrine.\" may be used to endorse or promote products derived from this software 18bbd80c28SJacques Vidrine.\" without specific prior written permission. 19bbd80c28SJacques Vidrine.\" 20bbd80c28SJacques Vidrine.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 21bbd80c28SJacques Vidrine.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22bbd80c28SJacques Vidrine.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23bbd80c28SJacques Vidrine.\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 24bbd80c28SJacques Vidrine.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25bbd80c28SJacques Vidrine.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26bbd80c28SJacques Vidrine.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27bbd80c28SJacques Vidrine.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28bbd80c28SJacques Vidrine.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29bbd80c28SJacques Vidrine.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30bbd80c28SJacques Vidrine.\" SUCH DAMAGE. 31bbd80c28SJacques Vidrine.\" 32ae771770SStanislav Sedov.\" $Id$ 33b528cefcSMark Murray.\" 34c19800e8SDoug Rabson.Dd May 4, 2005 35b528cefcSMark Murray.Dt KRB5.CONF 5 36b528cefcSMark Murray.Os HEIMDAL 37b528cefcSMark Murray.Sh NAME 381c43270aSJacques Vidrine.Nm krb5.conf 3945524cd7SAssar Westerlund.Nd configuration file for Kerberos 5 401c43270aSJacques Vidrine.Sh SYNOPSIS 411c43270aSJacques Vidrine.In krb5.h 42b528cefcSMark Murray.Sh DESCRIPTION 43b528cefcSMark MurrayThe 44b528cefcSMark Murray.Nm 45b528cefcSMark Murrayfile specifies several configuration parameters for the Kerberos 5 46b528cefcSMark Murraylibrary, as well as for some programs. 47b528cefcSMark Murray.Pp 48b528cefcSMark MurrayThe file consists of one or more sections, containing a number of 49bbd80c28SJacques Vidrinebindings. 50bbd80c28SJacques VidrineThe value of each binding can be either a string or a list of other 51bbd80c28SJacques Vidrinebindings. 52bbd80c28SJacques VidrineThe grammar looks like: 53b528cefcSMark Murray.Bd -literal -offset indent 54b528cefcSMark Murrayfile: 55b528cefcSMark Murray /* empty */ 56b528cefcSMark Murray sections 57b528cefcSMark Murray 58b528cefcSMark Murraysections: 59b528cefcSMark Murray section sections 60b528cefcSMark Murray section 61b528cefcSMark Murray 62b528cefcSMark Murraysection: 63b528cefcSMark Murray '[' section_name ']' bindings 64b528cefcSMark Murray 65b528cefcSMark Murraysection_name: 66b528cefcSMark Murray STRING 67b528cefcSMark Murray 68b528cefcSMark Murraybindings: 69b528cefcSMark Murray binding bindings 70b528cefcSMark Murray binding 71b528cefcSMark Murray 72b528cefcSMark Murraybinding: 73b528cefcSMark Murray name '=' STRING 74b528cefcSMark Murray name '=' '{' bindings '}' 75b528cefcSMark Murray 76b528cefcSMark Murrayname: 77b528cefcSMark Murray STRING 78b528cefcSMark Murray 79b528cefcSMark Murray.Ed 80b528cefcSMark Murray.Li STRINGs 81b528cefcSMark Murrayconsists of one or more non-whitespace characters. 82bbd80c28SJacques Vidrine.Pp 83bbd80c28SJacques VidrineSTRINGs that are specified later in this man-page uses the following 84bbd80c28SJacques Vidrinenotation. 85bbd80c28SJacques Vidrine.Bl -tag -width "xxx" -offset indent 86bbd80c28SJacques Vidrine.It boolean 87bbd80c28SJacques Vidrinevalues can be either yes/true or no/false. 88bbd80c28SJacques Vidrine.It time 89bbd80c28SJacques Vidrinevalues can be a list of year, month, day, hour, min, second. 90bbd80c28SJacques VidrineExample: 1 month 2 days 30 min. 91c19800e8SDoug RabsonIf no unit is given, seconds is assumed. 92bbd80c28SJacques Vidrine.It etypes 93bbd80c28SJacques Vidrinevalid encryption types are: des-cbc-crc, des-cbc-md4, des-cbc-md5, 941c43270aSJacques Vidrinedes3-cbc-sha1, arcfour-hmac-md5, aes128-cts-hmac-sha1-96, and 951c43270aSJacques Vidrineaes256-cts-hmac-sha1-96 . 96bbd80c28SJacques Vidrine.It address 97bbd80c28SJacques Vidrinean address can be either a IPv4 or a IPv6 address. 98bbd80c28SJacques Vidrine.El 99bbd80c28SJacques Vidrine.Pp 100b528cefcSMark MurrayCurrently recognised sections and bindings are: 101b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent 102adb0ddaeSAssar Westerlund.It Li [appdefaults] 103adb0ddaeSAssar WesterlundSpecifies the default values to be used for Kerberos applications. 104adb0ddaeSAssar WesterlundYou can specify defaults per application, realm, or a combination of 105bbd80c28SJacques Vidrinethese. 106bbd80c28SJacques VidrineThe preference order is: 107adb0ddaeSAssar Westerlund.Bl -enum -compact 108adb0ddaeSAssar Westerlund.It 109adb0ddaeSAssar Westerlund.Va application Va realm Va option 110adb0ddaeSAssar Westerlund.It 111adb0ddaeSAssar Westerlund.Va application Va option 112adb0ddaeSAssar Westerlund.It 113adb0ddaeSAssar Westerlund.Va realm Va option 114adb0ddaeSAssar Westerlund.It 115adb0ddaeSAssar Westerlund.Va option 116adb0ddaeSAssar Westerlund.El 117adb0ddaeSAssar Westerlund.Pp 118adb0ddaeSAssar WesterlundThe supported options are: 119adb0ddaeSAssar Westerlund.Bl -tag -width "xxx" -offset indent 120adb0ddaeSAssar Westerlund.It Li forwardable = Va boolean 121adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials forwardable. 122adb0ddaeSAssar Westerlund.It Li proxiable = Va boolean 123adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials proxiable. 124adb0ddaeSAssar Westerlund.It Li no-addresses = Va boolean 125adb0ddaeSAssar WesterlundWhen obtaining initial credentials, request them for an empty set of 126adb0ddaeSAssar Westerlundaddresses, making the tickets valid from any address. 1274137ff4cSJacques Vidrine.It Li ticket_lifetime = Va time 128adb0ddaeSAssar WesterlundDefault ticket lifetime. 129adb0ddaeSAssar Westerlund.It Li renew_lifetime = Va time 130adb0ddaeSAssar WesterlundDefault renewable ticket lifetime. 1311c43270aSJacques Vidrine.It Li encrypt = Va boolean 1321c43270aSJacques VidrineUse encryption, when available. 1331c43270aSJacques Vidrine.It Li forward = Va boolean 1341c43270aSJacques VidrineForward credentials to remote host (for 1351c43270aSJacques Vidrine.Xr rsh 1 , 1361c43270aSJacques Vidrine.Xr telnet 1 , 1371c43270aSJacques Vidrineetc). 138adb0ddaeSAssar Westerlund.El 139b528cefcSMark Murray.It Li [libdefaults] 140b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent 141b528cefcSMark Murray.It Li default_realm = Va REALM 142b528cefcSMark MurrayDefault realm to use, this is also known as your 143b528cefcSMark Murray.Dq local realm . 144b528cefcSMark MurrayThe default is the result of 145b528cefcSMark Murray.Fn krb5_get_host_realm "local hostname" . 146ae771770SStanislav Sedov.It Li allow_weak_crypto = Va boolean 147ae771770SStanislav Sedovis weaks crypto algorithms allowed to be used, among others, DES is 148ae771770SStanislav Sedovconsidered weak. 149b528cefcSMark Murray.It Li clockskew = Va time 150b528cefcSMark MurrayMaximum time differential (in seconds) allowed when comparing 151bbd80c28SJacques Vidrinetimes. 152bbd80c28SJacques VidrineDefault is 300 seconds (five minutes). 153b528cefcSMark Murray.It Li kdc_timeout = Va time 154b528cefcSMark MurrayMaximum time to wait for a reply from the kdc, default is 3 seconds. 155c19800e8SDoug Rabson.It Li v4_name_convert 156c19800e8SDoug Rabson.It Li v4_instance_resolve 157bbd80c28SJacques VidrineThese are described in the 158b528cefcSMark Murray.Xr krb5_425_conv_principal 3 159b528cefcSMark Murraymanual page. 1605e9cd1aeSAssar Westerlund.It Li capath = { 1615e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent 1625e9cd1aeSAssar Westerlund.It Va destination-realm Li = Va next-hop-realm 1635e9cd1aeSAssar Westerlund.It ... 1645e9cd1aeSAssar Westerlund.It Li } 1651c43270aSJacques Vidrine.El 1661c43270aSJacques VidrineThis is deprecated, see the 1671c43270aSJacques Vidrine.Li capaths 1681c43270aSJacques Vidrinesection below. 169ae771770SStanislav Sedov.It Li default_cc_type = Va cctype 170ae771770SStanislav Sedovsets the default credentials type. 171c19800e8SDoug Rabson.It Li default_cc_name = Va ccname 172c19800e8SDoug Rabsonthe default credentials cache name. 173ae771770SStanislav SedovIf you want to change the type only use 174ae771770SStanislav Sedov.Li default_cc_type . 175c19800e8SDoug RabsonThe string can contain variables that are expanded on runtime. 176c19800e8SDoug RabsonOnly support variable now is 177c19800e8SDoug Rabson.Li %{uid} 178c19800e8SDoug Rabsonthat expands to the current user id. 179b528cefcSMark Murray.It Li default_etypes = Va etypes ... 180ae771770SStanislav SedovA list of default encryption types to use. (Default: all enctypes if 181ae771770SStanislav Sedovallow_weak_crypto = TRUE, else all enctypes except single DES enctypes.) 182ae771770SStanislav Sedov.It Li default_as_etypes = Va etypes ... 183ae771770SStanislav SedovA list of default encryption types to use in AS requests. (Default: the 184ae771770SStanislav Sedovvalue of default_etypes.) 185ae771770SStanislav Sedov.It Li default_tgs_etypes = Va etypes ... 186ae771770SStanislav SedovA list of default encryption types to use in TGS requests. (Default: 187ae771770SStanislav Sedovthe value of default_etypes.) 188b528cefcSMark Murray.It Li default_etypes_des = Va etypes ... 189bbd80c28SJacques VidrineA list of default encryption types to use when requesting a DES credential. 190b528cefcSMark Murray.It Li default_keytab_name = Va keytab 191bbd80c28SJacques VidrineThe keytab to use if no other is specified, default is 192b528cefcSMark Murray.Dq FILE:/etc/krb5.keytab . 1938373020dSJacques Vidrine.It Li dns_lookup_kdc = Va boolean 1948373020dSJacques VidrineUse DNS SRV records to lookup KDC services location. 1958373020dSJacques Vidrine.It Li dns_lookup_realm = Va boolean 1968373020dSJacques VidrineUse DNS TXT records to lookup domain to realm mappings. 197b528cefcSMark Murray.It Li kdc_timesync = Va boolean 198b528cefcSMark MurrayTry to keep track of the time differential between the local machine 199b528cefcSMark Murrayand the KDC, and then compensate for that when issuing requests. 200b528cefcSMark Murray.It Li max_retries = Va number 201b528cefcSMark MurrayThe max number of times to try to contact each KDC. 202c19800e8SDoug Rabson.It Li large_msg_size = Va number 203c19800e8SDoug RabsonThe threshold where protocols with tiny maximum message sizes are not 204c19800e8SDoug Rabsonconsidered usable to send messages to the KDC. 205b528cefcSMark Murray.It Li ticket_lifetime = Va time 206b528cefcSMark MurrayDefault ticket lifetime. 207b528cefcSMark Murray.It Li renew_lifetime = Va time 208b528cefcSMark MurrayDefault renewable ticket lifetime. 209adb0ddaeSAssar Westerlund.It Li forwardable = Va boolean 210adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials forwardable. 211adb0ddaeSAssar WesterlundThis option is also valid in the [realms] section. 212adb0ddaeSAssar Westerlund.It Li proxiable = Va boolean 213adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials proxiable. 214adb0ddaeSAssar WesterlundThis option is also valid in the [realms] section. 215b528cefcSMark Murray.It Li verify_ap_req_nofail = Va boolean 2168373020dSJacques VidrineIf enabled, failure to verify credentials against a local key is a 217bbd80c28SJacques Vidrinefatal error. 218bbd80c28SJacques VidrineThe application has to be able to read the corresponding service key 219bbd80c28SJacques Vidrinefor this to work. 220bbd80c28SJacques VidrineSome applications, like 2211c43270aSJacques Vidrine.Xr su 1 , 2228373020dSJacques Vidrineenable this option unconditionally. 223b528cefcSMark Murray.It Li warn_pwexpire = Va time 224bbd80c28SJacques VidrineHow soon to warn for expiring password. 225bbd80c28SJacques VidrineDefault is seven days. 226b528cefcSMark Murray.It Li http_proxy = Va proxy-spec 227b528cefcSMark MurrayA HTTP-proxy to use when talking to the KDC via HTTP. 228b528cefcSMark Murray.It Li dns_proxy = Va proxy-spec 229b528cefcSMark MurrayEnable using DNS via HTTP. 230b528cefcSMark Murray.It Li extra_addresses = Va address ... 231b528cefcSMark MurrayA list of addresses to get tickets for along with all local addresses. 232b528cefcSMark Murray.It Li time_format = Va string 233b528cefcSMark MurrayHow to print time strings in logs, this string is passed to 234b528cefcSMark Murray.Xr strftime 3 . 235adb0ddaeSAssar Westerlund.It Li date_format = Va string 236adb0ddaeSAssar WesterlundHow to print date strings in logs, this string is passed to 237adb0ddaeSAssar Westerlund.Xr strftime 3 . 238b528cefcSMark Murray.It Li log_utc = Va boolean 239b528cefcSMark MurrayWrite log-entries using UTC instead of your local time zone. 240adb0ddaeSAssar Westerlund.It Li scan_interfaces = Va boolean 241adb0ddaeSAssar WesterlundScan all network interfaces for addresses, as opposed to simply using 242adb0ddaeSAssar Westerlundthe address associated with the system's host name. 243adb0ddaeSAssar Westerlund.It Li fcache_version = Va int 244adb0ddaeSAssar WesterlundUse file credential cache format version specified. 245adb0ddaeSAssar Westerlund.It Li krb4_get_tickets = Va boolean 246adb0ddaeSAssar WesterlundAlso get Kerberos 4 tickets in 2474137ff4cSJacques Vidrine.Nm kinit , 2484137ff4cSJacques Vidrine.Nm login , 249adb0ddaeSAssar Westerlundand other programs. 250adb0ddaeSAssar WesterlundThis option is also valid in the [realms] section. 2511c43270aSJacques Vidrine.It Li fcc-mit-ticketflags = Va boolean 2521c43270aSJacques VidrineUse MIT compatible format for file credential cache. 2531c43270aSJacques VidrineIt's the field ticketflags that is stored in reverse bit order for 2541c43270aSJacques Vidrineolder than Heimdal 0.7. 2551c43270aSJacques VidrineSetting this flag to 2561c43270aSJacques Vidrine.Dv TRUE 2571c43270aSJacques Vidrinemake it store the MIT way, this is default for Heimdal 0.7. 258ae771770SStanislav Sedov.It Li check-rd-req-server 259ae771770SStanislav SedovIf set to "ignore", the framework will ignore any the server input to 260ae771770SStanislav Sedov.Xr krb5_rd_req 3 , 261ae771770SStanislav Sedovthis is very useful when the GSS-API server input the 262ae771770SStanislav Sedovwrong server name into the gss_accept_sec_context call. 263b528cefcSMark Murray.El 264b528cefcSMark Murray.It Li [domain_realm] 265bbd80c28SJacques VidrineThis is a list of mappings from DNS domain to Kerberos realm. 266bbd80c28SJacques VidrineEach binding in this section looks like: 267b528cefcSMark Murray.Pp 268b528cefcSMark Murray.Dl domain = realm 269b528cefcSMark Murray.Pp 270b528cefcSMark MurrayThe domain can be either a full name of a host or a trailing 271b528cefcSMark Murraycomponent, in the latter case the domain-string should start with a 272bbd80c28SJacques Vidrineperiod. 273c19800e8SDoug RabsonThe trailing component only matches hosts that are in the same domain, ie 274c19800e8SDoug Rabson.Dq .example.com 275c19800e8SDoug Rabsonmatches 276c19800e8SDoug Rabson.Dq foo.example.com , 277c19800e8SDoug Rabsonbut not 278c19800e8SDoug Rabson.Dq foo.test.example.com . 279c19800e8SDoug Rabson.Pp 2808373020dSJacques VidrineThe realm may be the token `dns_locate', in which case the actual 2818373020dSJacques Vidrinerealm will be determined using DNS (independently of the setting 2828373020dSJacques Vidrineof the `dns_lookup_realm' option). 283b528cefcSMark Murray.It Li [realms] 284b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent 285b528cefcSMark Murray.It Va REALM Li = { 286b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent 287bbd80c28SJacques Vidrine.It Li kdc = Va [service/]host[:port] 288bbd80c28SJacques VidrineSpecifies a list of kdcs for this realm. 289bbd80c28SJacques VidrineIf the optional 290bbd80c28SJacques Vidrine.Va port 291bbd80c28SJacques Vidrineis absent, the 292b528cefcSMark Murraydefault value for the 293b528cefcSMark Murray.Dq kerberos/udp 294bbd80c28SJacques Vidrine.Dq kerberos/tcp , 295bbd80c28SJacques Vidrineand 296bbd80c28SJacques Vidrine.Dq http/tcp 297bbd80c28SJacques Vidrineport (depending on service) will be used. 2985e9cd1aeSAssar WesterlundThe kdcs will be used in the order that they are specified. 299bbd80c28SJacques Vidrine.Pp 300bbd80c28SJacques VidrineThe optional 301bbd80c28SJacques Vidrine.Va service 302bbd80c28SJacques Vidrinespecifies over what medium the kdc should be 303bbd80c28SJacques Vidrinecontacted. 304bbd80c28SJacques VidrinePossible services are 305bbd80c28SJacques Vidrine.Dq udp , 306bbd80c28SJacques Vidrine.Dq tcp , 307bbd80c28SJacques Vidrineand 308bbd80c28SJacques Vidrine.Dq http . 309bbd80c28SJacques VidrineHttp can also be written as 310bbd80c28SJacques Vidrine.Dq http:// . 311bbd80c28SJacques VidrineDefault service is 312bbd80c28SJacques Vidrine.Dq udp 313bbd80c28SJacques Vidrineand 314bbd80c28SJacques Vidrine.Dq tcp . 3155e9cd1aeSAssar Westerlund.It Li admin_server = Va host[:port] 3165e9cd1aeSAssar WesterlundSpecifies the admin server for this realm, where all the modifications 317bbd80c28SJacques Vidrineto the database are performed. 3185e9cd1aeSAssar Westerlund.It Li kpasswd_server = Va host[:port] 319bbd80c28SJacques VidrinePoints to the server where all the password changes are performed. 3205e9cd1aeSAssar WesterlundIf there is no such entry, the kpasswd port on the admin_server host 3215e9cd1aeSAssar Westerlundwill be tried. 322bbd80c28SJacques Vidrine.It Li krb524_server = Va host[:port] 323bbd80c28SJacques VidrinePoints to the server that does 524 conversions. 324bbd80c28SJacques VidrineIf it is not mentioned, the krb524 port on the kdcs will be tried. 325b528cefcSMark Murray.It Li v4_instance_convert 326b528cefcSMark Murray.It Li v4_name_convert 327b528cefcSMark Murray.It Li default_domain 328b528cefcSMark MurraySee 329b528cefcSMark Murray.Xr krb5_425_conv_principal 3 . 3301c43270aSJacques Vidrine.It Li tgs_require_subkey 3311c43270aSJacques Vidrinea boolan variable that defaults to false. 3321c43270aSJacques VidrineOld DCE secd (pre 1.1) might need this to be true. 333b528cefcSMark Murray.El 334b528cefcSMark Murray.It Li } 335b528cefcSMark Murray.El 3361c43270aSJacques Vidrine.It Li [capaths] 3371c43270aSJacques Vidrine.Bl -tag -width "xxx" -offset indent 3381c43270aSJacques Vidrine.It Va client-realm Li = { 3391c43270aSJacques Vidrine.Bl -tag -width "xxx" -offset indent 3401c43270aSJacques Vidrine.It Va server-realm Li = Va hop-realm ... 3411c43270aSJacques VidrineThis serves two purposes. First the first listed 3421c43270aSJacques Vidrine.Va hop-realm 3431c43270aSJacques Vidrinetells a client which realm it should contact in order to ultimately 3441c43270aSJacques Vidrineobtain credentials for a service in the 3451c43270aSJacques Vidrine.Va server-realm . 3461c43270aSJacques VidrineSecondly, it tells the KDC (and other servers) which realms are 3471c43270aSJacques Vidrineallowed in a multi-hop traversal from 3481c43270aSJacques Vidrine.Va client-realm 3491c43270aSJacques Vidrineto 3501c43270aSJacques Vidrine.Va server-realm . 3511c43270aSJacques VidrineExcept for the client case, the order of the realms are not important. 3521c43270aSJacques Vidrine.El 3531c43270aSJacques Vidrine.It Va } 3541c43270aSJacques Vidrine.El 355b528cefcSMark Murray.It Li [logging] 356b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent 357b528cefcSMark Murray.It Va entity Li = Va destination 358b528cefcSMark MurraySpecifies that 359b528cefcSMark Murray.Va entity 360b528cefcSMark Murrayshould use the specified 361b528cefcSMark Murray.Li destination 362bbd80c28SJacques Vidrinefor logging. 363bbd80c28SJacques VidrineSee the 364b528cefcSMark Murray.Xr krb5_openlog 3 365b528cefcSMark Murraymanual page for a list of defined destinations. 366b528cefcSMark Murray.El 3675e9cd1aeSAssar Westerlund.It Li [kdc] 3685e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent 369c19800e8SDoug Rabson.It Li database Li = { 3705e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent 371c19800e8SDoug Rabson.It Li dbname Li = Va DATABASENAME 372bbd80c28SJacques VidrineUse this database for this realm. 373ae771770SStanislav SedovSee the info documetation how to configure different database backends. 374c19800e8SDoug Rabson.It Li realm Li = Va REALM 375bbd80c28SJacques VidrineSpecifies the realm that will be stored in this database. 376c19800e8SDoug RabsonIt realm isn't set, it will used as the default database, there can 377c19800e8SDoug Rabsononly be one entry that doesn't have a 378c19800e8SDoug Rabson.Li realm 379c19800e8SDoug Rabsonstanza. 380c19800e8SDoug Rabson.It Li mkey_file Li = Pa FILENAME 381bbd80c28SJacques VidrineUse this keytab file for the master key of this database. 3825e9cd1aeSAssar WesterlundIf not specified 3835e9cd1aeSAssar Westerlund.Va DATABASENAME Ns .mkey 3845e9cd1aeSAssar Westerlundwill be used. 385c19800e8SDoug Rabson.It Li acl_file Li = PA FILENAME 386bbd80c28SJacques VidrineUse this file for the ACL list of this database. 387c19800e8SDoug Rabson.It Li log_file Li = Pa FILENAME 388bbd80c28SJacques VidrineUse this file as the log of changes performed to the database. 389bbd80c28SJacques VidrineThis file is used by 3905e9cd1aeSAssar Westerlund.Nm ipropd-master 3915e9cd1aeSAssar Westerlundfor propagating changes to slaves. 392b528cefcSMark Murray.El 3935e9cd1aeSAssar Westerlund.It Li } 394c19800e8SDoug Rabson.It Li max-request = Va SIZE 3955e9cd1aeSAssar WesterlundMaximum size of a kdc request. 396c19800e8SDoug Rabson.It Li require-preauth = Va BOOL 397bbd80c28SJacques VidrineIf set pre-authentication is required. 398bbd80c28SJacques VidrineSince krb4 requests are not pre-authenticated they will be rejected. 399c19800e8SDoug Rabson.It Li ports = Va "list of ports" 400bbd80c28SJacques VidrineList of ports the kdc should listen to. 401c19800e8SDoug Rabson.It Li addresses = Va "list of interfaces" 402bbd80c28SJacques VidrineList of addresses the kdc should bind to. 403c19800e8SDoug Rabson.It Li enable-kerberos4 = Va BOOL 404bbd80c28SJacques VidrineTurn on Kerberos 4 support. 405c19800e8SDoug Rabson.It Li v4-realm = Va REALM 406bbd80c28SJacques VidrineTo what realm v4 requests should be mapped. 407c19800e8SDoug Rabson.It Li enable-524 = Va BOOL 408bbd80c28SJacques VidrineShould the Kerberos 524 converting facility be turned on. 409c19800e8SDoug RabsonDefault is the same as 4105e9cd1aeSAssar Westerlund.Va enable-kerberos4 . 411c19800e8SDoug Rabson.It Li enable-http = Va BOOL 412bbd80c28SJacques VidrineShould the kdc answer kdc-requests over http. 413c19800e8SDoug Rabson.It Li enable-kaserver = Va BOOL 414bbd80c28SJacques VidrineIf this kdc should emulate the AFS kaserver. 415*cf771f22SStanislav Sedov.It Li tgt-use-strongest-session-key = Va BOOL 416ae771770SStanislav SedovIf this is TRUE then the KDC will prefer the strongest key from the 417*cf771f22SStanislav Sedovclient's AS-REQ or TGS-REQ enctype list for the ticket session key that 418*cf771f22SStanislav Sedovis supported by the KDC and the target principal when the target 419*cf771f22SStanislav Sedovprincipal is a krbtgt principal. Else it will prefer the first key from 420*cf771f22SStanislav Sedovthe client's AS-REQ enctype list that is also supported by the KDC and 421*cf771f22SStanislav Sedovthe target principal. Defaults to TRUE. 422*cf771f22SStanislav Sedov.It Li svc-use-strongest-session-key = Va BOOL 423*cf771f22SStanislav SedovLike tgt-use-strongest-session-key, but applies to the session key 424*cf771f22SStanislav Sedovenctype of tickets for services other than krbtgt principals. Defaults 425*cf771f22SStanislav Sedovto TRUE. 426ae771770SStanislav Sedov.It Li preauth-use-strongest-session-key = Va BOOL 427*cf771f22SStanislav SedovIf TRUE then select the strongest possible enctype from the client's 428*cf771f22SStanislav SedovAS-REQ for PA-ETYPE-INFO2 (i.e., for password-based pre-authentication). 429*cf771f22SStanislav SedovElse pick the first supported enctype from the client's AS-REQ. Defaults 430*cf771f22SStanislav Sedovto TRUE. 431ae771770SStanislav Sedov.It Li use-strongest-server-key = Va BOOL 432ae771770SStanislav SedovIf TRUE then the KDC picks, for the ticket encrypted part's key, the 433ae771770SStanislav Sedovfirst supported enctype from the target service principal's hdb entry's 434ae771770SStanislav Sedovcurrent keyset. Else the KDC picks the first supported enctype from the 435ae771770SStanislav Sedovtarget service principal's hdb entry's current keyset. Defaults to TRUE. 436c19800e8SDoug Rabson.It Li check-ticket-addresses = Va BOOL 437c19800e8SDoug RabsonVerify the addresses in the tickets used in tgs requests. 4385e9cd1aeSAssar Westerlund.\" XXX 439c19800e8SDoug Rabson.It Li allow-null-ticket-addresses = Va BOOL 440c19800e8SDoug RabsonAllow address-less tickets. 4415e9cd1aeSAssar Westerlund.\" XXX 442c19800e8SDoug Rabson.It Li allow-anonymous = Va BOOL 443bbd80c28SJacques VidrineIf the kdc is allowed to hand out anonymous tickets. 444c19800e8SDoug Rabson.It Li encode_as_rep_as_tgs_rep = Va BOOL 445bbd80c28SJacques VidrineEncode as-rep as tgs-rep tobe compatible with mistakes older DCE secd did. 4465e9cd1aeSAssar Westerlund.\" XXX 447c19800e8SDoug Rabson.It Li kdc_warn_pwexpire = Va TIME 448bbd80c28SJacques VidrineThe time before expiration that the user should be warned that her 4495e9cd1aeSAssar Westerlundpassword is about to expire. 450c19800e8SDoug Rabson.It Li logging = Va Logging 4515e9cd1aeSAssar WesterlundWhat type of logging the kdc should use, see also [logging]/kdc. 452c19800e8SDoug Rabson.It Li use_2b = { 453c19800e8SDoug Rabson.Bl -tag -width "xxx" -offset indent 454c19800e8SDoug Rabson.It Va principal Li = Va BOOL 455c19800e8SDoug Rabsonboolean value if the 524 daemon should return AFS 2b tokens for 456c19800e8SDoug Rabson.Fa principal . 457c19800e8SDoug Rabson.It ... 458c19800e8SDoug Rabson.El 459c19800e8SDoug Rabson.It Li } 460c19800e8SDoug Rabson.It Li hdb-ldap-structural-object Va structural object 461c19800e8SDoug RabsonIf the LDAP backend is used for storing principals, this is the 462c19800e8SDoug Rabsonstructural object that will be used when creating and when reading 463c19800e8SDoug Rabsonobjects. 464c19800e8SDoug RabsonThe default value is account . 465c19800e8SDoug Rabson.It Li hdb-ldap-create-base Va creation dn 466c19800e8SDoug Rabsonis the dn that will be appended to the principal when creating entries. 467c19800e8SDoug RabsonDefault value is the search dn. 468ae771770SStanislav Sedov.It Li enable-digest = Va BOOL 469ae771770SStanislav SedovShould the kdc answer digest requests. The default is FALSE. 470ae771770SStanislav Sedov.It Li digests_allowed = Va list of digests 471ae771770SStanislav SedovSpecifies the digests the kdc will reply to. The default is 472ae771770SStanislav Sedov.Li ntlm-v2 . 4735e9cd1aeSAssar Westerlund.El 4745e9cd1aeSAssar Westerlund.It Li [kadmin] 4755e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent 476c19800e8SDoug Rabson.It Li require-preauth = Va BOOL 4775e9cd1aeSAssar WesterlundIf pre-authentication is required to talk to the kadmin server. 478c19800e8SDoug Rabson.It Li password_lifetime = Va time 479c19800e8SDoug RabsonIf a principal already have its password set for expiration, this is 480c19800e8SDoug Rabsonthe time it will be valid for after a change. 481c19800e8SDoug Rabson.It Li default_keys = Va keytypes... 482c19800e8SDoug RabsonFor each entry in 4835e9cd1aeSAssar Westerlund.Va default_keys 4845e9cd1aeSAssar Westerlundtry to parse it as a sequence of 4855e9cd1aeSAssar Westerlund.Va etype:salttype:salt 4865e9cd1aeSAssar Westerlundsyntax of this if something like: 4875e9cd1aeSAssar Westerlund.Pp 4885e9cd1aeSAssar Westerlund[(des|des3|etype):](pw-salt|afs3-salt)[:string] 4895e9cd1aeSAssar Westerlund.Pp 490bbd80c28SJacques VidrineIf 4915e9cd1aeSAssar Westerlund.Ar etype 492bbd80c28SJacques Vidrineis omitted it means everything, and if string is omitted it means the 493bbd80c28SJacques Vidrinedefault salt string (for that principal and encryption type). 494bbd80c28SJacques VidrineAdditional special values of keytypes are: 4955e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent 496c19800e8SDoug Rabson.It Li v5 497bbd80c28SJacques VidrineThe Kerberos 5 salt 4985e9cd1aeSAssar Westerlund.Va pw-salt 499c19800e8SDoug Rabson.It Li v4 500bbd80c28SJacques VidrineThe Kerberos 4 salt 5015e9cd1aeSAssar Westerlund.Va des:pw-salt: 5025e9cd1aeSAssar Westerlund.El 503c19800e8SDoug Rabson.It Li use_v4_salt = Va BOOL 5045e9cd1aeSAssar WesterlundWhen true, this is the same as 5055e9cd1aeSAssar Westerlund.Pp 5065e9cd1aeSAssar Westerlund.Va default_keys = Va des3:pw-salt Va v4 5075e9cd1aeSAssar Westerlund.Pp 508bbd80c28SJacques Vidrineand is only left for backwards compatibility. 5095e9cd1aeSAssar Westerlund.El 510ae771770SStanislav Sedov.It Li [password_quality] 511c19800e8SDoug RabsonCheck the Password quality assurance in the info documentation for 512c19800e8SDoug Rabsonmore information. 513c19800e8SDoug Rabson.Bl -tag -width "xxx" -offset indent 514c19800e8SDoug Rabson.It Li check_library = Va library-name 515c19800e8SDoug RabsonLibrary name that contains the password check_function 516c19800e8SDoug Rabson.It Li check_function = Va function-name 517c19800e8SDoug RabsonFunction name for checking passwords in check_library 518c19800e8SDoug Rabson.It Li policy_libraries = Va library1 ... libraryN 519c19800e8SDoug RabsonList of libraries that can do password policy checks 520c19800e8SDoug Rabson.It Li policies = Va policy1 ... policyN 521c19800e8SDoug RabsonList of policy names to apply to the password. Builtin policies are 522c19800e8SDoug Rabsonamong other minimum-length, character-class, external-check. 523c19800e8SDoug Rabson.El 5245e9cd1aeSAssar Westerlund.El 5255e9cd1aeSAssar Westerlund.Sh ENVIRONMENT 5265e9cd1aeSAssar Westerlund.Ev KRB5_CONFIG 5275e9cd1aeSAssar Westerlundpoints to the configuration file to read. 5281c43270aSJacques Vidrine.Sh FILES 5291c43270aSJacques Vidrine.Bl -tag -width "/etc/krb5.conf" 5301c43270aSJacques Vidrine.It Pa /etc/krb5.conf 5311c43270aSJacques Vidrineconfiguration file for Kerberos 5. 5321c43270aSJacques Vidrine.El 5331c43270aSJacques Vidrine.Sh EXAMPLES 534b528cefcSMark Murray.Bd -literal -offset indent 535adb0ddaeSAssar Westerlund[libdefaults] 536adb0ddaeSAssar Westerlund default_realm = FOO.SE 537b528cefcSMark Murray[domain_realm] 538b528cefcSMark Murray .foo.se = FOO.SE 539b528cefcSMark Murray .bar.se = FOO.SE 540b528cefcSMark Murray[realms] 541b528cefcSMark Murray FOO.SE = { 542b528cefcSMark Murray kdc = kerberos.foo.se 543b528cefcSMark Murray v4_name_convert = { 544b528cefcSMark Murray rcmd = host 545b528cefcSMark Murray } 546b528cefcSMark Murray v4_instance_convert = { 547b528cefcSMark Murray xyz = xyz.bar.se 548b528cefcSMark Murray } 549b528cefcSMark Murray default_domain = foo.se 550b528cefcSMark Murray } 551b528cefcSMark Murray[logging] 552b528cefcSMark Murray kdc = FILE:/var/heimdal/kdc.log 553b528cefcSMark Murray kdc = SYSLOG:INFO 554b528cefcSMark Murray default = SYSLOG:INFO:USER 555b528cefcSMark Murray.Ed 5565e9cd1aeSAssar Westerlund.Sh DIAGNOSTICS 5575e9cd1aeSAssar WesterlundSince 5585e9cd1aeSAssar Westerlund.Nm 5595e9cd1aeSAssar Westerlundis read and parsed by the krb5 library, there is not a lot of 5605e9cd1aeSAssar Westerlundopportunities for programs to report parsing errors in any useful 5615e9cd1aeSAssar Westerlundformat. 5625e9cd1aeSAssar WesterlundTo help overcome this problem, there is a program 5635e9cd1aeSAssar Westerlund.Nm verify_krb5_conf 5645e9cd1aeSAssar Westerlundthat reads 5655e9cd1aeSAssar Westerlund.Nm 566bbd80c28SJacques Vidrineand tries to emit useful diagnostics from parsing errors. 567bbd80c28SJacques VidrineNote that this program does not have any way of knowing what options 568bbd80c28SJacques Vidrineare actually used and thus cannot warn about unknown or misspelled 569bbd80c28SJacques Vidrineones. 570b528cefcSMark Murray.Sh SEE ALSO 571adb0ddaeSAssar Westerlund.Xr kinit 1 , 5724137ff4cSJacques Vidrine.Xr krb5_425_conv_principal 3 , 5734137ff4cSJacques Vidrine.Xr krb5_openlog 3 , 5744137ff4cSJacques Vidrine.Xr strftime 3 , 5754137ff4cSJacques Vidrine.Xr verify_krb5_conf 8 576