1.K5LOGIN(5)                   File Formats Manual                  .K5LOGIN(5)
2
3
4

NAME

6       .k5identity - Kerberos V5 client principal selection rules
7

DESCRIPTION

9       The  .k5identity  file,  which resides in a user's home directory, con‐
10       tains a list of rules for selecting a client principals  based  on  the
11       server  being  accessed.   These  rules are used to choose a credential
12       cache within the cache collection when possible.
13
14       Blank lines and lines beginning with '#' are ignored.   Each  line  has
15       the form:
16
17              principal field=value ...
18
19       If  the server principal meets all of the field constraints, then prin‐
20       cipal is chosen as the client principal.  The following fields are rec‐
21       ognized:
22
23       realm  If  the  realm  of  the server principal is known, it is matched
24              against value, which may be a  pattern  using  shell  wildcards.
25              For  host-based server principals, the realm will generally only
26              be known if there is a domain_realm section in krb5.conf with  a
27              mapping for the hostname.
28
29       service
30              If  the  server principal is a host-based principal, its service
31              component is matched against value, which may be a pattern using
32              shell wildcards.
33
34       host   If  the server principal is a host-based principal, its hostname
35              component is converted to lower case and matched against  value,
36              which may be a pattern using shell wildcards.
37
38       If  the  server  principal matches the constraints of multiple lines in
39       the .k5identity file, the principal from the  first  matching  line  is
40       used.  If no line matches, credentials will be selected some other way,
41       such as the realm heuristic or the current primary cache.
42

EXAMPLE

44       The following example .k5identity file  selects  the  client  principal
45       alice@KRBTEST.COM  if  the  server  principal is within that realm, the
46       principal alice/root@EXAMPLE.COM if the server host is within a servers
47       subdomain,  and the principal alice/mail@EXAMPLE.COM when accessing the
48       IMAP service on mail.example.com.
49
50              alice@KRBTEST.COM       realm=KRBTEST.COM
51              alice/root@EXAMPLE.COM  host=*.servers.example.com
52              alice/mail@EXAMPLE.COM  host=mail.example.com service=imap
53

SEE ALSO

55       kerberos(1), krb5.conf(5)
56
57
58
59                                                                   .K5LOGIN(5)
Impressum