| 1 | /*
|
|---|
| 2 | * Copyright (c) 2006 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 | /* $Id$ */
|
|---|
| 34 |
|
|---|
| 35 | command = {
|
|---|
| 36 | name = "digest-probe"
|
|---|
| 37 | option = {
|
|---|
| 38 | long = "realm"
|
|---|
| 39 | type = "string"
|
|---|
| 40 | help = "Kerberos realm to communicate with"
|
|---|
| 41 | }
|
|---|
| 42 | help = "probe what mech is allowed/supported for this server"
|
|---|
| 43 | }
|
|---|
| 44 | command = {
|
|---|
| 45 | name = "digest-server-init"
|
|---|
| 46 | option = {
|
|---|
| 47 | long = "type"
|
|---|
| 48 | type = "string"
|
|---|
| 49 | help = "digest type"
|
|---|
| 50 | default = "sasl"
|
|---|
| 51 | }
|
|---|
| 52 | option = {
|
|---|
| 53 | long = "kerberos-realm"
|
|---|
| 54 | type = "string"
|
|---|
| 55 | argument = "realm"
|
|---|
| 56 | help = ""
|
|---|
| 57 | }
|
|---|
| 58 | option = {
|
|---|
| 59 | long = "digest"
|
|---|
| 60 | type = "string"
|
|---|
| 61 | argument = "digest-type"
|
|---|
| 62 | help = "digest type to use in the algorithm"
|
|---|
| 63 | }
|
|---|
| 64 | option = {
|
|---|
| 65 | long = "cb-type"
|
|---|
| 66 | type = "string"
|
|---|
| 67 | argument = "type"
|
|---|
| 68 | help = "type of channel bindings"
|
|---|
| 69 | }
|
|---|
| 70 | option = {
|
|---|
| 71 | long = "cb-value"
|
|---|
| 72 | type = "string"
|
|---|
| 73 | argument = "value"
|
|---|
| 74 | help = "value of channel bindings"
|
|---|
| 75 | }
|
|---|
| 76 | option = {
|
|---|
| 77 | long = "hostname"
|
|---|
| 78 | type = "string"
|
|---|
| 79 | argument = "hostname"
|
|---|
| 80 | help = "hostname of the server"
|
|---|
| 81 | }
|
|---|
| 82 | option = {
|
|---|
| 83 | long = "realm"
|
|---|
| 84 | type = "string"
|
|---|
| 85 | help = "Kerberos realm to communicate with"
|
|---|
| 86 | }
|
|---|
| 87 | help = "Sets up a digest context and return initial parameters"
|
|---|
| 88 | }
|
|---|
| 89 | command = {
|
|---|
| 90 | name = "digest-server-request"
|
|---|
| 91 | option = {
|
|---|
| 92 | long = "type"
|
|---|
| 93 | type = "string"
|
|---|
| 94 | help = "digest type"
|
|---|
| 95 | default = "sasl"
|
|---|
| 96 | }
|
|---|
| 97 | option = {
|
|---|
| 98 | long = "kerberos-realm"
|
|---|
| 99 | type = "string"
|
|---|
| 100 | argument = "realm"
|
|---|
| 101 | help = ""
|
|---|
| 102 | }
|
|---|
| 103 | option = {
|
|---|
| 104 | long = "username"
|
|---|
| 105 | type = "string"
|
|---|
| 106 | argument = "name"
|
|---|
| 107 | help = "digest type"
|
|---|
| 108 | }
|
|---|
| 109 | option = {
|
|---|
| 110 | long = "server-nonce"
|
|---|
| 111 | type = "string"
|
|---|
| 112 | argument = "nonce"
|
|---|
| 113 | help = ""
|
|---|
| 114 | }
|
|---|
| 115 | option = {
|
|---|
| 116 | long = "server-identifier"
|
|---|
| 117 | type = "string"
|
|---|
| 118 | argument = "nonce"
|
|---|
| 119 | help = ""
|
|---|
| 120 | }
|
|---|
| 121 | option = {
|
|---|
| 122 | long = "client-nonce"
|
|---|
| 123 | type = "string"
|
|---|
| 124 | argument = "nonce"
|
|---|
| 125 | help = ""
|
|---|
| 126 | }
|
|---|
| 127 | option = {
|
|---|
| 128 | long = "client-response"
|
|---|
| 129 | type = "string"
|
|---|
| 130 | argument = "response"
|
|---|
| 131 | help = ""
|
|---|
| 132 | }
|
|---|
| 133 | option = {
|
|---|
| 134 | long = "opaque"
|
|---|
| 135 | type = "string"
|
|---|
| 136 | argument = "string"
|
|---|
| 137 | help = ""
|
|---|
| 138 | }
|
|---|
| 139 | option = {
|
|---|
| 140 | long = "authentication-name"
|
|---|
| 141 | type = "string"
|
|---|
| 142 | argument = "name"
|
|---|
| 143 | help = ""
|
|---|
| 144 | }
|
|---|
| 145 | option = {
|
|---|
| 146 | long = "realm"
|
|---|
| 147 | type = "string"
|
|---|
| 148 | argument = "realm"
|
|---|
| 149 | help = ""
|
|---|
| 150 | }
|
|---|
| 151 | option = {
|
|---|
| 152 | long = "method"
|
|---|
| 153 | type = "string"
|
|---|
| 154 | argument = "method"
|
|---|
| 155 | help = ""
|
|---|
| 156 | }
|
|---|
| 157 | option = {
|
|---|
| 158 | long = "uri"
|
|---|
| 159 | type = "string"
|
|---|
| 160 | argument = "uri"
|
|---|
| 161 | help = ""
|
|---|
| 162 | }
|
|---|
| 163 | option = {
|
|---|
| 164 | long = "nounce-count"
|
|---|
| 165 | type = "string"
|
|---|
| 166 | argument = "count"
|
|---|
| 167 | help = ""
|
|---|
| 168 | }
|
|---|
| 169 | option = {
|
|---|
| 170 | long = "qop"
|
|---|
| 171 | type = "string"
|
|---|
| 172 | argument = "qop"
|
|---|
| 173 | help = ""
|
|---|
| 174 | }
|
|---|
| 175 | option = {
|
|---|
| 176 | long = "ccache"
|
|---|
| 177 | type = "string"
|
|---|
| 178 | argument = "ccache"
|
|---|
| 179 | help = "Where the the credential cache is created when the KDC returns tickets"
|
|---|
| 180 | }
|
|---|
| 181 | help = "Completes digest negotiation and return final parameters"
|
|---|
| 182 | }
|
|---|
| 183 | command = {
|
|---|
| 184 | name = "digest-client-request"
|
|---|
| 185 | option = {
|
|---|
| 186 | long = "type"
|
|---|
| 187 | type = "string"
|
|---|
| 188 | help = "digest type"
|
|---|
| 189 | default = "sasl"
|
|---|
| 190 | }
|
|---|
| 191 | option = {
|
|---|
| 192 | long = "username"
|
|---|
| 193 | type = "string"
|
|---|
| 194 | argument = "name"
|
|---|
| 195 | help = "digest type"
|
|---|
| 196 | }
|
|---|
| 197 | option = {
|
|---|
| 198 | long = "password"
|
|---|
| 199 | type = "string"
|
|---|
| 200 | argument = "password"
|
|---|
| 201 | }
|
|---|
| 202 | option = {
|
|---|
| 203 | long = "server-nonce"
|
|---|
| 204 | type = "string"
|
|---|
| 205 | argument = "nonce"
|
|---|
| 206 | help = ""
|
|---|
| 207 | }
|
|---|
| 208 | option = {
|
|---|
| 209 | long = "server-identifier"
|
|---|
| 210 | type = "string"
|
|---|
| 211 | argument = "nonce"
|
|---|
| 212 | help = ""
|
|---|
| 213 | }
|
|---|
| 214 | option = {
|
|---|
| 215 | long = "client-nonce"
|
|---|
| 216 | type = "string"
|
|---|
| 217 | argument = "nonce"
|
|---|
| 218 | help = ""
|
|---|
| 219 | }
|
|---|
| 220 | option = {
|
|---|
| 221 | long = "opaque"
|
|---|
| 222 | type = "string"
|
|---|
| 223 | argument = "string"
|
|---|
| 224 | help = ""
|
|---|
| 225 | }
|
|---|
| 226 | option = {
|
|---|
| 227 | long = "realm"
|
|---|
| 228 | type = "string"
|
|---|
| 229 | argument = "realm"
|
|---|
| 230 | help = ""
|
|---|
| 231 | }
|
|---|
| 232 | option = {
|
|---|
| 233 | long = "method"
|
|---|
| 234 | type = "string"
|
|---|
| 235 | argument = "method"
|
|---|
| 236 | help = ""
|
|---|
| 237 | }
|
|---|
| 238 | option = {
|
|---|
| 239 | long = "uri"
|
|---|
| 240 | type = "string"
|
|---|
| 241 | argument = "uri"
|
|---|
| 242 | help = ""
|
|---|
| 243 | }
|
|---|
| 244 | option = {
|
|---|
| 245 | long = "nounce-count"
|
|---|
| 246 | type = "string"
|
|---|
| 247 | argument = "count"
|
|---|
| 248 | help = ""
|
|---|
| 249 | }
|
|---|
| 250 | option = {
|
|---|
| 251 | long = "qop"
|
|---|
| 252 | type = "string"
|
|---|
| 253 | argument = "qop"
|
|---|
| 254 | help = ""
|
|---|
| 255 | }
|
|---|
| 256 | help = "Client part of a digest exchange"
|
|---|
| 257 | }
|
|---|
| 258 | command = {
|
|---|
| 259 | name = "ntlm-server-init"
|
|---|
| 260 | option = {
|
|---|
| 261 | long = "version"
|
|---|
| 262 | type = "integer"
|
|---|
| 263 | help = "ntlm version"
|
|---|
| 264 | default = "1"
|
|---|
| 265 | }
|
|---|
| 266 | option = {
|
|---|
| 267 | long = "kerberos-realm"
|
|---|
| 268 | type = "string"
|
|---|
| 269 | help = "Kerberos realm to communicate with"
|
|---|
| 270 | }
|
|---|
| 271 | help = "Sets up a digest context and return initial parameters"
|
|---|
| 272 | }
|
|---|
| 273 | command = {
|
|---|
| 274 | name = "help"
|
|---|
| 275 | name = "?"
|
|---|
| 276 | argument = "[command]"
|
|---|
| 277 | min_args = "0"
|
|---|
| 278 | max_args = "1"
|
|---|
| 279 | help = "Help! I need somebody."
|
|---|
| 280 | }
|
|---|