summaryrefslogtreecommitdiff
path: root/usr/src/man/man1/klist.1
blob: 4c367f1fc67f623c20779ea9f71280362ba2119f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
'\" te
.\" Copyright 1987, 1989 by the Student Information Processing Board of the Massachusetts Institute of Technology.  For copying and distribution information,  please see the file kerberosv5/mit-sipb-copyright.h.
.\" Portions Copyright (c) 2004, Sun Microsystems, Inc.  All Rights Reserved
.\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
.\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
.\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
.TH KLIST 1 "Nov 16, 2006"
.SH NAME
klist \- list currently held Kerberos tickets
.SH SYNOPSIS
.LP
.nf
\fB/usr/bin/klist\fR [\fB-e\fR]
     [ [\fB-c\fR] [\fB-f\fR] [\fB-s\fR] [\fB-a\fR [\fB-n\fR]] [\fIcache_name\fR]]
     [\fB-k\fR [\fB-t\fR] [\fB-K\fR] [\fIkeytab_file\fR]]
.fi

.SH DESCRIPTION
.sp
.LP
The \fBklist\fR utility prints the name of the credentials cache, the identity
of the principal that the tickets are for (as listed in the ticket file), and
the principal names of all Kerberos tickets currently held by the user, along
with the issue and expiration time for each authenticator. Principal names are
listed in the form \fIname\fR\fB/\fR\fIinstance\fR\fB@\fR\fIrealm\fR, with
the '\fB/\fR' omitted if the instance is not included, and the '\fB@\fR' omitted if
the realm is  not included.
.sp
.LP
If \fIcache_file\fR or \fIkeytab_name\fR is not specified, \fBklist\fR displays
the credentials in the default credentials cache or keytab files as
appropriate. By default, your ticket is stored in the file
\fB/tmp/krb5cc_\fIuid\fR\fR, where \fIuid\fR is the current user-ID of the
user.
.SH OPTIONS
.sp
.LP
The following options are supported:
.sp
.ne 2
.na
\fB\fB-a\fR\fR
.ad
.RS 20n
Displays list of addresses in credentials. Uses the configured nameservice to
translate numeric network addresses to the associated hostname if possible.
.RE

.sp
.ne 2
.na
\fB\fB-c\fR [\fIcache_name\fR]\fR
.ad
.RS 20n
Lists tickets held in a credentials cache. This is the default if neither
\fB-c\fR nor \fB-k\fR is specified.
.RE

.sp
.ne 2
.na
\fB\fB-e\fR\fR
.ad
.RS 20n
Displays the encryption types of the session key and the ticket for each
credential in the credential cache, or each key in the keytab file.
.RE

.sp
.ne 2
.na
\fB\fB-f\fR\fR
.ad
.RS 20n
Shows the flags present in the credentials, using the following abbreviations:
.sp
.ne 2
.na
\fBa\fR
.ad
.RS 5n
Anonymous
.RE

.sp
.ne 2
.na
\fBA\fR
.ad
.RS 5n
Pre-authenticated
.RE

.sp
.ne 2
.na
\fBd\fR
.ad
.RS 5n
Post-dated
.RE

.sp
.ne 2
.na
\fBD\fR
.ad
.RS 5n
Post-dateable
.RE

.sp
.ne 2
.na
\fBf\fR
.ad
.RS 5n
Forwarded
.RE

.sp
.ne 2
.na
\fBF\fR
.ad
.RS 5n
Forwardable
.RE

.sp
.ne 2
.na
\fBH\fR
.ad
.RS 5n
Hardware authenticated
.RE

.sp
.ne 2
.na
\fBi\fR
.ad
.RS 5n
Invalid
.RE

.sp
.ne 2
.na
\fBI\fR
.ad
.RS 5n
Initial
.RE

.sp
.ne 2
.na
\fBO\fR
.ad
.RS 5n
Okay as delegate
.RE

.sp
.ne 2
.na
\fBp\fR
.ad
.RS 5n
Proxy
.RE

.sp
.ne 2
.na
\fBP\fR
.ad
.RS 5n
Proxiable
.RE

.sp
.ne 2
.na
\fBR\fR
.ad
.RS 5n
Renewable
.RE

.sp
.ne 2
.na
\fBT\fR
.ad
.RS 5n
Transit policy checked
.RE

.RE

.sp
.ne 2
.na
\fB\fB-k\fR [\fIkeytab_file\fR]\fR
.ad
.RS 20n
List keys held in a \fBkeytab\fR file.
.RE

.sp
.ne 2
.na
\fB\fB-K\fR\fR
.ad
.RS 20n
Displays the value of the encryption key in each keytab entry in the keytab
file.
.RE

.sp
.ne 2
.na
\fB\fB-n\fR\fR
.ad
.RS 20n
Shows numeric \fBIP\fR addresses instead of reverse-resolving addresses. Only
valid with \fB-a\fR option.
.RE

.sp
.ne 2
.na
\fB\fB-s\fR\fR
.ad
.RS 20n
Causes \fBklist\fR to run silently (produce no output), but to still set the
exit status according to whether it finds the credentials cache. The exit
status is \fB0\fR if \fBklist\fR finds a credentials cache, and `\fB1\fRif it
does not, or if the local-realm TGT has expired.
.RE

.sp
.ne 2
.na
\fB\fB-t\fR\fR
.ad
.RS 20n
Displays the time entry timestamps for each keytab entry in the keytab file.
.RE

.SH ENVIRONMENT VARIABLES
.sp
.LP
\fBklist\fR uses the following environment variable:
.sp
.ne 2
.na
\fB\fBKRB5CCNAME\fR\fR
.ad
.RS 14n
Location of the credentials (ticket) cache. See \fBkrb5envvar\fR(5) for syntax
and details.
.RE

.SH FILES
.sp
.ne 2
.na
\fB\fB/tmp/krb5cc_\fIuid\fR\fR\fR
.ad
.RS 25n
Default credentials cache (\fIuid\fR is the decimal \fBUID\fR of the user).
.RE

.sp
.ne 2
.na
\fB\fB/etc/krb5/krb5.keytab\fR\fR
.ad
.RS 25n
Default location for the local host's \fBkeytab\fR file.
.RE

.sp
.ne 2
.na
\fB\fB/etc/krb5/krb5.conf\fR\fR
.ad
.RS 25n
Default location for the local host's configuration file. See
\fBkrb5.conf\fR(4).
.RE

.SH ATTRIBUTES
.sp
.LP
See \fBattributes\fR(5) for descriptions of the following attributes:
.sp

.sp
.TS
box;
c | c
l | l .
ATTRIBUTE TYPE	ATTRIBUTE VALUE
_
Interface Stability	See below.
.TE

.sp
.LP
The command arguments are Evolving. The command output is Unstable.
.SH SEE ALSO
.sp
.LP
\fBkdestroy\fR(1), \fBkinit\fR(1), \fBkrb5.conf\fR(4), \fBattributes\fR(5),
\fBkrb5envvar\fR(5), \fBkerberos\fR(5)
.SH BUGS
.sp
.LP
When reading a file as a service key file, very little error checking is
performed.