xref: /freebsd/crypto/heimdal/lib/krb5/krb5.conf.5 (revision 5e9cd1ae3e10592ed70e7575551cba1bbab04d84)
15e9cd1aeSAssar Westerlund.\" $Id: krb5.conf.5,v 1.12 2001/01/19 04:53:24 assar Exp $
2b528cefcSMark Murray.\"
3b528cefcSMark Murray.Dd April 11, 1999
4b528cefcSMark Murray.Dt KRB5.CONF 5
5b528cefcSMark Murray.Os HEIMDAL
6b528cefcSMark Murray.Sh NAME
7b528cefcSMark Murray.Nm /etc/krb5.conf
8b528cefcSMark Murray.Nd
9b528cefcSMark MurrayConfiguration file for Kerberos 5
10b528cefcSMark Murray.Sh DESCRIPTION
11b528cefcSMark MurrayThe
12b528cefcSMark Murray.Nm
13b528cefcSMark Murrayfile specifies several configuration parameters for the Kerberos 5
14b528cefcSMark Murraylibrary, as well as for some programs.
15b528cefcSMark Murray.Pp
16b528cefcSMark MurrayThe file consists of one or more sections, containing a number of
17b528cefcSMark Murraybindings. The value of each binding can be either a string or a list
18b528cefcSMark Murrayof other bindings. The grammar looks like:
19b528cefcSMark Murray.Bd -literal -offset indent
20b528cefcSMark Murrayfile:
21b528cefcSMark Murray	/* empty */
22b528cefcSMark Murray	sections
23b528cefcSMark Murray
24b528cefcSMark Murraysections:
25b528cefcSMark Murray	section sections
26b528cefcSMark Murray	section
27b528cefcSMark Murray
28b528cefcSMark Murraysection:
29b528cefcSMark Murray	'[' section_name ']' bindings
30b528cefcSMark Murray
31b528cefcSMark Murraysection_name:
32b528cefcSMark Murray	STRING
33b528cefcSMark Murray
34b528cefcSMark Murraybindings:
35b528cefcSMark Murray	binding bindings
36b528cefcSMark Murray	binding
37b528cefcSMark Murray
38b528cefcSMark Murraybinding:
39b528cefcSMark Murray	name '=' STRING
40b528cefcSMark Murray	name '=' '{' bindings '}'
41b528cefcSMark Murray
42b528cefcSMark Murrayname:
43b528cefcSMark Murray	STRING
44b528cefcSMark Murray
45b528cefcSMark Murray.Ed
46b528cefcSMark Murray.Li STRINGs
47b528cefcSMark Murrayconsists of one or more non-white space characters.
48b528cefcSMark MurrayCurrently recognised sections and bindings are:
49b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
50b528cefcSMark Murray.It Li [libdefaults]
51b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
52b528cefcSMark Murray.It Li default_realm = Va REALM
53b528cefcSMark MurrayDefault realm to use, this is also known as your
54b528cefcSMark Murray.Dq local realm .
55b528cefcSMark MurrayThe default is the result of
56b528cefcSMark Murray.Fn krb5_get_host_realm "local hostname" .
57b528cefcSMark Murray.It Li clockskew = Va time
58b528cefcSMark MurrayMaximum time differential (in seconds) allowed when comparing
59b528cefcSMark Murraytimes. Default is 300 seconds (five minutes).
60b528cefcSMark Murray.It Li kdc_timeout = Va time
61b528cefcSMark MurrayMaximum time to wait for a reply from the kdc, default is 3 seconds.
62b528cefcSMark Murray.It v4_name_convert
63b528cefcSMark Murray.It v4_instance_resolve
64b528cefcSMark MurrayThese are decribed in the
65b528cefcSMark Murray.Xr krb5_425_conv_principal  3
66b528cefcSMark Murraymanual page.
675e9cd1aeSAssar Westerlund.It Li capath = {
685e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
695e9cd1aeSAssar Westerlund.It Va destination-realm Li = Va next-hop-realm
705e9cd1aeSAssar Westerlund.It ...
715e9cd1aeSAssar Westerlund.El
725e9cd1aeSAssar WesterlundNormally, all requests to realms different from the one of the current
735e9cd1aeSAssar Westerlundclient are sent to this KDC to get cross-realm tickets.
745e9cd1aeSAssar WesterlundIf this KDC does not have a cross-realm key with the desired realm and
755e9cd1aeSAssar Westerlundthe hierarchical path to that realm does not work, a path can be
765e9cd1aeSAssar Westerlundconfigured using this directive.
775e9cd1aeSAssar WesterlundThe text shown above instructs the KDC to try to obtain a cross-realm
785e9cd1aeSAssar Westerlundticket to
795e9cd1aeSAssar Westerlund.Va next-hop-realm
805e9cd1aeSAssar Westerlundwhen the desired realm is
815e9cd1aeSAssar Westerlund.Va destination-realm .
825e9cd1aeSAssar WesterlundThis configuration should preferably be done on the KDC where it will
835e9cd1aeSAssar Westerlundhelp all its clients but can also be done on the client itself.
845e9cd1aeSAssar Westerlund.It Li }
85b528cefcSMark Murray.It Li default_etypes = Va etypes...
86b528cefcSMark MurrayA list of default etypes to use.
87b528cefcSMark Murray.It Li default_etypes_des = Va etypes...
88b528cefcSMark MurrayA list of default etypes to use when requesting a DES credential.
89b528cefcSMark Murray.It Li default_keytab_name = Va keytab
90b528cefcSMark MurrayThe keytab to use if none other is specified, default is
91b528cefcSMark Murray.Dq FILE:/etc/krb5.keytab .
92b528cefcSMark Murray.It Li kdc_timesync = Va boolean
93b528cefcSMark MurrayTry to keep track of the time differential between the local machine
94b528cefcSMark Murrayand the KDC, and then compensate for that when issuing requests.
95b528cefcSMark Murray.It Li max_retries = Va number
96b528cefcSMark MurrayThe max number of times to try to contact each KDC.
97b528cefcSMark Murray.It Li ticket_lifetime = Va time
98b528cefcSMark MurrayDefault ticket lifetime.
99b528cefcSMark Murray.It Li renew_lifetime = Va time
100b528cefcSMark MurrayDefault renewable ticket lifetime.
101b528cefcSMark Murray.It Li verify_ap_req_nofail = Va boolean
102b528cefcSMark MurrayEnable to make a failure to verify obtained credentials
103b528cefcSMark Murraynon-fatal. This can be useful if there is no keytab on a host.
104b528cefcSMark Murray.It Li warn_pwexpire = Va time
105b528cefcSMark MurrayHow soon to warn for expiring password. Default is seven days.
106b528cefcSMark Murray.It Li http_proxy = Va proxy-spec
107b528cefcSMark MurrayA HTTP-proxy to use when talking to the KDC via HTTP.
108b528cefcSMark Murray.It Li dns_proxy = Va proxy-spec
109b528cefcSMark MurrayEnable using DNS via HTTP.
110b528cefcSMark Murray.It Li extra_addresses = Va address...
111b528cefcSMark MurrayA list of addresses to get tickets for along with all local addresses.
112b528cefcSMark Murray.It Li time_format = Va string
113b528cefcSMark MurrayHow to print time strings in logs, this string is passed to
114b528cefcSMark Murray.Xr strftime 3 .
115b528cefcSMark Murray.It Li log_utc = Va boolean
116b528cefcSMark MurrayWrite log-entries using UTC instead of your local time zone.
117b528cefcSMark Murray.El
118b528cefcSMark Murray.It Li [domain_realm]
119b528cefcSMark MurrayThis is a list of mappings from DNS domain to Kerberos realm. Each
120b528cefcSMark Murraybinding in this section looks like:
121b528cefcSMark Murray.Pp
122b528cefcSMark Murray.Dl domain = realm
123b528cefcSMark Murray.Pp
124b528cefcSMark MurrayThe domain can be either a full name of a host or a trailing
125b528cefcSMark Murraycomponent, in the latter case the domain-string should start with a
126b528cefcSMark Murrayperid.
127b528cefcSMark Murray.It Li [realms]
128b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
129b528cefcSMark Murray.It Va REALM Li = {
130b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
131b528cefcSMark Murray.It Li kdc = Va host[:port]
1325e9cd1aeSAssar WesterlundSpecifies a list of kdcs for this realm. If the optional port is absent, the
133b528cefcSMark Murraydefault value for the
134b528cefcSMark Murray.Dq kerberos/udp
135b528cefcSMark Murrayservice will be used.
1365e9cd1aeSAssar WesterlundThe kdcs will be used in the order that they are specified.
1375e9cd1aeSAssar Westerlund.It Li admin_server = Va host[:port]
1385e9cd1aeSAssar WesterlundSpecifies the admin server for this realm, where all the modifications
1395e9cd1aeSAssar Westerlundto the database are perfomed.
1405e9cd1aeSAssar Westerlund.It Li kpasswd_server = Va host[:port]
1415e9cd1aeSAssar WesterlundPoints to the server where all the password changes are perfomed.
1425e9cd1aeSAssar WesterlundIf there is no such entry, the kpasswd port on the admin_server host
1435e9cd1aeSAssar Westerlundwill be tried.
144b528cefcSMark Murray.It Li v4_instance_convert
145b528cefcSMark Murray.It Li v4_name_convert
146b528cefcSMark Murray.It Li default_domain
147b528cefcSMark MurraySee
148b528cefcSMark Murray.Xr krb5_425_conv_principal 3 .
149b528cefcSMark Murray.El
150b528cefcSMark Murray.It Li }
151b528cefcSMark Murray.El
152b528cefcSMark Murray.It Li [logging]
153b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
154b528cefcSMark Murray.It Va entity Li = Va destination
155b528cefcSMark MurraySpecifies that
156b528cefcSMark Murray.Va entity
157b528cefcSMark Murrayshould use the specified
158b528cefcSMark Murray.Li destination
159b528cefcSMark Murrayfor logging. See the
160b528cefcSMark Murray.Xr krb5_openlog 3
161b528cefcSMark Murraymanual page for a list of defined destinations.
162b528cefcSMark Murray.El
1635e9cd1aeSAssar Westerlund.It Li [kdc]
1645e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
1655e9cd1aeSAssar Westerlund.It database Li = {
1665e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
1675e9cd1aeSAssar Westerlund.It dbname Li = Va DATABASENAME
1685e9cd1aeSAssar Westerlunduse this database for this realm.
1695e9cd1aeSAssar Westerlund.It realm Li = Va REALM
1705e9cd1aeSAssar Westerlundspecifies the realm that will be stored in this database.
1715e9cd1aeSAssar Westerlund.It mkey_file Li = Pa FILENAME
1725e9cd1aeSAssar Westerlunduse this keytab file for the master key of this database.
1735e9cd1aeSAssar WesterlundIf not specified
1745e9cd1aeSAssar Westerlund.Va DATABASENAME Ns .mkey
1755e9cd1aeSAssar Westerlundwill be used.
1765e9cd1aeSAssar Westerlund.It acl_file Li = PA FILENAME
1775e9cd1aeSAssar Westerlunduse this file for the ACL list of this database.
1785e9cd1aeSAssar Westerlund.It log_file Li = Pa FILENAME
1795e9cd1aeSAssar Westerlunduse this file as the log of changes performed to the database.  This
1805e9cd1aeSAssar Westerlundfile is used by
1815e9cd1aeSAssar Westerlund.Nm ipropd-master
1825e9cd1aeSAssar Westerlundfor propagating changes to slaves.
183b528cefcSMark Murray.El
1845e9cd1aeSAssar Westerlund.It Li }
1855e9cd1aeSAssar Westerlund.It max-request = Va SIZE
1865e9cd1aeSAssar WesterlundMaximum size of a kdc request.
1875e9cd1aeSAssar Westerlund.It require-preauth = Va BOOL
1885e9cd1aeSAssar WesterlundIf set pre-authentication is required. Since krb4 requests are not
1895e9cd1aeSAssar Westerlundpre-authenticated they will be rejected.
1905e9cd1aeSAssar Westerlund.It ports = Va "list of ports"
1915e9cd1aeSAssar Westerlundlist of ports the kdc should listen to.
1925e9cd1aeSAssar Westerlund.It addresses = Va "list of interfaces"
1935e9cd1aeSAssar Westerlundlist of addresses the kdc should bind to.
1945e9cd1aeSAssar Westerlund.It enable-kerberos4 = Va BOOL
1955e9cd1aeSAssar Westerlundturn on kerberos4 support.
1965e9cd1aeSAssar Westerlund.It v4-realm = Va REALM
1975e9cd1aeSAssar Westerlundto what realm v4 requests should be mapped.
1985e9cd1aeSAssar Westerlund.It enable-524 = Va BOOL
1995e9cd1aeSAssar Westerlundshould the Kerberos 524 converting facility be turned on. Default is same as
2005e9cd1aeSAssar Westerlund.Va enable-kerberos4 .
2015e9cd1aeSAssar Westerlund.It enable-http = Va BOOL
2025e9cd1aeSAssar Westerlundshould the kdc answer kdc-requests over http.
2035e9cd1aeSAssar Westerlund.It enable-kaserver = Va BOOL
2045e9cd1aeSAssar Westerlundif this kdc should emulate the AFS kaserver.
2055e9cd1aeSAssar Westerlund.It check-ticket-addresses = Va BOOL
2065e9cd1aeSAssar Westerlundverify the addresses in the tickets used in tgs requests.
2075e9cd1aeSAssar Westerlund.\" XXX
2085e9cd1aeSAssar Westerlund.It allow-null-ticket-addresses = Va BOOL
2095e9cd1aeSAssar Westerlundallow addresses-less tickets.
2105e9cd1aeSAssar Westerlund.\" XXX
2115e9cd1aeSAssar Westerlund.It allow-anonymous = Va BOOL
2125e9cd1aeSAssar Westerlundif the kdc is allowed to hand out anonymous tickets.
2135e9cd1aeSAssar Westerlund.It encode_as_rep_as_tgs_rep = Va BOOL
2145e9cd1aeSAssar Westerlundencode as-rep as tgs-rep tobe compatible with mistakes older DCE secd did.
2155e9cd1aeSAssar Westerlund.\" XXX
2165e9cd1aeSAssar Westerlund.It kdc_warn_pwexpire = Va TIME
2175e9cd1aeSAssar Westerlundthe time before expiration that the user should be warned that her
2185e9cd1aeSAssar Westerlundpassword is about to expire.
2195e9cd1aeSAssar Westerlund.It logging = Va Logging
2205e9cd1aeSAssar WesterlundWhat type of logging the kdc should use, see also [logging]/kdc.
2215e9cd1aeSAssar Westerlund.El
2225e9cd1aeSAssar Westerlund.It Li [kadmin]
2235e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
2245e9cd1aeSAssar Westerlund.It require-preauth = Va BOOL
2255e9cd1aeSAssar WesterlundIf pre-authentication is required to talk to the kadmin server.
2265e9cd1aeSAssar Westerlund.It default_keys = Va keytypes...
2275e9cd1aeSAssar Westerlundfor each entry in
2285e9cd1aeSAssar Westerlund.Va default_keys
2295e9cd1aeSAssar Westerlundtry to parse it as a sequence of
2305e9cd1aeSAssar Westerlund.Va etype:salttype:salt
2315e9cd1aeSAssar Westerlundsyntax of this if something like:
2325e9cd1aeSAssar Westerlund.Pp
2335e9cd1aeSAssar Westerlund[(des|des3|etype):](pw-salt|afs3-salt)[:string]
2345e9cd1aeSAssar Westerlund.Pp
2355e9cd1aeSAssar Westerlundif
2365e9cd1aeSAssar Westerlund.Ar etype
2375e9cd1aeSAssar Westerlundis omitted it means everything, and if string is omitted is means the default string (for that principal). Additional special values of keyttypes are:
2385e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
2395e9cd1aeSAssar Westerlund.It v5
2405e9cd1aeSAssar WesterlundThe kerberos 5 salt
2415e9cd1aeSAssar Westerlund.Va pw-salt
2425e9cd1aeSAssar Westerlund.It v4
2435e9cd1aeSAssar WesterlundThe kerberos 4 type
2445e9cd1aeSAssar Westerlund.Va des:pw-salt:
2455e9cd1aeSAssar Westerlund.El
2465e9cd1aeSAssar Westerlund.It use_v4_salt = Va BOOL
2475e9cd1aeSAssar WesterlundWhen true, this is the same as
2485e9cd1aeSAssar Westerlund.Pp
2495e9cd1aeSAssar Westerlund.Va default_keys = Va des3:pw-salt Va v4
2505e9cd1aeSAssar Westerlund.Pp
2515e9cd1aeSAssar Westerlundand is only left for backwards compatability.
2525e9cd1aeSAssar Westerlund.El
2535e9cd1aeSAssar Westerlund.El
2545e9cd1aeSAssar Westerlund.Sh ENVIRONMENT
2555e9cd1aeSAssar Westerlund.Ev KRB5_CONFIG
2565e9cd1aeSAssar Westerlundpoints to the configuration file to read.
257b528cefcSMark Murray.Sh EXAMPLE
258b528cefcSMark Murray.Bd -literal -offset indent
259b528cefcSMark Murray[lib_defaults]
260b528cefcSMark Murray	default_domain = FOO.SE
261b528cefcSMark Murray[domain_realm]
262b528cefcSMark Murray	.foo.se = FOO.SE
263b528cefcSMark Murray	.bar.se = FOO.SE
264b528cefcSMark Murray[realms]
265b528cefcSMark Murray	FOO.SE = {
266b528cefcSMark Murray		kdc = kerberos.foo.se
267b528cefcSMark Murray		v4_name_convert = {
268b528cefcSMark Murray			rcmd = host
269b528cefcSMark Murray		}
270b528cefcSMark Murray		v4_instance_convert = {
271b528cefcSMark Murray			xyz = xyz.bar.se
272b528cefcSMark Murray		}
273b528cefcSMark Murray		default_domain = foo.se
274b528cefcSMark Murray	}
275b528cefcSMark Murray[logging]
276b528cefcSMark Murray	kdc = FILE:/var/heimdal/kdc.log
277b528cefcSMark Murray	kdc = SYSLOG:INFO
278b528cefcSMark Murray	default = SYSLOG:INFO:USER
279b528cefcSMark Murray.Ed
2805e9cd1aeSAssar Westerlund.Sh DIAGNOSTICS
2815e9cd1aeSAssar WesterlundSince
2825e9cd1aeSAssar Westerlund.Nm
2835e9cd1aeSAssar Westerlundis read and parsed by the krb5 library, there is not a lot of
2845e9cd1aeSAssar Westerlundopportunities for programs to report parsing errors in any useful
2855e9cd1aeSAssar Westerlundformat.
2865e9cd1aeSAssar WesterlundTo help overcome this problem, there is a program
2875e9cd1aeSAssar Westerlund.Nm verify_krb5_conf
2885e9cd1aeSAssar Westerlundthat reads
2895e9cd1aeSAssar Westerlund.Nm
2905e9cd1aeSAssar Westerlundand tries to emit useful diagnostics from parsing errors.  Note that
2915e9cd1aeSAssar Westerlundthis program does not have any way of knowing what options are
2925e9cd1aeSAssar Westerlundactually used and thus cannot warn about unknown or misspelt ones.
293b528cefcSMark Murray.Sh SEE ALSO
2945e9cd1aeSAssar Westerlund.Xr verify_krb5_conf 8 ,
295b528cefcSMark Murray.Xr krb5_openlog 3 ,
296b528cefcSMark Murray.Xr krb5_425_conv_principal 3 ,
297b528cefcSMark Murray.Xr strftime 3 ,
298b528cefcSMark Murray.Xr Source tm
299