xref: /freebsd/crypto/heimdal/lib/krb5/krb5.conf.5 (revision 4137ff4cc173ea2e05227027e1c9e0ea42bcc0dc)
14137ff4cSJacques Vidrine.\" $Id: krb5.conf.5,v 1.22 2001/08/30 18:54:01 joda 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
845524cd7SAssar Westerlund.Nd configuration file for Kerberos 5
9b528cefcSMark Murray.Sh DESCRIPTION
10b528cefcSMark MurrayThe
11b528cefcSMark Murray.Nm
12b528cefcSMark Murrayfile specifies several configuration parameters for the Kerberos 5
13b528cefcSMark Murraylibrary, as well as for some programs.
14b528cefcSMark Murray.Pp
15b528cefcSMark MurrayThe file consists of one or more sections, containing a number of
16b528cefcSMark Murraybindings. The value of each binding can be either a string or a list
17b528cefcSMark Murrayof other bindings. The grammar looks like:
18b528cefcSMark Murray.Bd -literal -offset indent
19b528cefcSMark Murrayfile:
20b528cefcSMark Murray	/* empty */
21b528cefcSMark Murray	sections
22b528cefcSMark Murray
23b528cefcSMark Murraysections:
24b528cefcSMark Murray	section sections
25b528cefcSMark Murray	section
26b528cefcSMark Murray
27b528cefcSMark Murraysection:
28b528cefcSMark Murray	'[' section_name ']' bindings
29b528cefcSMark Murray
30b528cefcSMark Murraysection_name:
31b528cefcSMark Murray	STRING
32b528cefcSMark Murray
33b528cefcSMark Murraybindings:
34b528cefcSMark Murray	binding bindings
35b528cefcSMark Murray	binding
36b528cefcSMark Murray
37b528cefcSMark Murraybinding:
38b528cefcSMark Murray	name '=' STRING
39b528cefcSMark Murray	name '=' '{' bindings '}'
40b528cefcSMark Murray
41b528cefcSMark Murrayname:
42b528cefcSMark Murray	STRING
43b528cefcSMark Murray
44b528cefcSMark Murray.Ed
45b528cefcSMark Murray.Li STRINGs
46b528cefcSMark Murrayconsists of one or more non-white space characters.
47b528cefcSMark MurrayCurrently recognised sections and bindings are:
48b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
49adb0ddaeSAssar Westerlund.It Li [appdefaults]
50adb0ddaeSAssar WesterlundSpecifies the default values to be used for Kerberos applications.
51adb0ddaeSAssar WesterlundYou can specify defaults per application, realm, or a combination of
52adb0ddaeSAssar Westerlundthese.  The preference order is:
53adb0ddaeSAssar Westerlund.Bl -enum -compact
54adb0ddaeSAssar Westerlund.It
55adb0ddaeSAssar Westerlund.Va application Va realm Va option
56adb0ddaeSAssar Westerlund.It
57adb0ddaeSAssar Westerlund.Va application Va option
58adb0ddaeSAssar Westerlund.It
59adb0ddaeSAssar Westerlund.Va realm Va option
60adb0ddaeSAssar Westerlund.It
61adb0ddaeSAssar Westerlund.Va option
62adb0ddaeSAssar Westerlund.El
63adb0ddaeSAssar Westerlund.Pp
64adb0ddaeSAssar WesterlundThe supported options are:
65adb0ddaeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
66adb0ddaeSAssar Westerlund.It Li forwardable = Va boolean
67adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials forwardable.
68adb0ddaeSAssar Westerlund.It Li proxiable = Va boolean
69adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials proxiable.
70adb0ddaeSAssar Westerlund.It Li no-addresses = Va boolean
71adb0ddaeSAssar WesterlundWhen obtaining initial credentials, request them for an empty set of
72adb0ddaeSAssar Westerlundaddresses, making the tickets valid from any address.
734137ff4cSJacques Vidrine.It Li ticket_lifetime = Va time
74adb0ddaeSAssar WesterlundDefault ticket lifetime.
75adb0ddaeSAssar Westerlund.It Li renew_lifetime = Va time
76adb0ddaeSAssar WesterlundDefault renewable ticket lifetime.
77adb0ddaeSAssar Westerlund.El
78b528cefcSMark Murray.It Li [libdefaults]
79b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
80b528cefcSMark Murray.It Li default_realm = Va REALM
81b528cefcSMark MurrayDefault realm to use, this is also known as your
82b528cefcSMark Murray.Dq local realm .
83b528cefcSMark MurrayThe default is the result of
84b528cefcSMark Murray.Fn krb5_get_host_realm "local hostname" .
85b528cefcSMark Murray.It Li clockskew = Va time
86b528cefcSMark MurrayMaximum time differential (in seconds) allowed when comparing
87b528cefcSMark Murraytimes. Default is 300 seconds (five minutes).
88b528cefcSMark Murray.It Li kdc_timeout = Va time
89b528cefcSMark MurrayMaximum time to wait for a reply from the kdc, default is 3 seconds.
90b528cefcSMark Murray.It v4_name_convert
91b528cefcSMark Murray.It v4_instance_resolve
92b528cefcSMark MurrayThese are decribed in the
93b528cefcSMark Murray.Xr krb5_425_conv_principal  3
94b528cefcSMark Murraymanual page.
955e9cd1aeSAssar Westerlund.It Li capath = {
965e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
975e9cd1aeSAssar Westerlund.It Va destination-realm Li = Va next-hop-realm
985e9cd1aeSAssar Westerlund.It ...
995e9cd1aeSAssar Westerlund.El
1005e9cd1aeSAssar WesterlundNormally, all requests to realms different from the one of the current
1015e9cd1aeSAssar Westerlundclient are sent to this KDC to get cross-realm tickets.
1025e9cd1aeSAssar WesterlundIf this KDC does not have a cross-realm key with the desired realm and
1035e9cd1aeSAssar Westerlundthe hierarchical path to that realm does not work, a path can be
1045e9cd1aeSAssar Westerlundconfigured using this directive.
1055e9cd1aeSAssar WesterlundThe text shown above instructs the KDC to try to obtain a cross-realm
1065e9cd1aeSAssar Westerlundticket to
1075e9cd1aeSAssar Westerlund.Va next-hop-realm
1085e9cd1aeSAssar Westerlundwhen the desired realm is
1095e9cd1aeSAssar Westerlund.Va destination-realm .
1105e9cd1aeSAssar WesterlundThis configuration should preferably be done on the KDC where it will
1115e9cd1aeSAssar Westerlundhelp all its clients but can also be done on the client itself.
1125e9cd1aeSAssar Westerlund.It Li }
113b528cefcSMark Murray.It Li default_etypes = Va etypes...
114b528cefcSMark MurrayA list of default etypes to use.
115b528cefcSMark Murray.It Li default_etypes_des = Va etypes...
116b528cefcSMark MurrayA list of default etypes to use when requesting a DES credential.
117b528cefcSMark Murray.It Li default_keytab_name = Va keytab
118b528cefcSMark MurrayThe keytab to use if none other is specified, default is
119b528cefcSMark Murray.Dq FILE:/etc/krb5.keytab .
120b528cefcSMark Murray.It Li kdc_timesync = Va boolean
121b528cefcSMark MurrayTry to keep track of the time differential between the local machine
122b528cefcSMark Murrayand the KDC, and then compensate for that when issuing requests.
123b528cefcSMark Murray.It Li max_retries = Va number
124b528cefcSMark MurrayThe max number of times to try to contact each KDC.
125b528cefcSMark Murray.It Li ticket_lifetime = Va time
126b528cefcSMark MurrayDefault ticket lifetime.
127b528cefcSMark Murray.It Li renew_lifetime = Va time
128b528cefcSMark MurrayDefault renewable ticket lifetime.
129adb0ddaeSAssar Westerlund.It Li forwardable = Va boolean
130adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials forwardable.
131adb0ddaeSAssar WesterlundThis option is also valid in the [realms] section.
132adb0ddaeSAssar Westerlund.It Li proxiable = Va boolean
133adb0ddaeSAssar WesterlundWhen obtaining initial credentials, make the credentials proxiable.
134adb0ddaeSAssar WesterlundThis option is also valid in the [realms] section.
135b528cefcSMark Murray.It Li verify_ap_req_nofail = Va boolean
136b528cefcSMark MurrayEnable to make a failure to verify obtained credentials
137b528cefcSMark Murraynon-fatal. This can be useful if there is no keytab on a host.
138b528cefcSMark Murray.It Li warn_pwexpire = Va time
139b528cefcSMark MurrayHow soon to warn for expiring password. Default is seven days.
140b528cefcSMark Murray.It Li http_proxy = Va proxy-spec
141b528cefcSMark MurrayA HTTP-proxy to use when talking to the KDC via HTTP.
142b528cefcSMark Murray.It Li dns_proxy = Va proxy-spec
143b528cefcSMark MurrayEnable using DNS via HTTP.
144b528cefcSMark Murray.It Li extra_addresses = Va address...
145b528cefcSMark MurrayA list of addresses to get tickets for along with all local addresses.
146b528cefcSMark Murray.It Li time_format = Va string
147b528cefcSMark MurrayHow to print time strings in logs, this string is passed to
148b528cefcSMark Murray.Xr strftime 3 .
149adb0ddaeSAssar Westerlund.It Li date_format = Va string
150adb0ddaeSAssar WesterlundHow to print date strings in logs, this string is passed to
151adb0ddaeSAssar Westerlund.Xr strftime 3 .
152b528cefcSMark Murray.It Li log_utc = Va boolean
153b528cefcSMark MurrayWrite log-entries using UTC instead of your local time zone.
154adb0ddaeSAssar Westerlund.It Li srv_lookup = Va boolean
155adb0ddaeSAssar WesterlundUse DNS SRV records to lookup realm configuration information.
156adb0ddaeSAssar Westerlund.It Li scan_interfaces = Va boolean
157adb0ddaeSAssar WesterlundScan all network interfaces for addresses, as opposed to simply using
158adb0ddaeSAssar Westerlundthe address associated with the system's host name.
159adb0ddaeSAssar Westerlund.It Li fcache_version = Va int
160adb0ddaeSAssar WesterlundUse file credential cache format version specified.
161adb0ddaeSAssar Westerlund.It Li krb4_get_tickets = Va boolean
162adb0ddaeSAssar WesterlundAlso get Kerberos 4 tickets in
1634137ff4cSJacques Vidrine.Nm kinit ,
1644137ff4cSJacques Vidrine.Nm login ,
165adb0ddaeSAssar Westerlundand other programs.
166adb0ddaeSAssar WesterlundThis option is also valid in the [realms] section.
167b528cefcSMark Murray.El
168b528cefcSMark Murray.It Li [domain_realm]
169b528cefcSMark MurrayThis is a list of mappings from DNS domain to Kerberos realm. Each
170b528cefcSMark Murraybinding in this section looks like:
171b528cefcSMark Murray.Pp
172b528cefcSMark Murray.Dl domain = realm
173b528cefcSMark Murray.Pp
174b528cefcSMark MurrayThe domain can be either a full name of a host or a trailing
175b528cefcSMark Murraycomponent, in the latter case the domain-string should start with a
176b528cefcSMark Murrayperid.
177b528cefcSMark Murray.It Li [realms]
178b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
179b528cefcSMark Murray.It Va REALM Li = {
180b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
181b528cefcSMark Murray.It Li kdc = Va host[:port]
1825e9cd1aeSAssar WesterlundSpecifies a list of kdcs for this realm. If the optional port is absent, the
183b528cefcSMark Murraydefault value for the
184b528cefcSMark Murray.Dq kerberos/udp
185b528cefcSMark Murrayservice will be used.
1865e9cd1aeSAssar WesterlundThe kdcs will be used in the order that they are specified.
1875e9cd1aeSAssar Westerlund.It Li admin_server = Va host[:port]
1885e9cd1aeSAssar WesterlundSpecifies the admin server for this realm, where all the modifications
1895e9cd1aeSAssar Westerlundto the database are perfomed.
1905e9cd1aeSAssar Westerlund.It Li kpasswd_server = Va host[:port]
1915e9cd1aeSAssar WesterlundPoints to the server where all the password changes are perfomed.
1925e9cd1aeSAssar WesterlundIf there is no such entry, the kpasswd port on the admin_server host
1935e9cd1aeSAssar Westerlundwill be tried.
1944137ff4cSJacques Vidrine.It Li krb524_server = Va Host[:port]
1954137ff4cSJacques VidrinePoints to the server that does 524 conversions.  If it is not
1964137ff4cSJacques Vidrinementioned, the krb524 port on the kdcs will be tried.
197b528cefcSMark Murray.It Li v4_instance_convert
198b528cefcSMark Murray.It Li v4_name_convert
199b528cefcSMark Murray.It Li default_domain
200b528cefcSMark MurraySee
201b528cefcSMark Murray.Xr krb5_425_conv_principal 3 .
202b528cefcSMark Murray.El
203b528cefcSMark Murray.It Li }
204b528cefcSMark Murray.El
205b528cefcSMark Murray.It Li [logging]
206b528cefcSMark Murray.Bl -tag -width "xxx" -offset indent
207b528cefcSMark Murray.It Va entity Li = Va destination
208b528cefcSMark MurraySpecifies that
209b528cefcSMark Murray.Va entity
210b528cefcSMark Murrayshould use the specified
211b528cefcSMark Murray.Li destination
212b528cefcSMark Murrayfor logging. See the
213b528cefcSMark Murray.Xr krb5_openlog 3
214b528cefcSMark Murraymanual page for a list of defined destinations.
215b528cefcSMark Murray.El
2165e9cd1aeSAssar Westerlund.It Li [kdc]
2175e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
2185e9cd1aeSAssar Westerlund.It database Li = {
2195e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
2205e9cd1aeSAssar Westerlund.It dbname Li = Va DATABASENAME
2215e9cd1aeSAssar Westerlunduse this database for this realm.
2225e9cd1aeSAssar Westerlund.It realm Li = Va REALM
2235e9cd1aeSAssar Westerlundspecifies the realm that will be stored in this database.
2245e9cd1aeSAssar Westerlund.It mkey_file Li = Pa FILENAME
2255e9cd1aeSAssar Westerlunduse this keytab file for the master key of this database.
2265e9cd1aeSAssar WesterlundIf not specified
2275e9cd1aeSAssar Westerlund.Va DATABASENAME Ns .mkey
2285e9cd1aeSAssar Westerlundwill be used.
2295e9cd1aeSAssar Westerlund.It acl_file Li = PA FILENAME
2305e9cd1aeSAssar Westerlunduse this file for the ACL list of this database.
2315e9cd1aeSAssar Westerlund.It log_file Li = Pa FILENAME
2325e9cd1aeSAssar Westerlunduse this file as the log of changes performed to the database.  This
2335e9cd1aeSAssar Westerlundfile is used by
2345e9cd1aeSAssar Westerlund.Nm ipropd-master
2355e9cd1aeSAssar Westerlundfor propagating changes to slaves.
236b528cefcSMark Murray.El
2375e9cd1aeSAssar Westerlund.It Li }
2385e9cd1aeSAssar Westerlund.It max-request = Va SIZE
2395e9cd1aeSAssar WesterlundMaximum size of a kdc request.
2405e9cd1aeSAssar Westerlund.It require-preauth = Va BOOL
2415e9cd1aeSAssar WesterlundIf set pre-authentication is required. Since krb4 requests are not
2425e9cd1aeSAssar Westerlundpre-authenticated they will be rejected.
2435e9cd1aeSAssar Westerlund.It ports = Va "list of ports"
2445e9cd1aeSAssar Westerlundlist of ports the kdc should listen to.
2455e9cd1aeSAssar Westerlund.It addresses = Va "list of interfaces"
2465e9cd1aeSAssar Westerlundlist of addresses the kdc should bind to.
2475e9cd1aeSAssar Westerlund.It enable-kerberos4 = Va BOOL
2485e9cd1aeSAssar Westerlundturn on kerberos4 support.
2495e9cd1aeSAssar Westerlund.It v4-realm = Va REALM
2505e9cd1aeSAssar Westerlundto what realm v4 requests should be mapped.
2515e9cd1aeSAssar Westerlund.It enable-524 = Va BOOL
2525e9cd1aeSAssar Westerlundshould the Kerberos 524 converting facility be turned on. Default is same as
2535e9cd1aeSAssar Westerlund.Va enable-kerberos4 .
2545e9cd1aeSAssar Westerlund.It enable-http = Va BOOL
2555e9cd1aeSAssar Westerlundshould the kdc answer kdc-requests over http.
2565e9cd1aeSAssar Westerlund.It enable-kaserver = Va BOOL
2575e9cd1aeSAssar Westerlundif this kdc should emulate the AFS kaserver.
2585e9cd1aeSAssar Westerlund.It check-ticket-addresses = Va BOOL
2595e9cd1aeSAssar Westerlundverify the addresses in the tickets used in tgs requests.
2605e9cd1aeSAssar Westerlund.\" XXX
2615e9cd1aeSAssar Westerlund.It allow-null-ticket-addresses = Va BOOL
2625e9cd1aeSAssar Westerlundallow addresses-less tickets.
2635e9cd1aeSAssar Westerlund.\" XXX
2645e9cd1aeSAssar Westerlund.It allow-anonymous = Va BOOL
2655e9cd1aeSAssar Westerlundif the kdc is allowed to hand out anonymous tickets.
2665e9cd1aeSAssar Westerlund.It encode_as_rep_as_tgs_rep = Va BOOL
2675e9cd1aeSAssar Westerlundencode as-rep as tgs-rep tobe compatible with mistakes older DCE secd did.
2685e9cd1aeSAssar Westerlund.\" XXX
2695e9cd1aeSAssar Westerlund.It kdc_warn_pwexpire = Va TIME
2705e9cd1aeSAssar Westerlundthe time before expiration that the user should be warned that her
2715e9cd1aeSAssar Westerlundpassword is about to expire.
2725e9cd1aeSAssar Westerlund.It logging = Va Logging
2735e9cd1aeSAssar WesterlundWhat type of logging the kdc should use, see also [logging]/kdc.
2745e9cd1aeSAssar Westerlund.El
2755e9cd1aeSAssar Westerlund.It Li [kadmin]
2765e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
2775e9cd1aeSAssar Westerlund.It require-preauth = Va BOOL
2785e9cd1aeSAssar WesterlundIf pre-authentication is required to talk to the kadmin server.
2795e9cd1aeSAssar Westerlund.It default_keys = Va keytypes...
2805e9cd1aeSAssar Westerlundfor each entry in
2815e9cd1aeSAssar Westerlund.Va default_keys
2825e9cd1aeSAssar Westerlundtry to parse it as a sequence of
2835e9cd1aeSAssar Westerlund.Va etype:salttype:salt
2845e9cd1aeSAssar Westerlundsyntax of this if something like:
2855e9cd1aeSAssar Westerlund.Pp
2865e9cd1aeSAssar Westerlund[(des|des3|etype):](pw-salt|afs3-salt)[:string]
2875e9cd1aeSAssar Westerlund.Pp
2885e9cd1aeSAssar Westerlundif
2895e9cd1aeSAssar Westerlund.Ar etype
2905e9cd1aeSAssar Westerlundis omitted it means everything, and if string is omitted is means the default string (for that principal). Additional special values of keyttypes are:
2915e9cd1aeSAssar Westerlund.Bl -tag -width "xxx" -offset indent
2925e9cd1aeSAssar Westerlund.It v5
2935e9cd1aeSAssar WesterlundThe kerberos 5 salt
2945e9cd1aeSAssar Westerlund.Va pw-salt
2955e9cd1aeSAssar Westerlund.It v4
2965e9cd1aeSAssar WesterlundThe kerberos 4 type
2975e9cd1aeSAssar Westerlund.Va des:pw-salt:
2985e9cd1aeSAssar Westerlund.El
2995e9cd1aeSAssar Westerlund.It use_v4_salt = Va BOOL
3005e9cd1aeSAssar WesterlundWhen true, this is the same as
3015e9cd1aeSAssar Westerlund.Pp
3025e9cd1aeSAssar Westerlund.Va default_keys = Va des3:pw-salt Va v4
3035e9cd1aeSAssar Westerlund.Pp
3045e9cd1aeSAssar Westerlundand is only left for backwards compatability.
3055e9cd1aeSAssar Westerlund.El
3065e9cd1aeSAssar Westerlund.El
3075e9cd1aeSAssar Westerlund.Sh ENVIRONMENT
3085e9cd1aeSAssar Westerlund.Ev KRB5_CONFIG
3095e9cd1aeSAssar Westerlundpoints to the configuration file to read.
310b528cefcSMark Murray.Sh EXAMPLE
311b528cefcSMark Murray.Bd -literal -offset indent
312adb0ddaeSAssar Westerlund[libdefaults]
313adb0ddaeSAssar Westerlund	default_realm = FOO.SE
314b528cefcSMark Murray[domain_realm]
315b528cefcSMark Murray	.foo.se = FOO.SE
316b528cefcSMark Murray	.bar.se = FOO.SE
317b528cefcSMark Murray[realms]
318b528cefcSMark Murray	FOO.SE = {
319b528cefcSMark Murray		kdc = kerberos.foo.se
320b528cefcSMark Murray		v4_name_convert = {
321b528cefcSMark Murray			rcmd = host
322b528cefcSMark Murray		}
323b528cefcSMark Murray		v4_instance_convert = {
324b528cefcSMark Murray			xyz = xyz.bar.se
325b528cefcSMark Murray		}
326b528cefcSMark Murray		default_domain = foo.se
327b528cefcSMark Murray	}
328b528cefcSMark Murray[logging]
329b528cefcSMark Murray	kdc = FILE:/var/heimdal/kdc.log
330b528cefcSMark Murray	kdc = SYSLOG:INFO
331b528cefcSMark Murray	default = SYSLOG:INFO:USER
332b528cefcSMark Murray.Ed
3335e9cd1aeSAssar Westerlund.Sh DIAGNOSTICS
3345e9cd1aeSAssar WesterlundSince
3355e9cd1aeSAssar Westerlund.Nm
3365e9cd1aeSAssar Westerlundis read and parsed by the krb5 library, there is not a lot of
3375e9cd1aeSAssar Westerlundopportunities for programs to report parsing errors in any useful
3385e9cd1aeSAssar Westerlundformat.
3395e9cd1aeSAssar WesterlundTo help overcome this problem, there is a program
3405e9cd1aeSAssar Westerlund.Nm verify_krb5_conf
3415e9cd1aeSAssar Westerlundthat reads
3425e9cd1aeSAssar Westerlund.Nm
3435e9cd1aeSAssar Westerlundand tries to emit useful diagnostics from parsing errors.  Note that
3445e9cd1aeSAssar Westerlundthis program does not have any way of knowing what options are
3454137ff4cSJacques Vidrineactually used and thus cannot warn about unknown or misspelled ones.
346b528cefcSMark Murray.Sh SEE ALSO
347adb0ddaeSAssar Westerlund.Xr kinit 1 ,
3484137ff4cSJacques Vidrine.Xr krb5_425_conv_principal 3 ,
3494137ff4cSJacques Vidrine.Xr krb5_openlog 3 ,
3504137ff4cSJacques Vidrine.Xr strftime 3 ,
3514137ff4cSJacques Vidrine.Xr verify_krb5_conf 8
352