Import Upstream version 1.8.5
[hcoop/debian/openafs.git] / doc / man-pages / pod1 / tokens.pod
CommitLineData
805e021f
CE
1=head1 NAME
2
3tokens, tokens.krb - Displays the issuer's tokens
4
5=head1 SYNOPSIS
6
7=for html
8<div class="synopsis">
9
10B<tokens> [B<-help>]
11
12B<tokens> [B<-h>]
13
14B<tokens.krb> [B<-help>]
15
16B<tokens.krb> [B<-h>]
17
18=for html
19</div>
20
21=head1 DESCRIPTION
22
23The B<tokens> command displays all tokens (tickets) cached on the local
24machine for the issuer. AFS server processes require that their clients
25present a token as evidence that they have authenticated in the server's
26local cell.
27
28The (mostly obsolete) B<tokens.krb> command is the same as B<tokens>
29except that it also displays the user's Kerberos v4 ticket cache.
30
31=head1 OPTIONS
32
33=over 4
34
35=item B<-help>
36
37Prints the online help for this command. All other valid options are
38ignored.
39
40=back
41
42=head1 OUTPUT
43
44The output lists one token for each cell in which the user is
45authenticated. The output indicates the
46
47=over 2
48
49=item *
50
51User's AFS UID, if it is available for display.
52
53=item *
54
55Server for which the token is valid (normally, afs). This includes a cell
56specification.
57
58=item *
59
60Day and time the token expires.
61
62=back
63
64The output of the Kerberos version of this command, B<tokens.krb>, also
65reports the following about the Kerberos ticket-granting ticket: the
66ticket owner, which Kerberos ticket-granting service that issued the
67ticket (for example, C<krbtgt.EXAMPLE.COM>), and ticket's expiration date.
68
69The string C<--End of list--> appears at the end of the output. If the
70user is not authenticated in any cell, this line is all that appears.
71
72=head1 EXAMPLES
73
74The following example shows the output when the issuer is not
75authenticated in any cell.
76
77 % tokens
78 Tokens held by the Cache Manager:
79
80 --End of list--
81
82The following example shows the output when the issuer is authenticated in
83Example Corporation cell, where he or she has AFS UID 1000.
84
85 % tokens
86 Tokens held by the Cache Manager:
87
88 User's (AFS ID 1000) tokens for afs@example.com [Expires Jan 2 10:00]
89 --End of list--
90
91The following example shows the output when the issuer is authenticated in
92the Example Corporation cell, the Example Organization cell, and the Example
93Network cell. The user has different AFS UIDs in the three cells. Tokens for
94last cell are expired:
95
96 % tokens
97 Tokens held by the Cache Manager:
98
99 User's (AFS ID 1000) tokens for afs@example.com [Expires Jan 3 10:00]
100 User's (AFS ID 4286) tokens for afs@example.org [Expires Jan 3 1:34]
101 User's (AFS ID 22) tokens for afs@example.net [>>Expired<]
102 --End of list--
103
104The following example shows the output when the issuer uses the
105B<tokens.krb> version of the command after authenticating in the Example
106Corporation cell using the B<klog.krb> command.
107
108 % tokens.krb
109 Tokens held by the Cache Manager:
110
111 User's (AFS ID 1000) tokens for afs@example.com [Expires Jan 31 00:09]
112 User smiths tokens for krbtgt.EXAMPLE.COM@example.com [Expires Jan 31 00:09]
113 --End of list--
114
115=head1 PRIVILEGE REQUIRED
116
117None
118
119=head1 SEE ALSO
120
121L<klog(1)>,
122L<unlog(1)>
123
124=head1 COPYRIGHT
125
126IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
127
128This documentation is covered by the IBM Public License Version 1.0. It was
129converted from HTML to POD by software written by Chas Williams and Russ
130Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.