1KINIT(1)                  BSD General Commands Manual                 KINIT(1)
2

NAME

4     kinit — acquire initial tickets
5

SYNOPSIS

7     kinit [--afslog] [-c cachename | --cache=cachename] [-f | --forwardable]
8           [-F | --no-forwardable] [-t keytabname | --keytab=keytabname] [-l
9           time | --lifetime=time] [-p | --proxiable] [-R | --renew]
10           [--renewable] [-r time | --renewable-life=time] [-S principal |
11           --server=principal] [-s time | --start-time=time]
12           [-k | --use-keytab] [-v | --validate] [-e enctypes |
13           --enctypes=enctypes] [-a addresses | --extra-addresses=addresses]
14           [--password-file=filename] [--fcache-version=version-number]
15           [-A | --no-addresses] [-n | --anonymous] [--enterprise] [--version]
16           [--help] [principal [command]]
17

DESCRIPTION

19     kinit is used to authenticate to the Kerberos server as principal, or if
20     none is given, a system generated default (typically your login name at
21     the default realm), and acquire a ticket granting ticket that can later
22     be used to obtain tickets for other services.
23
24     Supported options:
25
26     -c cachename --cache=cachename
27             The credentials cache to put the acquired ticket in, if other
28             than default.
29
30     -f --forwardable
31             Obtain a ticket than can be forwarded to another host.
32
33     -F --no-forwardable
34             Do not obtain a forwardable ticket.
35
36     -t keytabname, --keytab=keytabname
37             Don't ask for a password, but instead get the key from the speci‐
38             fied keytab.
39
40     -l time, --lifetime=time
41             Specifies the lifetime of the ticket.  The argument can either be
42             in seconds, or a more human readable string like ‘1h’.
43
44     -p, --proxiable
45             Request tickets with the proxiable flag set.
46
47     -R, --renew
48             Try to renew ticket.  The ticket must have the ‘renewable’ flag
49             set, and must not be expired.
50
51     --renewable
52             The same as --renewable-life, with an infinite time.
53
54     -r time, --renewable-life=time
55             The max renewable ticket life.
56
57     -S principal, --server=principal
58             Get a ticket for a service other than krbtgt/LOCAL.REALM.
59
60     -s time, --start-time=time
61             Obtain a ticket that starts to be valid time (which can really be
62             a generic time specification, like ‘1h’) seconds into the future.
63
64     -k, --use-keytab
65             The same as --keytab, but with the default keytab name (normally
66             FILE:/etc/krb5.keytab).
67
68     -v, --validate
69             Try to validate an invalid ticket.
70
71     -e, --enctypes=enctypes
72             Request tickets with this particular enctype.
73
74     --password-file=filename
75             read the password from the first line of filename.  If the
76             filename is STDIN, the password will be read from the standard
77             input.
78
79     --fcache-version=version-number
80             Create a credentials cache of version version-number.
81
82     -a, --extra-addresses=enctypes
83             Adds a set of addresses that will, in addition to the systems
84             local addresses, be put in the ticket.  This can be useful if all
85             addresses a client can use can't be automatically figured out.
86             One such example is if the client is behind a firewall.  Also
87             settable via libdefaults/extra_addresses in krb5.conf(5).
88
89     -A, --no-addresses
90             Request a ticket with no addresses.
91
92     -n, --anonymous
93             Request an anonymous ticket. If the principal is specified as
94             @REALM, then anonymous PKINIT will be used to acquire an unau‐
95             thenticated anonymous ticket and both the client name and realm
96             in the returned ticket will be anonymized.  Otherwise, authenti‐
97             cation proceeds as normal and the anonymous ticket will have only
98             the client name anonymized.
99
100     --enterprise
101             Parse principal as a enterprise (KRB5-NT-ENTERPRISE) name. Enter‐
102             prise names are email like principals that are stored in the name
103             part of the principal, and since there are two @ characters the
104             parser needs to know that the first is not a realm.  An example
105             of an enterprise name is “lha@e.kth.se@KTH.SE”, and this option
106             is usually used with canonicalize so that the principal returned
107             from the KDC will typically be the real principal name.
108
109     --afslog
110             Gets AFS tickets, converts them to version 4 format, and stores
111             them in the kernel.  Only useful if you have AFS.
112
113     The forwardable, proxiable, ticket_life, and renewable_life options can
114     be set to a default value from the appdefaults section in krb5.conf, see
115     krb5_appdefault(3).
116
117     If  a command is given, kinit will set up new credentials caches, and AFS
118     PAG, and then run the given command.  When it finishes the credentials
119     will be removed.
120

ENVIRONMENT

122     KRB5CCNAME
123             Specifies the default credentials cache.
124
125     KRB5_CONFIG
126             The file name of krb5.conf, the default being /etc/krb5.conf.
127

SEE ALSO

129     kdestroy(1), klist(1), krb5_appdefault(3), krb5.conf(5)
130
131HEIMDAL                         April 25, 2006                         HEIMDAL
Impressum