1178825Sdfr/*
2233294Sstas * Copyright (c) 2006 Kungliga Tekniska H��gskolan
3178825Sdfr * (Royal Institute of Technology, Stockholm, Sweden). 
4178825Sdfr * All rights reserved. 
5178825Sdfr *
6178825Sdfr * Redistribution and use in source and binary forms, with or without 
7178825Sdfr * modification, are permitted provided that the following conditions 
8178825Sdfr * are met: 
9178825Sdfr *
10178825Sdfr * 1. Redistributions of source code must retain the above copyright 
11178825Sdfr *    notice, this list of conditions and the following disclaimer. 
12178825Sdfr *
13178825Sdfr * 2. Redistributions in binary form must reproduce the above copyright 
14178825Sdfr *    notice, this list of conditions and the following disclaimer in the 
15178825Sdfr *    documentation and/or other materials provided with the distribution. 
16178825Sdfr *
17178825Sdfr * 3. Neither the name of the Institute nor the names of its contributors 
18178825Sdfr *    may be used to endorse or promote products derived from this software 
19178825Sdfr *    without specific prior written permission. 
20178825Sdfr *
21178825Sdfr * THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND 
22178825Sdfr * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
23178825Sdfr * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
24178825Sdfr * ARE DISCLAIMED.  IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE 
25178825Sdfr * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 
26178825Sdfr * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 
27178825Sdfr * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 
28178825Sdfr * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 
29178825Sdfr * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 
30178825Sdfr * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 
31178825Sdfr * SUCH DAMAGE. 
32178825Sdfr */
33233294Sstas/* $Id$ */
34178825Sdfr
35178825Sdfrcommand = {
36178825Sdfr	name = "digest-probe"
37178825Sdfr	option = {
38178825Sdfr		long = "realm"
39178825Sdfr		type = "string"
40178825Sdfr		help = "Kerberos realm to communicate with"
41178825Sdfr	}
42178825Sdfr	help = "probe what mech is allowed/supported for this server"
43178825Sdfr}
44178825Sdfrcommand = {
45178825Sdfr	name = "digest-server-init"
46178825Sdfr	option = {
47178825Sdfr		long = "type"
48178825Sdfr		type = "string"
49178825Sdfr		help = "digest type"
50178825Sdfr		default = "sasl"
51178825Sdfr	}
52178825Sdfr	option = {
53178825Sdfr		long = "kerberos-realm"
54178825Sdfr		type = "string"
55178825Sdfr		argument = "realm"
56178825Sdfr		help = ""
57178825Sdfr	}
58178825Sdfr	option = {
59178825Sdfr		long = "digest"
60178825Sdfr		type = "string"
61178825Sdfr		argument = "digest-type"
62178825Sdfr		help = "digest type to use in the algorithm"
63178825Sdfr	}
64178825Sdfr	option = {
65178825Sdfr		long = "cb-type"
66178825Sdfr		type = "string"
67178825Sdfr		argument = "type"
68178825Sdfr		help = "type of channel bindings"
69178825Sdfr	}
70178825Sdfr	option = {
71178825Sdfr		long = "cb-value"
72178825Sdfr		type = "string"
73178825Sdfr		argument = "value"
74178825Sdfr		help = "value of channel bindings"
75178825Sdfr	}
76178825Sdfr	option = {
77178825Sdfr		long = "hostname"
78178825Sdfr		type = "string"
79178825Sdfr		argument = "hostname"
80178825Sdfr		help = "hostname of the server"
81178825Sdfr	}
82178825Sdfr	option = {
83178825Sdfr		long = "realm"
84178825Sdfr		type = "string"
85178825Sdfr		help = "Kerberos realm to communicate with"
86178825Sdfr	}
87178825Sdfr	help = "Sets up a digest context and return initial parameters"
88178825Sdfr}
89178825Sdfrcommand = {
90178825Sdfr	name = "digest-server-request"
91178825Sdfr	option = {
92178825Sdfr		long = "type"
93178825Sdfr		type = "string"
94178825Sdfr		help = "digest type"
95178825Sdfr		default = "sasl"
96178825Sdfr	}
97178825Sdfr	option = {
98178825Sdfr		long = "kerberos-realm"
99178825Sdfr		type = "string"
100178825Sdfr		argument = "realm"
101178825Sdfr		help = ""
102178825Sdfr	}
103178825Sdfr	option = {
104178825Sdfr		long = "username"
105178825Sdfr		type = "string"
106178825Sdfr		argument = "name"
107178825Sdfr		help = "digest type"
108178825Sdfr	}
109178825Sdfr	option = {
110178825Sdfr		long = "server-nonce"
111178825Sdfr		type = "string"
112178825Sdfr		argument = "nonce"
113178825Sdfr		help = ""
114178825Sdfr	}
115178825Sdfr	option = {
116178825Sdfr		long = "server-identifier"
117178825Sdfr		type = "string"
118178825Sdfr		argument = "nonce"
119178825Sdfr		help = ""
120178825Sdfr	}
121178825Sdfr	option = {
122178825Sdfr		long = "client-nonce"
123178825Sdfr		type = "string"
124178825Sdfr		argument = "nonce"
125178825Sdfr		help = ""
126178825Sdfr	}
127178825Sdfr	option = {
128178825Sdfr		long = "client-response"
129178825Sdfr		type = "string"
130178825Sdfr		argument = "response"
131178825Sdfr		help = ""
132178825Sdfr	}
133178825Sdfr	option = {
134178825Sdfr		long = "opaque"
135178825Sdfr		type = "string"
136178825Sdfr		argument = "string"
137178825Sdfr		help = ""
138178825Sdfr	}
139178825Sdfr	option = {
140178825Sdfr		long = "authentication-name"
141178825Sdfr		type = "string"
142178825Sdfr		argument = "name"
143178825Sdfr		help = ""
144178825Sdfr	}
145178825Sdfr	option = {
146178825Sdfr		long = "realm"
147178825Sdfr		type = "string"
148178825Sdfr		argument = "realm"
149178825Sdfr		help = ""
150178825Sdfr	}
151178825Sdfr	option = {
152178825Sdfr		long = "method"
153178825Sdfr		type = "string"
154178825Sdfr		argument = "method"
155178825Sdfr		help = ""
156178825Sdfr	}
157178825Sdfr	option = {
158178825Sdfr		long = "uri"
159178825Sdfr		type = "string"
160178825Sdfr		argument = "uri"
161178825Sdfr		help = ""
162178825Sdfr	}
163178825Sdfr	option = {
164178825Sdfr		long = "nounce-count"
165178825Sdfr		type = "string"
166178825Sdfr		argument = "count"
167178825Sdfr		help = ""
168178825Sdfr	}
169178825Sdfr	option = {
170178825Sdfr		long = "qop"
171178825Sdfr		type = "string"
172178825Sdfr		argument = "qop"
173178825Sdfr		help = ""
174178825Sdfr	}
175178825Sdfr	option = {
176178825Sdfr		long = "ccache"
177178825Sdfr		type = "string"
178178825Sdfr		argument = "ccache"
179178825Sdfr		help = "Where the the credential cache is created when the KDC returns tickets"
180178825Sdfr	}
181178825Sdfr	help = "Completes digest negotiation and return final parameters"
182178825Sdfr}
183178825Sdfrcommand = {
184178825Sdfr	name = "digest-client-request"
185178825Sdfr	option = {
186178825Sdfr		long = "type"
187178825Sdfr		type = "string"
188178825Sdfr		help = "digest type"
189178825Sdfr		default = "sasl"
190178825Sdfr	}
191178825Sdfr	option = {
192178825Sdfr		long = "username"
193178825Sdfr		type = "string"
194178825Sdfr		argument = "name"
195178825Sdfr		help = "digest type"
196178825Sdfr	}
197178825Sdfr	option = {
198178825Sdfr		long = "password"
199178825Sdfr		type = "string"
200178825Sdfr		argument = "password"
201178825Sdfr	}
202178825Sdfr	option = {
203178825Sdfr		long = "server-nonce"
204178825Sdfr		type = "string"
205178825Sdfr		argument = "nonce"
206178825Sdfr		help = ""
207178825Sdfr	}
208178825Sdfr	option = {
209178825Sdfr		long = "server-identifier"
210178825Sdfr		type = "string"
211178825Sdfr		argument = "nonce"
212178825Sdfr		help = ""
213178825Sdfr	}
214178825Sdfr	option = {
215178825Sdfr		long = "client-nonce"
216178825Sdfr		type = "string"
217178825Sdfr		argument = "nonce"
218178825Sdfr		help = ""
219178825Sdfr	}
220178825Sdfr	option = {
221178825Sdfr		long = "opaque"
222178825Sdfr		type = "string"
223178825Sdfr		argument = "string"
224178825Sdfr		help = ""
225178825Sdfr	}
226178825Sdfr	option = {
227178825Sdfr		long = "realm"
228178825Sdfr		type = "string"
229178825Sdfr		argument = "realm"
230178825Sdfr		help = ""
231178825Sdfr	}
232178825Sdfr	option = {
233178825Sdfr		long = "method"
234178825Sdfr		type = "string"
235178825Sdfr		argument = "method"
236178825Sdfr		help = ""
237178825Sdfr	}
238178825Sdfr	option = {
239178825Sdfr		long = "uri"
240178825Sdfr		type = "string"
241178825Sdfr		argument = "uri"
242178825Sdfr		help = ""
243178825Sdfr	}
244178825Sdfr	option = {
245178825Sdfr		long = "nounce-count"
246178825Sdfr		type = "string"
247178825Sdfr		argument = "count"
248178825Sdfr		help = ""
249178825Sdfr	}
250178825Sdfr	option = {
251178825Sdfr		long = "qop"
252178825Sdfr		type = "string"
253178825Sdfr		argument = "qop"
254178825Sdfr		help = ""
255178825Sdfr	}
256178825Sdfr	help = "Client part of a digest exchange"
257178825Sdfr}
258178825Sdfrcommand = {
259178825Sdfr	name = "ntlm-server-init"
260178825Sdfr	option = {
261178825Sdfr		long = "version"
262178825Sdfr		type = "integer"
263178825Sdfr		help = "ntlm version"
264178825Sdfr		default = "1"
265178825Sdfr	}
266178825Sdfr	option = {
267178825Sdfr		long = "kerberos-realm"
268178825Sdfr		type = "string"
269178825Sdfr		help = "Kerberos realm to communicate with"
270178825Sdfr	}
271178825Sdfr	help = "Sets up a digest context and return initial parameters"
272178825Sdfr}
273178825Sdfrcommand = {
274178825Sdfr	name = "help"
275178825Sdfr	name = "?"
276178825Sdfr	argument = "[command]"
277178825Sdfr	min_args = "0"
278178825Sdfr	max_args = "1"
279178825Sdfr	help = "Help! I need somebody."
280178825Sdfr}
281