1 .\" Man page generated from reStructuredText.
3 .TH "K5IDENTITY" "5" " " "1.17" "MIT Kerberos"
5 k5identity \- Kerberos V5 client principal selection rules
7 .nr rst2man-indent-level 0
11 level \\n[rst2man-indent-level]
12 level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
19 .\" .rstReportMargin pre:
21 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
22 . nr rst2man-indent-level +1
23 .\" .rstReportMargin post:
27 .\" indent \\n[an-margin]
28 .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
29 .nr rst2man-indent-level -1
30 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
31 .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
35 The .k5identity file, which resides in a user\(aqs home directory,
36 contains a list of rules for selecting a client principals based on
37 the server being accessed. These rules are used to choose a
38 credential cache within the cache collection when possible.
40 Blank lines and lines beginning with \fB#\fP are ignored. Each line has
44 \fIprincipal\fP \fIfield\fP=\fIvalue\fP ...
48 If the server principal meets all of the field constraints, then
49 principal is chosen as the client principal. The following fields are
54 If the realm of the server principal is known, it is matched
55 against \fIvalue\fP, which may be a pattern using shell wildcards.
56 For host\-based server principals, the realm will generally only be
57 known if there is a domain_realm section in
58 krb5.conf(5) with a mapping for the hostname.
61 If the server principal is a host\-based principal, its service
62 component is matched against \fIvalue\fP, which may be a pattern using
66 If the server principal is a host\-based principal, its hostname
67 component is converted to lower case and matched against \fIvalue\fP,
68 which may be a pattern using shell wildcards.
70 If the server principal matches the constraints of multiple lines
71 in the .k5identity file, the principal from the first matching
72 line is used. If no line matches, credentials will be selected
73 some other way, such as the realm heuristic or the current primary
78 The following example .k5identity file selects the client principal
79 \fBalice@KRBTEST.COM\fP if the server principal is within that realm,
80 the principal \fBalice/root@EXAMPLE.COM\fP if the server host is within
81 a servers subdomain, and the principal \fBalice/mail@EXAMPLE.COM\fP when
82 accessing the IMAP service on \fBmail.example.com\fP:
88 alice@KRBTEST.COM realm=KRBTEST.COM
89 alice/root@EXAMPLE.COM host=*.servers.example.com
90 alice/mail@EXAMPLE.COM host=mail.example.com service=imap
97 kerberos(1), krb5.conf(5)
102 .\" Generated by docutils manpage writer.