Debian Codegraph @

kuser/kinit.1

raw
1 .\" Copyright (c) 1998 - 2003, 2006 Kungliga Tekniska Högskolan
2 .\" (Royal Institute of Technology, Stockholm, Sweden).
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\"
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\"
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.
15 .\"
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.
19 .\"
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
30 .\" SUCH DAMAGE.
31 .\"
32 .\" $Id$
33 .\"
34 .Dd April 25, 2006
35 .Dt KINIT 1
36 .Os HEIMDAL
37 .Sh NAME
38 .Nm kinit
39 .Nd acquire initial tickets
40 .Sh SYNOPSIS
41 .Nm kinit
42 .Op Fl Fl afslog
43 .Oo Fl c Ar cachename \*(Ba Xo
44 .Fl Fl cache= Ns Ar cachename
45 .Xc
46 .Oc
47 .Op Fl f | Fl Fl forwardable
48 .Op Fl F | Fl Fl no-forwardable
49 .Oo Fl t Ar keytabname \*(Ba Xo
50 .Fl Fl keytab= Ns Ar keytabname
51 .Xc
52 .Oc
53 .Oo Fl l Ar time \*(Ba Xo
54 .Fl Fl lifetime= Ns Ar time
55 .Xc
56 .Oc
57 .Op Fl p | Fl Fl proxiable
58 .Op Fl R | Fl Fl renew
59 .Op Fl Fl renewable
60 .Oo Fl r Ar time \*(Ba Xo
61 .Fl Fl renewable-life= Ns Ar time
62 .Xc
63 .Oc
64 .Oo Fl S Ar principal \*(Ba Xo
65 .Fl Fl server= Ns Ar principal
66 .Xc
67 .Oc
68 .Oo Fl s Ar time \*(Ba Xo
69 .Fl Fl start-time= Ns Ar time
70 .Xc
71 .Oc
72 .Op Fl k | Fl Fl use-keytab
73 .Op Fl v | Fl Fl validate
74 .Oo Fl e Ar enctypes \*(Ba Xo
75 .Fl Fl enctypes= Ns Ar enctypes
76 .Xc
77 .Oc
78 .Oo Fl a Ar addresses \*(Ba Xo
79 .Fl Fl extra-addresses= Ns Ar addresses
80 .Xc
81 .Oc
82 .Op Fl Fl password-file= Ns Ar filename
83 .Op Fl Fl fcache-version= Ns Ar version-number
84 .Op Fl A | Fl Fl no-addresses
85 .Op Fl n | Fl Fl anonymous
86 .Op Fl Fl enterprise
87 .Op Fl Fl version
88 .Op Fl Fl help
89 .Op Ar principal Op Ar command
90 .Sh DESCRIPTION
91 .Nm
92 is used to authenticate to the Kerberos server as
93 .Ar principal ,
94 or if none is given, a system generated default (typically your login
95 name at the default realm), and acquire a ticket granting ticket that
96 can later be used to obtain tickets for other services.
97 .Pp
98 Supported options:
99 .Bl -tag -width Ds
100 .It Fl c Ar cachename Fl Fl cache= Ns Ar cachename
101 The credentials cache to put the acquired ticket in, if other than
102 default.
103 .It Fl f Fl Fl forwardable
104 Obtain a ticket than can be forwarded to another host.
105 .It Fl F Fl Fl no-forwardable
106 Do not obtain a forwardable ticket.
107 .It Fl t Ar keytabname , Fl Fl keytab= Ns Ar keytabname
108 Don't ask for a password, but instead get the key from the specified
109 keytab.
110 .It Fl l Ar time , Fl Fl lifetime= Ns Ar time
111 Specifies the lifetime of the ticket.
112 The argument can either be in seconds, or a more human readable string
113 like
114 .Sq 1h .
115 .It Fl p , Fl Fl proxiable
116 Request tickets with the proxiable flag set.
117 .It Fl R , Fl Fl renew
118 Try to renew ticket.
119 The ticket must have the
120 .Sq renewable
121 flag set, and must not be expired.
122 .It Fl Fl renewable
123 The same as
124 .Fl Fl renewable-life ,
125 with an infinite time.
126 .It Fl r Ar time , Fl Fl renewable-life= Ns Ar time
127 The max renewable ticket life.
128 .It Fl S Ar principal , Fl Fl server= Ns Ar principal
129 Get a ticket for a service other than krbtgt/LOCAL.REALM.
130 .It Fl s Ar time , Fl Fl start-time= Ns Ar time
131 Obtain a ticket that starts to be valid
132 .Ar time
133 (which can really be a generic time specification, like
134 .Sq 1h )
135 seconds into the future.
136 .It Fl k , Fl Fl use-keytab
137 The same as
138 .Fl Fl keytab ,
139 but with the default keytab name (normally
140 .Ar FILE:/etc/krb5.keytab ) .
141 .It Fl v , Fl Fl validate
142 Try to validate an invalid ticket.
143 .It Fl e , Fl Fl enctypes= Ns Ar enctypes
144 Request tickets with this particular enctype.
145 .It Fl Fl password-file= Ns Ar filename
146 read the password from the first line of
147 .Ar filename .
148 If the
149 .Ar filename
150 is
151 .Ar STDIN ,
152 the password will be read from the standard input.
153 .It Fl Fl fcache-version= Ns Ar version-number
154 Create a credentials cache of version
155 .Ar version-number .
156 .It Fl a , Fl Fl extra-addresses= Ns Ar enctypes
157 Adds a set of addresses that will, in addition to the systems local
158 addresses, be put in the ticket.
159 This can be useful if all addresses a client can use can't be
160 automatically figured out.
161 One such example is if the client is behind a firewall.
162 Also settable via
163 .Li libdefaults/extra_addresses
164 in
165 .Xr krb5.conf 5 .
166 .It Fl A , Fl Fl no-addresses
167 Request a ticket with no addresses.
168 .It Fl n , Fl Fl anonymous
169 Request an anonymous ticket.
170 With the default (false) setting of the
171 .Ar historical_anon_pkinit
172 configuration parameter, if the principal is specified as @REALM, then
173 anonymous PKINIT will be used to acquire an unauthenticated anonymous ticket
174 and both the client name and (with fully RFC-comformant KDCs) realm in the
175 returned ticket will be anonymized.
176 Otherwise, authentication proceeds as normal and the anonymous ticket will have
177 only the client name anonymized.
178 With
179 .Ar historical_anon_pkinit
180 set to
181 .Li true ,
182 the principal is interpreted as a realm even without an at-sign prefix, and it
183 is not possible to obtain authenticated anonymized tickets.
184 .It Fl Fl enterprise
185 Parse principal as a enterprise (KRB5-NT-ENTERPRISE) name. Enterprise
186 names are email like principals that are stored in the name part of
187 the principal, and since there are two @ characters the parser needs
188 to know that the first is not a realm.
189 An example of an enterprise name is
190 .Dq [email protected]@KTH.SE ,
191 and this option is usually used with canonicalize so that the
192 principal returned from the KDC will typically be the real principal
193 name.
194 .It Fl Fl afslog
195 Gets AFS tickets, converts them to version 4 format, and stores them
196 in the kernel.
197 Only useful if you have AFS.
198 .El
199 .Pp
200 The
201 .Ar forwardable ,
202 .Ar proxiable ,
203 .Ar ticket_life ,
204 and
205 .Ar renewable_life
206 options can be set to a default value from the
207 .Dv appdefaults
208 section in krb5.conf, see
209 .Xr krb5_appdefault 3 .
210 .Pp
211 If a
212 .Ar command
213 is given,
214 .Nm
215 will set up new credentials caches, and AFS PAG, and then run the given
216 command.
217 When it finishes the credentials will be removed.
218 .Sh ENVIRONMENT
219 .Bl -tag -width Ds
220 .It Ev KRB5CCNAME
221 Specifies the default credentials cache.
222 .It Ev KRB5_CONFIG
223 The file name of
224 .Pa krb5.conf ,
225 the default being
226 .Pa /etc/krb5.conf .
227 .El
228 .\".Sh FILES
229 .\".Sh EXAMPLES
230 .\".Sh DIAGNOSTICS
231 .Sh SEE ALSO
232 .Xr kdestroy 1 ,
233 .Xr klist 1 ,
234 .Xr krb5_appdefault 3 ,
235 .Xr krb5.conf 5
236 .\".Sh STANDARDS
237 .\".Sh HISTORY
238 .\".Sh AUTHORS
239 .\".Sh BUGS