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