1226031Sstas/*
2226031Sstas * Copyright (c) 2010 Kungliga Tekniska H��gskolan
3226031Sstas * (Royal Institute of Technology, Stockholm, Sweden). 
4226031Sstas * All rights reserved. 
5226031Sstas *
6226031Sstas * Redistribution and use in source and binary forms, with or without 
7226031Sstas * modification, are permitted provided that the following conditions 
8226031Sstas * are met: 
9226031Sstas *
10226031Sstas * 1. Redistributions of source code must retain the above copyright 
11226031Sstas *    notice, this list of conditions and the following disclaimer. 
12226031Sstas *
13226031Sstas * 2. Redistributions in binary form must reproduce the above copyright 
14226031Sstas *    notice, this list of conditions and the following disclaimer in the 
15226031Sstas *    documentation and/or other materials provided with the distribution. 
16226031Sstas *
17226031Sstas * 3. Neither the name of the Institute nor the names of its contributors 
18226031Sstas *    may be used to endorse or promote products derived from this software 
19226031Sstas *    without specific prior written permission. 
20226031Sstas *
21226031Sstas * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
22226031Sstas * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
23226031Sstas * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
24226031Sstas * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
25226031Sstas * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
26226031Sstas * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
27226031Sstas * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
28226031Sstas * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
29226031Sstas * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
30226031Sstas * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
31226031Sstas * SUCH DAMAGE. 
32226031Sstas */
33226031Sstas
34226031Sstascommand = {
35226031Sstas	name = "klist"
36226031Sstas	name = "list"
37226031Sstas	help = "List kerberos tickets"
38226031Sstas	option = {
39226031Sstas		long = "cache"
40226031Sstas		short = "c"
41226031Sstas		type = "string"
42226031Sstas		help = "credential cache to list"
43226031Sstas	}
44226031Sstas	option = {
45226031Sstas		name = "flags"
46226031Sstas		short = "f"
47226031Sstas		type = "flag"
48226031Sstas		help = "list flags"
49226031Sstas	}
50226031Sstas	option = {
51226031Sstas		long = "test"
52226031Sstas		short = "t"
53226031Sstas		type = "flag"
54226031Sstas		help = "test for having tickets"
55226031Sstas	}
56226031Sstas	option = {
57226031Sstas		name = "s"
58226031Sstas		short = "s"
59226031Sstas		type = "flag"
60226031Sstas	}
61226031Sstas	option = {
62226031Sstas		long = "tokens"
63226031Sstas		short = "T"
64226031Sstas		type = "flag"
65226031Sstas		help = "display AFS tokens"
66226031Sstas	}
67226031Sstas	option = {
68226031Sstas		long = "v5"
69226031Sstas		short = "5"
70226031Sstas		type = "flag"
71226031Sstas		default = "1"
72226031Sstas		help = "display v5 credential tokens"
73226031Sstas	}
74226031Sstas	option = {
75226031Sstas		long = "all-content"
76226031Sstas		short = "A"
77226031Sstas		type = "flag"
78226031Sstas		help = "List all caches with their content"
79226031Sstas	}
80226031Sstas	option = {
81226031Sstas		long = "list-all"
82226031Sstas		short = "l"
83226031Sstas		type = "flag"
84226031Sstas		help = "List all caches"
85226031Sstas	}
86226031Sstas	option = {
87226031Sstas		long = "verbose"
88226031Sstas		short = "v"
89226031Sstas		type = "flag"
90226031Sstas		help = "Verbose output"
91226031Sstas	}
92226031Sstas	option = {
93226031Sstas		name = "a"
94226031Sstas		short = "a"
95226031Sstas		type = "flag"
96226031Sstas	}
97226031Sstas	option = {
98226031Sstas		name = "n"
99226031Sstas		short = "n"
100226031Sstas		type = "flag"
101226031Sstas	}
102226031Sstas	option = {
103226031Sstas		long = "hidden"
104226031Sstas		type = "flag"
105226031Sstas		help = "Verbose output"
106226031Sstas	}
107226031Sstas}
108226031Sstascommand = {
109226031Sstas	name = "kgetcred"
110226031Sstas	help = "Acquire a Kerberos ticket"
111226031Sstas	option = {
112226031Sstas	       long = "enctype"
113226031Sstas	       short = "e"
114226031Sstas	       type = "string"
115226031Sstas	       argument = "enctype"
116226031Sstas	       help = "Encryption type to use"
117226031Sstas	}
118226031Sstas	option = {
119226031Sstas	       long = "cache"
120226031Sstas	       short = "c"
121226031Sstas	       type = "string"
122226031Sstas	       argument = "cachename"
123226031Sstas	       help = "Credentials cache"
124226031Sstas	}
125226031Sstas}
126226031Sstascommand = {
127226031Sstas	name = "kswitch"
128226031Sstas	name = "switch"
129226031Sstas	help = "Switch default kerberos cache"
130226031Sstas	option = {
131226031Sstas		long = "type"
132226031Sstas		short = "t"
133226031Sstas		type = "string"
134226031Sstas		help = "type of credential cache"
135226031Sstas	}
136226031Sstas	option = {
137226031Sstas		long = "cache"
138226031Sstas		short = "c"
139226031Sstas		type = "string"
140226031Sstas		help = "name of credential cache"
141226031Sstas	}
142226031Sstas	option = {
143226031Sstas		long = "principal"
144226031Sstas		short = "p"
145226031Sstas		type = "string"
146226031Sstas		help = "name of principal"
147226031Sstas	}
148226031Sstas	option = {
149226031Sstas		long = "interactive"
150226031Sstas		short = "i"
151226031Sstas		type = "flag"
152226031Sstas		help = "interactive selection"
153226031Sstas	}
154226031Sstas};
155226031Sstascommand = {
156226031Sstas	name = "kvno"
157226031Sstas	help = "Acquire a Kerberos ticket"
158226031Sstas	option = {
159226031Sstas	       long = "enctype"
160226031Sstas	       short = "e"
161226031Sstas	       type = "string"
162226031Sstas	       argument = "enctype"
163226031Sstas	       help = "Encryption type to use"
164226031Sstas	}
165226031Sstas	option = {
166226031Sstas	       long = "cache"
167226031Sstas	       short = "c"
168226031Sstas	       type = "string"
169226031Sstas	       argument = "cachename"
170226031Sstas	       help = "Credentials cache"
171226031Sstas	}
172226031Sstas	option = {
173226031Sstas	       long = "keytab"
174226031Sstas	       short = "k"
175226031Sstas	       type = "string"
176226031Sstas	       argument = "keytabname"
177226031Sstas	       help = "Keytab to use"
178226031Sstas	}
179226031Sstas	option = {
180226031Sstas	       long = "server"
181226031Sstas	       short = "S"
182226031Sstas	       type = "string"
183226031Sstas	       argument = "principal"
184226031Sstas	       help = "Server to get ticket for"
185226031Sstas	}
186226031Sstas	option = {
187226031Sstas	       long = "quiet"
188226031Sstas	       short = "q"
189226031Sstas	       type = "flag"
190226031Sstas	       help = "Quiet"
191226031Sstas	}
192226031Sstas}
193226031Sstascommand = {
194226031Sstas	name = "copy_cred_cache"
195226031Sstas	option = {
196226031Sstas	       long = "krbtgt-only"
197226031Sstas	       type = "flag"
198226031Sstas	       help = "only copy local krbtgt"
199226031Sstas	}
200226031Sstas	option = {
201226031Sstas	       long = "service"
202226031Sstas	       type = "string"
203226031Sstas	       help = "limit to this service"
204226031Sstas	       argument = "service"
205226031Sstas	}
206226031Sstas	option = {
207226031Sstas	       long = "enctype"
208226031Sstas	       type = "string"
209226031Sstas	       help = "limit to this enctype"
210226031Sstas	       argument = "enctype"
211226031Sstas	}
212226031Sstas	option = {
213226031Sstas	       long = "flags"
214226031Sstas	       type = "string"
215226031Sstas	       help = "limit to these flags"
216226031Sstas	}
217226031Sstas	option = {
218226031Sstas	       long = "valid-for"
219226031Sstas	       type = "string"
220226031Sstas	       help = "limit to creds valid for at least this long"
221226031Sstas	       argument =  "time"
222226031Sstas	}
223226031Sstas	option = {
224226031Sstas	       long = "fcache-version"
225226031Sstas	       type = "integer"
226226031Sstas	       help = "file cache version to create"
227226031Sstas	}
228226031Sstas	min_args = "1"
229226031Sstas	max_args = "2"
230226031Sstas	help = "Copies credential caches"
231226031Sstas}
232226031Sstascommand = {
233226031Sstas	name = "help"
234226031Sstas	name = "?"
235226031Sstas	argument = "[command]"
236226031Sstas	min_args = "0"
237226031Sstas	max_args = "1"
238226031Sstas	help = "Help! I need somebody."
239226031Sstas}
240