xref: /minix3/crypto/external/bsd/heimdal/dist/kuser/kcc-commands.in (revision ebfedea0ce5bbe81e252ddf32d732e40fb633fae)
1*ebfedea0SLionel Sambuc/*
2*ebfedea0SLionel Sambuc * Copyright (c) 2010 Kungliga Tekniska Högskolan
3*ebfedea0SLionel Sambuc * (Royal Institute of Technology, Stockholm, Sweden).
4*ebfedea0SLionel Sambuc * All rights reserved.
5*ebfedea0SLionel Sambuc *
6*ebfedea0SLionel Sambuc * Redistribution and use in source and binary forms, with or without
7*ebfedea0SLionel Sambuc * modification, are permitted provided that the following conditions
8*ebfedea0SLionel Sambuc * are met:
9*ebfedea0SLionel Sambuc *
10*ebfedea0SLionel Sambuc * 1. Redistributions of source code must retain the above copyright
11*ebfedea0SLionel Sambuc *    notice, this list of conditions and the following disclaimer.
12*ebfedea0SLionel Sambuc *
13*ebfedea0SLionel Sambuc * 2. Redistributions in binary form must reproduce the above copyright
14*ebfedea0SLionel Sambuc *    notice, this list of conditions and the following disclaimer in the
15*ebfedea0SLionel Sambuc *    documentation and/or other materials provided with the distribution.
16*ebfedea0SLionel Sambuc *
17*ebfedea0SLionel Sambuc * 3. Neither the name of the Institute nor the names of its contributors
18*ebfedea0SLionel Sambuc *    may be used to endorse or promote products derived from this software
19*ebfedea0SLionel Sambuc *    without specific prior written permission.
20*ebfedea0SLionel Sambuc *
21*ebfedea0SLionel Sambuc * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22*ebfedea0SLionel Sambuc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23*ebfedea0SLionel Sambuc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24*ebfedea0SLionel Sambuc * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25*ebfedea0SLionel Sambuc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26*ebfedea0SLionel Sambuc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27*ebfedea0SLionel Sambuc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28*ebfedea0SLionel Sambuc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29*ebfedea0SLionel Sambuc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30*ebfedea0SLionel Sambuc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31*ebfedea0SLionel Sambuc * SUCH DAMAGE.
32*ebfedea0SLionel Sambuc */
33*ebfedea0SLionel Sambuc
34*ebfedea0SLionel Sambuccommand = {
35*ebfedea0SLionel Sambuc	name = "klist"
36*ebfedea0SLionel Sambuc	name = "list"
37*ebfedea0SLionel Sambuc	help = "List kerberos tickets"
38*ebfedea0SLionel Sambuc	option = {
39*ebfedea0SLionel Sambuc		long = "cache"
40*ebfedea0SLionel Sambuc		short = "c"
41*ebfedea0SLionel Sambuc		type = "string"
42*ebfedea0SLionel Sambuc		help = "credential cache to list"
43*ebfedea0SLionel Sambuc	}
44*ebfedea0SLionel Sambuc	option = {
45*ebfedea0SLionel Sambuc		name = "flags"
46*ebfedea0SLionel Sambuc		short = "f"
47*ebfedea0SLionel Sambuc		type = "flag"
48*ebfedea0SLionel Sambuc		help = "list flags"
49*ebfedea0SLionel Sambuc	}
50*ebfedea0SLionel Sambuc	option = {
51*ebfedea0SLionel Sambuc		long = "test"
52*ebfedea0SLionel Sambuc		short = "t"
53*ebfedea0SLionel Sambuc		type = "flag"
54*ebfedea0SLionel Sambuc		help = "test for having tickets"
55*ebfedea0SLionel Sambuc	}
56*ebfedea0SLionel Sambuc	option = {
57*ebfedea0SLionel Sambuc		name = "s"
58*ebfedea0SLionel Sambuc		short = "s"
59*ebfedea0SLionel Sambuc		type = "flag"
60*ebfedea0SLionel Sambuc	}
61*ebfedea0SLionel Sambuc	option = {
62*ebfedea0SLionel Sambuc		long = "tokens"
63*ebfedea0SLionel Sambuc		short = "T"
64*ebfedea0SLionel Sambuc		type = "flag"
65*ebfedea0SLionel Sambuc		help = "display AFS tokens"
66*ebfedea0SLionel Sambuc	}
67*ebfedea0SLionel Sambuc	option = {
68*ebfedea0SLionel Sambuc		long = "v5"
69*ebfedea0SLionel Sambuc		short = "5"
70*ebfedea0SLionel Sambuc		type = "flag"
71*ebfedea0SLionel Sambuc		default = "1"
72*ebfedea0SLionel Sambuc		help = "display v5 credential tokens"
73*ebfedea0SLionel Sambuc	}
74*ebfedea0SLionel Sambuc	option = {
75*ebfedea0SLionel Sambuc		long = "all-content"
76*ebfedea0SLionel Sambuc		short = "A"
77*ebfedea0SLionel Sambuc		type = "flag"
78*ebfedea0SLionel Sambuc		help = "List all caches with their content"
79*ebfedea0SLionel Sambuc	}
80*ebfedea0SLionel Sambuc	option = {
81*ebfedea0SLionel Sambuc		long = "list-all"
82*ebfedea0SLionel Sambuc		short = "l"
83*ebfedea0SLionel Sambuc		type = "flag"
84*ebfedea0SLionel Sambuc		help = "List all caches"
85*ebfedea0SLionel Sambuc	}
86*ebfedea0SLionel Sambuc	option = {
87*ebfedea0SLionel Sambuc		long = "verbose"
88*ebfedea0SLionel Sambuc		short = "v"
89*ebfedea0SLionel Sambuc		type = "flag"
90*ebfedea0SLionel Sambuc		help = "Verbose output"
91*ebfedea0SLionel Sambuc	}
92*ebfedea0SLionel Sambuc	option = {
93*ebfedea0SLionel Sambuc		name = "a"
94*ebfedea0SLionel Sambuc		short = "a"
95*ebfedea0SLionel Sambuc		type = "flag"
96*ebfedea0SLionel Sambuc	}
97*ebfedea0SLionel Sambuc	option = {
98*ebfedea0SLionel Sambuc		name = "n"
99*ebfedea0SLionel Sambuc		short = "n"
100*ebfedea0SLionel Sambuc		type = "flag"
101*ebfedea0SLionel Sambuc	}
102*ebfedea0SLionel Sambuc	option = {
103*ebfedea0SLionel Sambuc		long = "hidden"
104*ebfedea0SLionel Sambuc		type = "flag"
105*ebfedea0SLionel Sambuc		help = "Verbose output"
106*ebfedea0SLionel Sambuc	}
107*ebfedea0SLionel Sambuc}
108*ebfedea0SLionel Sambuccommand = {
109*ebfedea0SLionel Sambuc	name = "kgetcred"
110*ebfedea0SLionel Sambuc	help = "Acquire a Kerberos ticket"
111*ebfedea0SLionel Sambuc	option = {
112*ebfedea0SLionel Sambuc	       long = "enctype"
113*ebfedea0SLionel Sambuc	       short = "e"
114*ebfedea0SLionel Sambuc	       type = "string"
115*ebfedea0SLionel Sambuc	       argument = "enctype"
116*ebfedea0SLionel Sambuc	       help = "Encryption type to use"
117*ebfedea0SLionel Sambuc	}
118*ebfedea0SLionel Sambuc	option = {
119*ebfedea0SLionel Sambuc	       long = "cache"
120*ebfedea0SLionel Sambuc	       short = "c"
121*ebfedea0SLionel Sambuc	       type = "string"
122*ebfedea0SLionel Sambuc	       argument = "cachename"
123*ebfedea0SLionel Sambuc	       help = "Credentials cache"
124*ebfedea0SLionel Sambuc	}
125*ebfedea0SLionel Sambuc}
126*ebfedea0SLionel Sambuccommand = {
127*ebfedea0SLionel Sambuc	name = "kswitch"
128*ebfedea0SLionel Sambuc	name = "switch"
129*ebfedea0SLionel Sambuc	help = "Switch default kerberos cache"
130*ebfedea0SLionel Sambuc	option = {
131*ebfedea0SLionel Sambuc		long = "type"
132*ebfedea0SLionel Sambuc		short = "t"
133*ebfedea0SLionel Sambuc		type = "string"
134*ebfedea0SLionel Sambuc		help = "type of credential cache"
135*ebfedea0SLionel Sambuc	}
136*ebfedea0SLionel Sambuc	option = {
137*ebfedea0SLionel Sambuc		long = "cache"
138*ebfedea0SLionel Sambuc		short = "c"
139*ebfedea0SLionel Sambuc		type = "string"
140*ebfedea0SLionel Sambuc		help = "name of credential cache"
141*ebfedea0SLionel Sambuc	}
142*ebfedea0SLionel Sambuc	option = {
143*ebfedea0SLionel Sambuc		long = "principal"
144*ebfedea0SLionel Sambuc		short = "p"
145*ebfedea0SLionel Sambuc		type = "string"
146*ebfedea0SLionel Sambuc		help = "name of principal"
147*ebfedea0SLionel Sambuc	}
148*ebfedea0SLionel Sambuc	option = {
149*ebfedea0SLionel Sambuc		long = "interactive"
150*ebfedea0SLionel Sambuc		short = "i"
151*ebfedea0SLionel Sambuc		type = "flag"
152*ebfedea0SLionel Sambuc		help = "interactive selection"
153*ebfedea0SLionel Sambuc	}
154*ebfedea0SLionel Sambuc};
155*ebfedea0SLionel Sambuccommand = {
156*ebfedea0SLionel Sambuc	name = "kvno"
157*ebfedea0SLionel Sambuc	help = "Acquire a Kerberos ticket"
158*ebfedea0SLionel Sambuc	option = {
159*ebfedea0SLionel Sambuc	       long = "enctype"
160*ebfedea0SLionel Sambuc	       short = "e"
161*ebfedea0SLionel Sambuc	       type = "string"
162*ebfedea0SLionel Sambuc	       argument = "enctype"
163*ebfedea0SLionel Sambuc	       help = "Encryption type to use"
164*ebfedea0SLionel Sambuc	}
165*ebfedea0SLionel Sambuc	option = {
166*ebfedea0SLionel Sambuc	       long = "cache"
167*ebfedea0SLionel Sambuc	       short = "c"
168*ebfedea0SLionel Sambuc	       type = "string"
169*ebfedea0SLionel Sambuc	       argument = "cachename"
170*ebfedea0SLionel Sambuc	       help = "Credentials cache"
171*ebfedea0SLionel Sambuc	}
172*ebfedea0SLionel Sambuc	option = {
173*ebfedea0SLionel Sambuc	       long = "keytab"
174*ebfedea0SLionel Sambuc	       short = "k"
175*ebfedea0SLionel Sambuc	       type = "string"
176*ebfedea0SLionel Sambuc	       argument = "keytabname"
177*ebfedea0SLionel Sambuc	       help = "Keytab to use"
178*ebfedea0SLionel Sambuc	}
179*ebfedea0SLionel Sambuc	option = {
180*ebfedea0SLionel Sambuc	       long = "server"
181*ebfedea0SLionel Sambuc	       short = "S"
182*ebfedea0SLionel Sambuc	       type = "string"
183*ebfedea0SLionel Sambuc	       argument = "principal"
184*ebfedea0SLionel Sambuc	       help = "Server to get ticket for"
185*ebfedea0SLionel Sambuc	}
186*ebfedea0SLionel Sambuc	option = {
187*ebfedea0SLionel Sambuc	       long = "quiet"
188*ebfedea0SLionel Sambuc	       short = "q"
189*ebfedea0SLionel Sambuc	       type = "flag"
190*ebfedea0SLionel Sambuc	       help = "Quiet"
191*ebfedea0SLionel Sambuc	}
192*ebfedea0SLionel Sambuc}
193*ebfedea0SLionel Sambuccommand = {
194*ebfedea0SLionel Sambuc	name = "copy_cred_cache"
195*ebfedea0SLionel Sambuc	option = {
196*ebfedea0SLionel Sambuc	       long = "krbtgt-only"
197*ebfedea0SLionel Sambuc	       type = "flag"
198*ebfedea0SLionel Sambuc	       help = "only copy local krbtgt"
199*ebfedea0SLionel Sambuc	}
200*ebfedea0SLionel Sambuc	option = {
201*ebfedea0SLionel Sambuc	       long = "service"
202*ebfedea0SLionel Sambuc	       type = "string"
203*ebfedea0SLionel Sambuc	       help = "limit to this service"
204*ebfedea0SLionel Sambuc	       argument = "service"
205*ebfedea0SLionel Sambuc	}
206*ebfedea0SLionel Sambuc	option = {
207*ebfedea0SLionel Sambuc	       long = "enctype"
208*ebfedea0SLionel Sambuc	       type = "string"
209*ebfedea0SLionel Sambuc	       help = "limit to this enctype"
210*ebfedea0SLionel Sambuc	       argument = "enctype"
211*ebfedea0SLionel Sambuc	}
212*ebfedea0SLionel Sambuc	option = {
213*ebfedea0SLionel Sambuc	       long = "flags"
214*ebfedea0SLionel Sambuc	       type = "string"
215*ebfedea0SLionel Sambuc	       help = "limit to these flags"
216*ebfedea0SLionel Sambuc	}
217*ebfedea0SLionel Sambuc	option = {
218*ebfedea0SLionel Sambuc	       long = "valid-for"
219*ebfedea0SLionel Sambuc	       type = "string"
220*ebfedea0SLionel Sambuc	       help = "limit to creds valid for at least this long"
221*ebfedea0SLionel Sambuc	       argument =  "time"
222*ebfedea0SLionel Sambuc	}
223*ebfedea0SLionel Sambuc	option = {
224*ebfedea0SLionel Sambuc	       long = "fcache-version"
225*ebfedea0SLionel Sambuc	       type = "integer"
226*ebfedea0SLionel Sambuc	       help = "file cache version to create"
227*ebfedea0SLionel Sambuc	}
228*ebfedea0SLionel Sambuc	min_args = "1"
229*ebfedea0SLionel Sambuc	max_args = "2"
230*ebfedea0SLionel Sambuc	help = "Copies credential caches"
231*ebfedea0SLionel Sambuc}
232*ebfedea0SLionel Sambuccommand = {
233*ebfedea0SLionel Sambuc	name = "help"
234*ebfedea0SLionel Sambuc	name = "?"
235*ebfedea0SLionel Sambuc	argument = "[command]"
236*ebfedea0SLionel Sambuc	min_args = "0"
237*ebfedea0SLionel Sambuc	max_args = "1"
238*ebfedea0SLionel Sambuc	help = "Help! I need somebody."
239*ebfedea0SLionel Sambuc}
240