xref: /freebsd/crypto/heimdal/kuser/kinit.1 (revision bbd80c285ead4d04e4b8b9e950164352819694ba)
1bbd80c28SJacques Vidrine.\" Copyright (c) 1998 - 2002 Kungliga Tekniska H�gskolan
2bbd80c28SJacques Vidrine.\" (Royal Institute of Technology, Stockholm, Sweden).
3bbd80c28SJacques Vidrine.\" All rights reserved.
4bbd80c28SJacques Vidrine.\"
5bbd80c28SJacques Vidrine.\" Redistribution and use in source and binary forms, with or without
6bbd80c28SJacques Vidrine.\" modification, are permitted provided that the following conditions
7bbd80c28SJacques Vidrine.\" are met:
8bbd80c28SJacques Vidrine.\"
9bbd80c28SJacques Vidrine.\" 1. Redistributions of source code must retain the above copyright
10bbd80c28SJacques Vidrine.\"    notice, this list of conditions and the following disclaimer.
11bbd80c28SJacques Vidrine.\"
12bbd80c28SJacques Vidrine.\" 2. Redistributions in binary form must reproduce the above copyright
13bbd80c28SJacques Vidrine.\"    notice, this list of conditions and the following disclaimer in the
14bbd80c28SJacques Vidrine.\"    documentation and/or other materials provided with the distribution.
15bbd80c28SJacques Vidrine.\"
16bbd80c28SJacques Vidrine.\" 3. Neither the name of the Institute nor the names of its contributors
17bbd80c28SJacques Vidrine.\"    may be used to endorse or promote products derived from this software
18bbd80c28SJacques Vidrine.\"    without specific prior written permission.
19bbd80c28SJacques Vidrine.\"
20bbd80c28SJacques Vidrine.\" THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
21bbd80c28SJacques Vidrine.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22bbd80c28SJacques Vidrine.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23bbd80c28SJacques Vidrine.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
24bbd80c28SJacques Vidrine.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25bbd80c28SJacques Vidrine.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26bbd80c28SJacques Vidrine.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27bbd80c28SJacques Vidrine.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28bbd80c28SJacques Vidrine.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29bbd80c28SJacques Vidrine.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30bbd80c28SJacques Vidrine.\" SUCH DAMAGE.
31bbd80c28SJacques Vidrine.\"
32bbd80c28SJacques Vidrine.\" $Id: kinit.1,v 1.23 2003/04/06 17:49:05 lha Exp $
33b528cefcSMark Murray.\"
34b528cefcSMark Murray.Dd May 29, 1998
3513e3f4d6SMark Murray.Dt KINIT 1
36b528cefcSMark Murray.Os HEIMDAL
37b528cefcSMark Murray.Sh NAME
384137ff4cSJacques Vidrine.Nm kinit
39b528cefcSMark Murray.Nm kauth
4045524cd7SAssar Westerlund.Nd acquire initial tickets
41b528cefcSMark Murray.Sh SYNOPSIS
4213e3f4d6SMark Murray.Nm kinit
435e9cd1aeSAssar Westerlund.Op Fl 4 | Fl -524init
444137ff4cSJacques Vidrine.Op Fl 9 | Fl -524convert
45b528cefcSMark Murray.Op Fl -afslog
465e9cd1aeSAssar Westerlund.Oo Fl c Ar cachename \*(Ba Xo
47adb0ddaeSAssar Westerlund.Fl -cache= Ns Ar cachename
485e9cd1aeSAssar Westerlund.Xc
49adb0ddaeSAssar Westerlund.Oc
505e9cd1aeSAssar Westerlund.Op Fl f | Fl -forwardable
515e9cd1aeSAssar Westerlund.Oo Fl t Ar keytabname \*(Ba Xo
52adb0ddaeSAssar Westerlund.Fl -keytab= Ns Ar keytabname
535e9cd1aeSAssar Westerlund.Xc
54adb0ddaeSAssar Westerlund.Oc
555e9cd1aeSAssar Westerlund.Oo Fl l Ar time \*(Ba Xo
56adb0ddaeSAssar Westerlund.Fl -lifetime= Ns Ar time
575e9cd1aeSAssar Westerlund.Xc
58adb0ddaeSAssar Westerlund.Oc
595e9cd1aeSAssar Westerlund.Op Fl p | Fl -proxiable
605e9cd1aeSAssar Westerlund.Op Fl R | Fl -renew
61b528cefcSMark Murray.Op Fl -renewable
625e9cd1aeSAssar Westerlund.Oo Fl r Ar time \*(Ba Xo
63adb0ddaeSAssar Westerlund.Fl -renewable-life= Ns Ar time
645e9cd1aeSAssar Westerlund.Xc
65adb0ddaeSAssar Westerlund.Oc
665e9cd1aeSAssar Westerlund.Oo Fl S Ar principal \*(Ba Xo
67adb0ddaeSAssar Westerlund.Fl -server= Ns Ar principal
685e9cd1aeSAssar Westerlund.Xc
69adb0ddaeSAssar Westerlund.Oc
705e9cd1aeSAssar Westerlund.Oo Fl s Ar time \*(Ba Xo
71adb0ddaeSAssar Westerlund.Fl -start-time= Ns Ar time
725e9cd1aeSAssar Westerlund.Xc
73adb0ddaeSAssar Westerlund.Oc
745e9cd1aeSAssar Westerlund.Op Fl k | Fl -use-keytab
755e9cd1aeSAssar Westerlund.Op Fl v | Fl -validate
764137ff4cSJacques Vidrine.Oo Fl e Ar enctypes \*(Ba Xo
774137ff4cSJacques Vidrine.Fl -enctypes= Ns Ar enctypes
785e9cd1aeSAssar Westerlund.Xc
79adb0ddaeSAssar Westerlund.Oc
808373020dSJacques Vidrine.Oo Fl a Ar addresses \*(Ba Xo
818373020dSJacques Vidrine.Fl -extra-addresses= Ns Ar addresses
828373020dSJacques Vidrine.Xc
838373020dSJacques Vidrine.Oc
845e9cd1aeSAssar Westerlund.Op Fl -fcache-version= Ns Ar integer
8513e3f4d6SMark Murray.Op Fl -no-addresses
865e9cd1aeSAssar Westerlund.Op Fl -anonymous
87b528cefcSMark Murray.Op Fl -version
88b528cefcSMark Murray.Op Fl -help
89adb0ddaeSAssar Westerlund.Op Ar principal Op Ar command
90b528cefcSMark Murray.Sh DESCRIPTION
91b528cefcSMark Murray.Nm
92bbd80c28SJacques Vidrineis used to authenticate to the Kerberos server as
93b528cefcSMark Murray.Ar principal ,
945e9cd1aeSAssar Westerlundor if none is given, a system generated default (typically your login
955e9cd1aeSAssar Westerlundname at the default realm), and acquire a ticket granting ticket that
965e9cd1aeSAssar Westerlundcan later be used to obtain tickets for other services.
975e9cd1aeSAssar Westerlund.Pp
984137ff4cSJacques VidrineIf you have compiled
994137ff4cSJacques Vidrine.Nm kinit
1004137ff4cSJacques Vidrinewith Kerberos 4 support and you have a
1015e9cd1aeSAssar WesterlundKerberos 4 server,
1025e9cd1aeSAssar Westerlund.Nm
1035e9cd1aeSAssar Westerlundwill detect this and get you Kerberos 4 tickets.
1045e9cd1aeSAssar Westerlund.Pp
105b528cefcSMark MurraySupported options:
106b528cefcSMark Murray.Bl -tag -width Ds
107b528cefcSMark Murray.It Xo
108b528cefcSMark Murray.Fl c Ar cachename
109b528cefcSMark Murray.Fl -cache= Ns Ar cachename
110b528cefcSMark Murray.Xc
111b528cefcSMark MurrayThe credentials cache to put the acquired ticket in, if other than
112b528cefcSMark Murraydefault.
113b528cefcSMark Murray.It Xo
1148373020dSJacques Vidrine.Fl f ,
115b528cefcSMark Murray.Fl -forwardable
116b528cefcSMark Murray.Xc
117b528cefcSMark MurrayGet ticket that can be forwarded to another host.
118b528cefcSMark Murray.It Xo
1198373020dSJacques Vidrine.Fl t Ar keytabname ,
120b528cefcSMark Murray.Fl -keytab= Ns Ar keytabname
121b528cefcSMark Murray.Xc
122b528cefcSMark MurrayDon't ask for a password, but instead get the key from the specified
123b528cefcSMark Murraykeytab.
124b528cefcSMark Murray.It Xo
125bbd80c28SJacques Vidrine.Fl l Ar time ,
1265e9cd1aeSAssar Westerlund.Fl -lifetime= Ns Ar time
127b528cefcSMark Murray.Xc
1285e9cd1aeSAssar WesterlundSpecifies the lifetime of the ticket. The argument can either be in
1295e9cd1aeSAssar Westerlundseconds, or a more human readable string like
1305e9cd1aeSAssar Westerlund.Sq 1h .
131b528cefcSMark Murray.It Xo
1328373020dSJacques Vidrine.Fl p ,
133b528cefcSMark Murray.Fl -proxiable
134b528cefcSMark Murray.Xc
135b528cefcSMark MurrayRequest tickets with the proxiable flag set.
136b528cefcSMark Murray.It Xo
1378373020dSJacques Vidrine.Fl R ,
138b528cefcSMark Murray.Fl -renew
139b528cefcSMark Murray.Xc
140b528cefcSMark MurrayTry to renew ticket. The ticket must have the
141b528cefcSMark Murray.Sq renewable
142b528cefcSMark Murrayflag set, and must not be expired.
143b528cefcSMark Murray.It Fl -renewable
144b528cefcSMark MurrayThe same as
145b528cefcSMark Murray.Fl -renewable-life ,
146b528cefcSMark Murraywith an infinite time.
147b528cefcSMark Murray.It Xo
1488373020dSJacques Vidrine.Fl r Ar time ,
1495e9cd1aeSAssar Westerlund.Fl -renewable-life= Ns Ar time
150b528cefcSMark Murray.Xc
151b528cefcSMark MurrayThe max renewable ticket life.
152b528cefcSMark Murray.It Xo
1538373020dSJacques Vidrine.Fl S Ar principal ,
154b528cefcSMark Murray.Fl -server= Ns Ar principal
155b528cefcSMark Murray.Xc
156b528cefcSMark MurrayGet a ticket for a service other than krbtgt/LOCAL.REALM.
157b528cefcSMark Murray.It Xo
1588373020dSJacques Vidrine.Fl s Ar time ,
1595e9cd1aeSAssar Westerlund.Fl -start-time= Ns Ar time
160b528cefcSMark Murray.Xc
1615e9cd1aeSAssar WesterlundObtain a ticket that starts to be valid
1625e9cd1aeSAssar Westerlund.Ar time
1635e9cd1aeSAssar Westerlund(which can really be a generic time specification, like
1645e9cd1aeSAssar Westerlund.Sq 1h )
1655e9cd1aeSAssar Westerlundseconds into the future.
166b528cefcSMark Murray.It Xo
1678373020dSJacques Vidrine.Fl k ,
168b528cefcSMark Murray.Fl -use-keytab
169b528cefcSMark Murray.Xc
170b528cefcSMark MurrayThe same as
171b528cefcSMark Murray.Fl -keytab ,
172b528cefcSMark Murraybut with the default keytab name (normally
173b528cefcSMark Murray.Ar FILE:/etc/krb5.keytab ) .
174b528cefcSMark Murray.It Xo
1758373020dSJacques Vidrine.Fl v ,
176b528cefcSMark Murray.Fl -validate
177b528cefcSMark Murray.Xc
178b528cefcSMark MurrayTry to validate an invalid ticket.
179b528cefcSMark Murray.It Xo
180b528cefcSMark Murray.Fl e ,
181b528cefcSMark Murray.Fl -enctypes= Ns Ar enctypes
182b528cefcSMark Murray.Xc
183b528cefcSMark MurrayRequest tickets with this particular enctype.
184b528cefcSMark Murray.It Xo
185b528cefcSMark Murray.Fl -fcache-version= Ns Ar version
186b528cefcSMark Murray.Xc
187b528cefcSMark MurrayCreate a credentials cache of version
188b528cefcSMark Murray.Nm version .
189b528cefcSMark Murray.It Xo
1908373020dSJacques Vidrine.Fl a ,
1918373020dSJacques Vidrine.Fl -extra-addresses= Ns Ar enctypes
1928373020dSJacques Vidrine.Xc
1938373020dSJacques VidrineAdds a set of addresses that will, in addition to the systems local
1948373020dSJacques Vidrineaddresses, be put in the ticket. This can be useful if all addresses a
1958373020dSJacques Vidrineclient can use can't be automatically figured out. One such example is
1968373020dSJacques Vidrineif the client is behind a firewall. Also settable via
1978373020dSJacques Vidrine.Li libdefaults/extra_addresses
1988373020dSJacques Vidrinein
1998373020dSJacques Vidrine.Xr krb5.conf 5 .
2008373020dSJacques Vidrine.It Xo
20113e3f4d6SMark Murray.Fl -no-addresses
202b528cefcSMark Murray.Xc
203b528cefcSMark MurrayRequest a ticket with no addresses.
2045e9cd1aeSAssar Westerlund.It Xo
2055e9cd1aeSAssar Westerlund.Fl -anonymous
2065e9cd1aeSAssar Westerlund.Xc
2075e9cd1aeSAssar WesterlundRequest an anonymous ticket (which means that the ticket will be
2085e9cd1aeSAssar Westerlundissued to an anonymous principal, typically
2095e9cd1aeSAssar Westerlund.Dq anonymous@REALM ) .
210b528cefcSMark Murray.El
2115e9cd1aeSAssar Westerlund.Pp
212b528cefcSMark MurrayThe following options are only available if
213b528cefcSMark Murray.Nm
2144137ff4cSJacques Vidrinehas been compiled with support for Kerberos 4.
215b528cefcSMark Murray.Bl -tag -width Ds
216b528cefcSMark Murray.It Xo
2178373020dSJacques Vidrine.Fl 4 ,
218b528cefcSMark Murray.Fl -524init
219b528cefcSMark Murray.Xc
2204137ff4cSJacques VidrineTry to convert the obtained Kerberos 5 krbtgt to a version 4
2214137ff4cSJacques Vidrinecompatible ticket. It will store this ticket in the default Kerberos 4
2224137ff4cSJacques Vidrineticket file.
2234137ff4cSJacques Vidrine.It Xo
2248373020dSJacques Vidrine.Fl 9 ,
2254137ff4cSJacques Vidrine.Fl -524convert
2264137ff4cSJacques Vidrine.Xc
2274137ff4cSJacques Vidrineonly convert ticket to version 4
228b528cefcSMark Murray.It Fl -afslog
229b528cefcSMark MurrayGets AFS tickets, converts them to version 4 format, and stores them
230b528cefcSMark Murrayin the kernel. Only useful if you have AFS.
231b528cefcSMark Murray.El
2325e9cd1aeSAssar Westerlund.Pp
2335e9cd1aeSAssar WesterlundThe
2345e9cd1aeSAssar Westerlund.Ar forwardable ,
2355e9cd1aeSAssar Westerlund.Ar proxiable ,
2365e9cd1aeSAssar Westerlund.Ar ticket_life ,
2375e9cd1aeSAssar Westerlundand
2385e9cd1aeSAssar Westerlund.Ar renewable_life
2395e9cd1aeSAssar Westerlundoptions can be set to a default value from the
2405e9cd1aeSAssar Westerlund.Dv appdefaults
2415e9cd1aeSAssar Westerlundsection in krb5.conf, see
2425e9cd1aeSAssar Westerlund.Xr krb5_appdefault 3 .
243adb0ddaeSAssar Westerlund.Pp
244adb0ddaeSAssar WesterlundIf  a
245adb0ddaeSAssar Westerlund.Ar command
246adb0ddaeSAssar Westerlundis given,
247adb0ddaeSAssar Westerlund.Nm kinit
248adb0ddaeSAssar Westerlundwill setup new credentials caches, and AFS PAG, and then run the given
249adb0ddaeSAssar Westerlundcommand. When it finishes the credentials will be removed.
250b528cefcSMark Murray.Sh ENVIRONMENT
251b528cefcSMark Murray.Bl -tag -width Ds
252b528cefcSMark Murray.It Ev KRB5CCNAME
2534137ff4cSJacques VidrineSpecifies the default credentials cache.
254b528cefcSMark Murray.It Ev KRB5_CONFIG
2554137ff4cSJacques VidrineThe file name of
256b528cefcSMark Murray.Pa krb5.conf
2574137ff4cSJacques Vidrine, the default being
2584137ff4cSJacques Vidrine.Pa /etc/krb5.conf .
259b528cefcSMark Murray.It Ev KRBTKFILE
260b528cefcSMark MurraySpecifies the Kerberos 4 ticket file to store version 4 tickets in.
261b528cefcSMark Murray.El
262b528cefcSMark Murray.\".Sh FILES
263b528cefcSMark Murray.\".Sh EXAMPLES
264b528cefcSMark Murray.\".Sh DIAGNOSTICS
265b528cefcSMark Murray.Sh SEE ALSO
2665e9cd1aeSAssar Westerlund.Xr kdestroy 1 ,
267b528cefcSMark Murray.Xr klist 1 ,
2684137ff4cSJacques Vidrine.Xr krb5_appdefault 3 ,
2694137ff4cSJacques Vidrine.Xr krb5.conf 5
270b528cefcSMark Murray.\".Sh STANDARDS
271b528cefcSMark Murray.\".Sh HISTORY
272b528cefcSMark Murray.\".Sh AUTHORS
273b528cefcSMark Murray.\".Sh BUGS
274