1 .\" Copyright (c) 1998 - 2003, 2006 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" 3. Neither the name of the Institute nor the names of its contributors
17 .\" may be used to endorse or promote products derived from this software
18 .\" without specific prior written permission.
20 .\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
32 .\" $Heimdal: kinit.1 17822 2006-07-10 14:46:58Z lha $
33 .\" $NetBSD: kinit.1,v 1.10 2008/03/22 08:37:03 mlelstv Exp $
41 .Nd acquire initial tickets
44 .Op Fl 4 | Fl -524init
45 .Op Fl 9 | Fl -524convert
47 .Oo Fl c Ar cachename \*(Ba Xo
48 .Fl -cache= Ns Ar cachename
51 .Op Fl f | Fl -forwardable
52 .Oo Fl t Ar keytabname \*(Ba Xo
53 .Fl -keytab= Ns Ar keytabname
56 .Oo Fl l Ar time \*(Ba Xo
57 .Fl -lifetime= Ns Ar time
60 .Op Fl p | Fl -proxiable
63 .Oo Fl r Ar time \*(Ba Xo
64 .Fl -renewable-life= Ns Ar time
67 .Oo Fl S Ar principal \*(Ba Xo
68 .Fl -server= Ns Ar principal
71 .Oo Fl s Ar time \*(Ba Xo
72 .Fl -start-time= Ns Ar time
75 .Op Fl k | Fl -use-keytab
76 .Op Fl v | Fl -validate
77 .Oo Fl e Ar enctypes \*(Ba Xo
78 .Fl -enctypes= Ns Ar enctypes
81 .Oo Fl a Ar addresses \*(Ba Xo
82 .Fl -extra-addresses= Ns Ar addresses
85 .Op Fl -password-file= Ns Ar filename
86 .Op Fl -fcache-version= Ns Ar version-number
87 .Op Fl A | Fl -no-addresses
91 .Op Ar principal Op Ar command
94 is used to authenticate to the Kerberos server as
96 or if none is given, a system generated default (typically your login
97 name at the default realm), and acquire a ticket granting ticket that
98 can later be used to obtain tickets for other services.
102 with Kerberos 4 support and you have a
105 will detect this and get you Kerberos 4 tickets.
109 .It Fl c Ar cachename , Fl -cache= Ns Ar cachename
110 The credentials cache to put the acquired ticket in, if other than
112 .It Fl f , Fl -forwardable
113 Get ticket that can be forwarded to another host.
114 .It Fl t Ar keytabname , Fl -keytab= Ns Ar keytabname
115 Don't ask for a password, but instead get the key from the specified
117 .It Fl l Ar time , Fl -lifetime= Ns Ar time
118 Specifies the lifetime of the ticket.
119 The argument can either be in seconds, or a more human readable string
122 .It Fl p , Fl -proxiable
123 Request tickets with the proxiable flag set.
124 .It Fl R , .Fl -renew
126 The ticket must have the
128 flag set, and must not be expired.
131 .Fl -renewable-life ,
132 with an infinite time.
133 .It Fl r Ar time , Fl -renewable-life= Ns Ar time
134 The max renewable ticket life.
135 .It Fl S Ar principal , Fl -server= Ns Ar principal
136 Get a ticket for a service other than krbtgt/LOCAL.REALM.
137 .It Fl s Ar time , Fl -start-time= Ns Ar time
138 Obtain a ticket that starts to be valid
140 (which can really be a generic time specification, like
142 seconds into the future.
143 .It Fl k , Fl -use-keytab
146 but with the default keytab name (normally
147 .Ar FILE:/etc/krb5.keytab ) .
148 .It Fl v , Fl -validate
149 Try to validate an invalid ticket.
150 .It Fl e , Fl -enctypes= Ns Ar enctypes
151 Request tickets with this particular enctype.
152 .It Fl -password-file= Ns Ar filename
153 read the password from the first line of
159 the password will be read from the standard input.
160 .It Fl -fcache-version= Ns Ar version-number
161 Create a credentials cache of version
163 .It Fl a , Fl -extra-addresses= Ns Ar enctypes
164 Adds a set of addresses that will, in addition to the systems local
165 addresses, be put in the ticket.
166 This can be useful if all addresses a client can use can't be
167 automatically figured out.
168 One such example is if the client is behind a firewall.
170 .Li libdefaults/extra_addresses
173 .It Fl A , Fl -no-addresses
174 Request a ticket with no addresses.
176 Request an anonymous ticket (which means that the ticket will be
177 issued to an anonymous principal, typically
178 .Dq anonymous@REALM ) .
181 The following options are only available if
183 has been compiled with support for Kerberos 4.
185 .It Fl 4 , Fl -524init
186 Try to convert the obtained Kerberos 5 krbtgt to a version 4
188 It will store this ticket in the default Kerberos 4 ticket file.
189 .It Fl 9 , Fl -524convert
190 only convert ticket to version 4
192 Gets AFS tickets, converts them to version 4 format, and stores them
194 Only useful if you have AFS.
203 options can be set to a default value from the
205 section in krb5.conf, see
206 .Xr krb5_appdefault 3 .
212 will set up new credentials caches, and AFS PAG, and then run the given
214 When it finishes the credentials will be removed.
218 Specifies the default credentials cache.
225 Specifies the Kerberos 4 ticket file to store version 4 tickets in.
233 .Xr krb5_appdefault 3 ,