xref: /freebsd/crypto/heimdal/kuser/kinit.1 (revision 13e3f4d6d9d9c48a270a1a18a92e57a56f0a7059)
113e3f4d6SMark Murray.\" $Id: kinit.1,v 1.4 2000/02/01 14:12:13 joda Exp $
2b528cefcSMark Murray.\"
3b528cefcSMark Murray.Dd May 29, 1998
413e3f4d6SMark Murray.Dt KINIT 1
5b528cefcSMark Murray.Os HEIMDAL
6b528cefcSMark Murray.Sh NAME
713e3f4d6SMark Murray.Nm kinit ,
8b528cefcSMark Murray.Nm kauth
9b528cefcSMark Murray.Nd
10b528cefcSMark Murrayacquire initial tickets
11b528cefcSMark Murray.Sh SYNOPSIS
1213e3f4d6SMark Murray.Nm kinit
13b528cefcSMark Murray.Op Fl 4
14b528cefcSMark Murray.Op Fl -524init
15b528cefcSMark Murray.Op Fl -afslog
16b528cefcSMark Murray.Op Fl c Ar cachename
17b528cefcSMark Murray.Op Fl -cache= Ns Ar cachename
18b528cefcSMark Murray.Op Fl c Ar cachename
19b528cefcSMark Murray.Op Fl -cache= Ns Ar cachename
20b528cefcSMark Murray.Op Fl f
21b528cefcSMark Murray.Op Fl -forwardable
22b528cefcSMark Murray.Op Fl t Ar keytabname
23b528cefcSMark Murray.Op Fl -keytab= Ns Ar keytabname
24b528cefcSMark Murray.Op Fl l Ar seconds
25b528cefcSMark Murray.Op Fl -lifetime= Ns Ar seconds
26b528cefcSMark Murray.Op Fl p
27b528cefcSMark Murray.Op Fl -proxiable
28b528cefcSMark Murray.Op Fl R
29b528cefcSMark Murray.Op Fl -renew
30b528cefcSMark Murray.Op Fl -renewable
31b528cefcSMark Murray.Op Fl r Ar seconds
32b528cefcSMark Murray.Op Fl -renewable-life= Ns Ar seconds
33b528cefcSMark Murray.Op Fl S Ar principal
34b528cefcSMark Murray.Op Fl -server= Ns Ar principal
35b528cefcSMark Murray.Op Fl s Ar seconds
36b528cefcSMark Murray.Op Fl -start-time= Ns Ar seconds
37b528cefcSMark Murray.Op Fl k
38b528cefcSMark Murray.Op Fl -use-keytab
39b528cefcSMark Murray.Op Fl v
40b528cefcSMark Murray.Op Fl -validate
41b528cefcSMark Murray.Op Fl e
42b528cefcSMark Murray.Op Fl -enctypes= Ns Ar enctypes
43b528cefcSMark Murray.Op Fl -fcache-version= Ns Ar version
4413e3f4d6SMark Murray.Op Fl -no-addresses
45b528cefcSMark Murray.Op Fl -version
46b528cefcSMark Murray.Op Fl -help
47b528cefcSMark Murray.Op Ar principal
48b528cefcSMark Murray.Sh DESCRIPTION
49b528cefcSMark Murray.Nm
50b528cefcSMark Murrayis used to authenticate to the kerberos server as
51b528cefcSMark Murray.Ar principal ,
52b528cefcSMark Murrayor if none is given, a system generated default, and acquire a ticket
53b528cefcSMark Murraygranting ticket that can later be used to obtain tickets for other
54b528cefcSMark Murrayservices.
55b528cefcSMark MurraySupported options:
56b528cefcSMark Murray.Bl -tag -width Ds
57b528cefcSMark Murray.It Xo
58b528cefcSMark Murray.Fl c Ar cachename
59b528cefcSMark Murray.Fl -cache= Ns Ar cachename
60b528cefcSMark Murray.Xc
61b528cefcSMark MurrayThe credentials cache to put the acquired ticket in, if other than
62b528cefcSMark Murraydefault.
63b528cefcSMark Murray.It Xo
64b528cefcSMark Murray.Fl f Ns ,
65b528cefcSMark Murray.Fl -forwardable
66b528cefcSMark Murray.Xc
67b528cefcSMark MurrayGet ticket that can be forwarded to another host.
68b528cefcSMark Murray.It Xo
69b528cefcSMark Murray.Fl t Ar keytabname Ns ,
70b528cefcSMark Murray.Fl -keytab= Ns Ar keytabname
71b528cefcSMark Murray.Xc
72b528cefcSMark MurrayDon't ask for a password, but instead get the key from the specified
73b528cefcSMark Murraykeytab.
74b528cefcSMark Murray.It Xo
75b528cefcSMark Murray.Fl l Ar seconds Ns ,
76b528cefcSMark Murray.Fl -lifetime= Ns Ar seconds
77b528cefcSMark Murray.Xc
78b528cefcSMark MurraySpecifies the lifetime of the ticket.
79b528cefcSMark Murray.It Xo
80b528cefcSMark Murray.Fl p Ns ,
81b528cefcSMark Murray.Fl -proxiable
82b528cefcSMark Murray.Xc
83b528cefcSMark MurrayRequest tickets with the proxiable flag set.
84b528cefcSMark Murray.It Xo
85b528cefcSMark Murray.Fl R Ns ,
86b528cefcSMark Murray.Fl -renew
87b528cefcSMark Murray.Xc
88b528cefcSMark MurrayTry to renew ticket. The ticket must have the
89b528cefcSMark Murray.Sq renewable
90b528cefcSMark Murrayflag set, and must not be expired.
91b528cefcSMark Murray.It Fl -renewable
92b528cefcSMark MurrayThe same as
93b528cefcSMark Murray.Fl -renewable-life ,
94b528cefcSMark Murraywith an infinite time.
95b528cefcSMark Murray.It Xo
96b528cefcSMark Murray.Fl r Ar seconds Ns ,
97b528cefcSMark Murray.Fl -renewable-life= Ns Ar seconds
98b528cefcSMark Murray.Xc
99b528cefcSMark MurrayThe max renewable ticket life.
100b528cefcSMark Murray.It Xo
101b528cefcSMark Murray.Fl S Ar principal Ns ,
102b528cefcSMark Murray.Fl -server= Ns Ar principal
103b528cefcSMark Murray.Xc
104b528cefcSMark MurrayGet a ticket for a service other than krbtgt/LOCAL.REALM.
105b528cefcSMark Murray.It Xo
106b528cefcSMark Murray.Fl s Ar seconds Ns ,
107b528cefcSMark Murray.Fl -start-time= Ns Ar seconds
108b528cefcSMark Murray.Xc
109b528cefcSMark MurrayStart time of ticket, if other than the current time.
110b528cefcSMark Murray.It Xo
111b528cefcSMark Murray.Fl k Ns ,
112b528cefcSMark Murray.Fl -use-keytab
113b528cefcSMark Murray.Xc
114b528cefcSMark MurrayThe same as
115b528cefcSMark Murray.Fl -keytab ,
116b528cefcSMark Murraybut with the default keytab name (normally
117b528cefcSMark Murray.Ar FILE:/etc/krb5.keytab ) .
118b528cefcSMark Murray.It Xo
119b528cefcSMark Murray.Fl v Ns ,
120b528cefcSMark Murray.Fl -validate
121b528cefcSMark Murray.Xc
122b528cefcSMark MurrayTry to validate an invalid ticket.
123b528cefcSMark Murray.It Xo
124b528cefcSMark Murray.Fl e ,
125b528cefcSMark Murray.Fl -enctypes= Ns Ar enctypes
126b528cefcSMark Murray.Xc
127b528cefcSMark MurrayRequest tickets with this particular enctype.
128b528cefcSMark Murray.It Xo
129b528cefcSMark Murray.Fl -fcache-version= Ns Ar version
130b528cefcSMark Murray.Xc
131b528cefcSMark MurrayCreate a credentials cache of version
132b528cefcSMark Murray.Nm version .
133b528cefcSMark Murray.It Xo
13413e3f4d6SMark Murray.Fl -no-addresses
135b528cefcSMark Murray.Xc
136b528cefcSMark MurrayRequest a ticket with no addresses.
137b528cefcSMark Murray.El
138b528cefcSMark Murray
139b528cefcSMark MurrayThe following options are only available if
140b528cefcSMark Murray.Nm
14113e3f4d6SMark Murrayhas been compiled with support for Kerberos 4. The
14213e3f4d6SMark Murray.Nm kauth
14313e3f4d6SMark Murrayprogram is identical to
14413e3f4d6SMark Murray.Nm kinit ,
14513e3f4d6SMark Murraybut has these options enabled by
14613e3f4d6SMark Murraydefault.
147b528cefcSMark Murray.Bl -tag -width Ds
148b528cefcSMark Murray.It Xo
149b528cefcSMark Murray.Fl 4 Ns ,
150b528cefcSMark Murray.Fl -524init
151b528cefcSMark Murray.Xc
152b528cefcSMark MurrayTry to convert the obtained krbtgt to a version 4 compatible
153b528cefcSMark Murrayticket. It will store this ticket in the default Kerberos 4 ticket
154b528cefcSMark Murrayfile.
155b528cefcSMark Murray.It Fl -afslog
156b528cefcSMark MurrayGets AFS tickets, converts them to version 4 format, and stores them
157b528cefcSMark Murrayin the kernel. Only useful if you have AFS.
158b528cefcSMark Murray.El
159b528cefcSMark Murray.Sh ENVIRONMENT
160b528cefcSMark Murray.Bl -tag -width Ds
161b528cefcSMark Murray.It Ev KRB5CCNAME
162b528cefcSMark MurraySpecifies the default cache file.
163b528cefcSMark Murray.It Ev KRB5_CONFIG
164b528cefcSMark MurrayThe directory where the
165b528cefcSMark Murray.Pa krb5.conf
166b528cefcSMark Murraycan be found, default is
167b528cefcSMark Murray.Pa /etc .
168b528cefcSMark Murray.It Ev KRBTKFILE
169b528cefcSMark MurraySpecifies the Kerberos 4 ticket file to store version 4 tickets in.
170b528cefcSMark Murray.El
171b528cefcSMark Murray.\".Sh FILES
172b528cefcSMark Murray.\".Sh EXAMPLES
173b528cefcSMark Murray.\".Sh DIAGNOSTICS
174b528cefcSMark Murray.Sh SEE ALSO
175b528cefcSMark Murray.Xr krb5.conf 5 ,
176b528cefcSMark Murray.Xr klist 1 ,
177b528cefcSMark Murray.Xr kdestroy 1
178b528cefcSMark Murray.\".Sh STANDARDS
179b528cefcSMark Murray.\".Sh HISTORY
180b528cefcSMark Murray.\".Sh AUTHORS
181b528cefcSMark Murray.\".Sh BUGS
182