xref: /titanic_51/usr/src/lib/gss_mechs/mech_krb5/et/adm_err.c (revision 7c478bd95313f5f23a4c958a745db2134aa03244)
1 /*
2  * Copyright 1998-2002 Sun Microsystems, Inc.  All rights reserved.
3  * Use is subject to license terms.
4  */
5 
6 #pragma ident	"%Z%%M%	%I%	%E% SMI"
7 
8 #include <locale.h>
9 const char *
10 kadm_error_table(long errorno) {
11 
12 switch (errorno) {
13 	case 0:
14 		return(dgettext(TEXT_DOMAIN,
15 			"Administrative service completed"));
16 	case 1:
17 		return(dgettext(TEXT_DOMAIN,
18 			"KADM err: Principal unknown"));
19 	case 2:
20 		return(dgettext(TEXT_DOMAIN,
21 			"KADM err: Principal already exists"));
22 	case 3:
23 		return(dgettext(TEXT_DOMAIN,
24 			"KADM err: Memory allocation failure"));
25 	case 4:
26 		return(dgettext(TEXT_DOMAIN,
27 			"KADM err: Bad password"));
28 	case 5:
29 		return(dgettext(TEXT_DOMAIN,
30 			"KADM err: Protocol failure"));
31 	case 6:
32 		return(dgettext(TEXT_DOMAIN,
33 			"KADM err: Security failure"));
34 	case 7:
35 		return(dgettext(TEXT_DOMAIN,
36 			"KADM err: Permission denied"));
37 	case 8:
38 		return(dgettext(TEXT_DOMAIN,
39 			"KADM err: Kerberos database update failed"));
40 	case 9:
41 		return(dgettext(TEXT_DOMAIN,
42 			"KADM error code 9"));
43 	case 10:
44 		return(dgettext(TEXT_DOMAIN,
45 			"KADM error code 10"));
46 	case 11:
47 		return(dgettext(TEXT_DOMAIN,
48 			"KADM error code 11"));
49 	case 12:
50 		return(dgettext(TEXT_DOMAIN,
51 			"KADM error code 12"));
52 	case 13:
53 		return(dgettext(TEXT_DOMAIN,
54 			"KADM error code 13"));
55 	case 14:
56 		return(dgettext(TEXT_DOMAIN,
57 			"KADM error code 14"));
58 	case 15:
59 		return(dgettext(TEXT_DOMAIN,
60 			"KADM error code 15"));
61 	case 16:
62 		return(dgettext(TEXT_DOMAIN,
63 			"KADM error code 16"));
64 	case 17:
65 		return(dgettext(TEXT_DOMAIN,
66 			"KADM error code 17"));
67 	case 18:
68 		return(dgettext(TEXT_DOMAIN,
69 			"KADM error code 18"));
70 	case 19:
71 		return(dgettext(TEXT_DOMAIN,
72 			"KADM error code 19"));
73 	case 20:
74 		return(dgettext(TEXT_DOMAIN,
75 			"KADM error code 20"));
76 	case 21:
77 		return(dgettext(TEXT_DOMAIN,
78 			"KADM error code 21"));
79 	case 22:
80 		return(dgettext(TEXT_DOMAIN,
81 			"KADM error code 22"));
82 	case 23:
83 		return(dgettext(TEXT_DOMAIN,
84 			"KADM error code 23"));
85 	case 24:
86 		return(dgettext(TEXT_DOMAIN,
87 			"KADM error code 24"));
88 	case 25:
89 		return(dgettext(TEXT_DOMAIN,
90 			"KADM error code 25"));
91 	case 26:
92 		return(dgettext(TEXT_DOMAIN,
93 			"KADM error code 26"));
94 	case 27:
95 		return(dgettext(TEXT_DOMAIN,
96 			"KADM error code 27"));
97 	case 28:
98 		return(dgettext(TEXT_DOMAIN,
99 			"KADM error code 28"));
100 	case 29:
101 		return(dgettext(TEXT_DOMAIN,
102 			"KADM error code 29"));
103 	case 30:
104 		return(dgettext(TEXT_DOMAIN,
105 			"KADM error code 30"));
106 	case 31:
107 		return(dgettext(TEXT_DOMAIN,
108 			"KADM error code 31"));
109 	case 32:
110 		return(dgettext(TEXT_DOMAIN,
111 			"KADM error code 32"));
112 	case 33:
113 		return(dgettext(TEXT_DOMAIN,
114 			"KADM error code 33"));
115 	case 34:
116 		return(dgettext(TEXT_DOMAIN,
117 			"KADM error code 34"));
118 	case 35:
119 		return(dgettext(TEXT_DOMAIN,
120 			"KADM error code 35"));
121 	case 36:
122 		return(dgettext(TEXT_DOMAIN,
123 			"KADM error code 36"));
124 	case 37:
125 		return(dgettext(TEXT_DOMAIN,
126 			"KADM error code 37"));
127 	case 38:
128 		return(dgettext(TEXT_DOMAIN,
129 			"KADM error code 38"));
130 	case 39:
131 		return(dgettext(TEXT_DOMAIN,
132 			"KADM error code 39"));
133 	case 40:
134 		return(dgettext(TEXT_DOMAIN,
135 			"KADM error code 40"));
136 	case 41:
137 		return(dgettext(TEXT_DOMAIN,
138 			"KADM error code 41"));
139 	case 42:
140 		return(dgettext(TEXT_DOMAIN,
141 			"KADM error code 42"));
142 	case 43:
143 		return(dgettext(TEXT_DOMAIN,
144 			"KADM error code 43"));
145 	case 44:
146 		return(dgettext(TEXT_DOMAIN,
147 			"KADM error code 44"));
148 	case 45:
149 		return(dgettext(TEXT_DOMAIN,
150 			"KADM error code 45"));
151 	case 46:
152 		return(dgettext(TEXT_DOMAIN,
153 			"KADM error code 46"));
154 	case 47:
155 		return(dgettext(TEXT_DOMAIN,
156 			"KADM error code 47"));
157 	case 48:
158 		return(dgettext(TEXT_DOMAIN,
159 			"KADM error code 48"));
160 	case 49:
161 		return(dgettext(TEXT_DOMAIN,
162 			"KADM error code 49"));
163 	case 50:
164 		return(dgettext(TEXT_DOMAIN,
165 			"KADM error code 50"));
166 	case 51:
167 		return(dgettext(TEXT_DOMAIN,
168 			"KADM error code 51"));
169 	case 52:
170 		return(dgettext(TEXT_DOMAIN,
171 			"KADM error code 52"));
172 	case 53:
173 		return(dgettext(TEXT_DOMAIN,
174 			"KADM error code 53"));
175 	case 54:
176 		return(dgettext(TEXT_DOMAIN,
177 			"KADM error code 54"));
178 	case 55:
179 		return(dgettext(TEXT_DOMAIN,
180 			"KADM error code 55"));
181 	case 56:
182 		return(dgettext(TEXT_DOMAIN,
183 			"KADM error code 56"));
184 	case 57:
185 		return(dgettext(TEXT_DOMAIN,
186 			"KADM error code 57"));
187 	case 58:
188 		return(dgettext(TEXT_DOMAIN,
189 			"KADM error code 58"));
190 	case 59:
191 		return(dgettext(TEXT_DOMAIN,
192 			"KADM error code 59"));
193 	case 60:
194 		return(dgettext(TEXT_DOMAIN,
195 			"KADM error code 60"));
196 	case 61:
197 		return(dgettext(TEXT_DOMAIN,
198 			"KADM error code 61"));
199 	case 62:
200 		return(dgettext(TEXT_DOMAIN,
201 			"KADM error code 62"));
202 	case 63:
203 		return(dgettext(TEXT_DOMAIN,
204 			"KADM error code 63"));
205 	case 64:
206 		return(dgettext(TEXT_DOMAIN,
207 			"KADM error code 64"));
208 	case 65:
209 		return(dgettext(TEXT_DOMAIN,
210 			"KADM error code 65"));
211 	case 66:
212 		return(dgettext(TEXT_DOMAIN,
213 			"KADM error code 66"));
214 	case 67:
215 		return(dgettext(TEXT_DOMAIN,
216 			"KADM error code 67"));
217 	case 68:
218 		return(dgettext(TEXT_DOMAIN,
219 			"KADM error code 68"));
220 	case 69:
221 		return(dgettext(TEXT_DOMAIN,
222 			"KADM error code 69"));
223 	case 70:
224 		return(dgettext(TEXT_DOMAIN,
225 			"KADM error code 70"));
226 	case 71:
227 		return(dgettext(TEXT_DOMAIN,
228 			"KADM error code 71"));
229 	case 72:
230 		return(dgettext(TEXT_DOMAIN,
231 			"KADM error code 72"));
232 	case 73:
233 		return(dgettext(TEXT_DOMAIN,
234 			"KADM error code 73"));
235 	case 74:
236 		return(dgettext(TEXT_DOMAIN,
237 			"KADM error code 74"));
238 	case 75:
239 		return(dgettext(TEXT_DOMAIN,
240 			"KADM error code 75"));
241 	case 76:
242 		return(dgettext(TEXT_DOMAIN,
243 			"KADM error code 76"));
244 	case 77:
245 		return(dgettext(TEXT_DOMAIN,
246 			"KADM error code 77"));
247 	case 78:
248 		return(dgettext(TEXT_DOMAIN,
249 			"KADM error code 78"));
250 	case 79:
251 		return(dgettext(TEXT_DOMAIN,
252 			"KADM error code 79"));
253 	case 80:
254 		return(dgettext(TEXT_DOMAIN,
255 			"KADM error code 80"));
256 	case 81:
257 		return(dgettext(TEXT_DOMAIN,
258 			"KADM error code 81"));
259 	case 82:
260 		return(dgettext(TEXT_DOMAIN,
261 			"KADM error code 82"));
262 	case 83:
263 		return(dgettext(TEXT_DOMAIN,
264 			"KADM error code 83"));
265 	case 84:
266 		return(dgettext(TEXT_DOMAIN,
267 			"KADM error code 84"));
268 	case 85:
269 		return(dgettext(TEXT_DOMAIN,
270 			"KADM error code 85"));
271 	case 86:
272 		return(dgettext(TEXT_DOMAIN,
273 			"KADM error code 86"));
274 	case 87:
275 		return(dgettext(TEXT_DOMAIN,
276 			"KADM error code 87"));
277 	case 88:
278 		return(dgettext(TEXT_DOMAIN,
279 			"KADM error code 88"));
280 	case 89:
281 		return(dgettext(TEXT_DOMAIN,
282 			"KADM error code 89"));
283 	case 90:
284 		return(dgettext(TEXT_DOMAIN,
285 			"KADM error code 90"));
286 	case 91:
287 		return(dgettext(TEXT_DOMAIN,
288 			"KADM error code 91"));
289 	case 92:
290 		return(dgettext(TEXT_DOMAIN,
291 			"KADM error code 92"));
292 	case 93:
293 		return(dgettext(TEXT_DOMAIN,
294 			"KADM error code 93"));
295 	case 94:
296 		return(dgettext(TEXT_DOMAIN,
297 			"KADM error code 94"));
298 	case 95:
299 		return(dgettext(TEXT_DOMAIN,
300 			"KADM error code 95"));
301 	case 96:
302 		return(dgettext(TEXT_DOMAIN,
303 			"KADM error code 96"));
304 	case 97:
305 		return(dgettext(TEXT_DOMAIN,
306 			"KADM error code 97"));
307 	case 98:
308 		return(dgettext(TEXT_DOMAIN,
309 			"KADM error code 98"));
310 	case 99:
311 		return(dgettext(TEXT_DOMAIN,
312 			"KADM error code 99"));
313 	case 100:
314 		return(dgettext(TEXT_DOMAIN,
315 			"KADM error code 100"));
316 	case 101:
317 		return(dgettext(TEXT_DOMAIN,
318 			"KADM error code 101"));
319 	case 102:
320 		return(dgettext(TEXT_DOMAIN,
321 			"KADM error code 102"));
322 	case 103:
323 		return(dgettext(TEXT_DOMAIN,
324 			"KADM error code 103"));
325 	case 104:
326 		return(dgettext(TEXT_DOMAIN,
327 			"KADM error code 104"));
328 	case 105:
329 		return(dgettext(TEXT_DOMAIN,
330 			"KADM error code 105"));
331 	case 106:
332 		return(dgettext(TEXT_DOMAIN,
333 			"KADM error code 106"));
334 	case 107:
335 		return(dgettext(TEXT_DOMAIN,
336 			"KADM error code 107"));
337 	case 108:
338 		return(dgettext(TEXT_DOMAIN,
339 			"KADM error code 108"));
340 	case 109:
341 		return(dgettext(TEXT_DOMAIN,
342 			"KADM error code 109"));
343 	case 110:
344 		return(dgettext(TEXT_DOMAIN,
345 			"KADM error code 110"));
346 	case 111:
347 		return(dgettext(TEXT_DOMAIN,
348 			"KADM error code 111"));
349 	case 112:
350 		return(dgettext(TEXT_DOMAIN,
351 			"KADM error code 112"));
352 	case 113:
353 		return(dgettext(TEXT_DOMAIN,
354 			"KADM error code 113"));
355 	case 114:
356 		return(dgettext(TEXT_DOMAIN,
357 			"KADM error code 114"));
358 	case 115:
359 		return(dgettext(TEXT_DOMAIN,
360 			"KADM error code 115"));
361 	case 116:
362 		return(dgettext(TEXT_DOMAIN,
363 			"KADM error code 116"));
364 	case 117:
365 		return(dgettext(TEXT_DOMAIN,
366 			"KADM error code 117"));
367 	case 118:
368 		return(dgettext(TEXT_DOMAIN,
369 			"KADM error code 118"));
370 	case 119:
371 		return(dgettext(TEXT_DOMAIN,
372 			"KADM error code 119"));
373 	case 120:
374 		return(dgettext(TEXT_DOMAIN,
375 			"KADM error code 120"));
376 	case 121:
377 		return(dgettext(TEXT_DOMAIN,
378 			"KADM error code 121"));
379 	case 122:
380 		return(dgettext(TEXT_DOMAIN,
381 			"KADM error code 122"));
382 	case 123:
383 		return(dgettext(TEXT_DOMAIN,
384 			"KADM error code 123"));
385 	case 124:
386 		return(dgettext(TEXT_DOMAIN,
387 			"KADM error code 124"));
388 	case 125:
389 		return(dgettext(TEXT_DOMAIN,
390 			"KADM error code 125"));
391 	case 126:
392 		return(dgettext(TEXT_DOMAIN,
393 			"KADM error code 126"));
394 	case 127:
395 		return(dgettext(TEXT_DOMAIN,
396 			"KADM error code 127"));
397 	case 128:
398 		return(
399 			"$Header: /afs/athena.mit.edu/astaff/project/krbdev/.cvsroot/src/lib/krb5/error_tables/adm_err.et,v 5.1 1995/11/03 21:52:37 eichin Exp $");
400 	case 129:
401 		return(dgettext(TEXT_DOMAIN,
402 			"Cannot fetch local realm"));
403 	case 130:
404 		return(dgettext(TEXT_DOMAIN,
405 			"Unable to fetch credentials"));
406 	case 131:
407 		return(dgettext(TEXT_DOMAIN,
408 			"Bad key supplied"));
409 	case 132:
410 		return(dgettext(TEXT_DOMAIN,
411 			"Can't encrypt data"));
412 	case 133:
413 		return(dgettext(TEXT_DOMAIN,
414 			"Cannot encode/decode authentication info"));
415 	case 134:
416 		return(dgettext(TEXT_DOMAIN,
417 			"Principal attemping change is in wrong realm"));
418 	case 135:
419 		return(dgettext(TEXT_DOMAIN,
420 			"Packet is too large"));
421 	case 136:
422 		return(dgettext(TEXT_DOMAIN,
423 			"Version number is incorrect"));
424 	case 137:
425 		return(dgettext(TEXT_DOMAIN,
426 			"Checksum does not match"));
427 	case 138:
428 		return(dgettext(TEXT_DOMAIN,
429 			"Unsealing private data failed"));
430 	case 139:
431 		return(dgettext(TEXT_DOMAIN,
432 			"Unsupported operation"));
433 	case 140:
434 		return(dgettext(TEXT_DOMAIN,
435 			"Could not find administrating host"));
436 	case 141:
437 		return(dgettext(TEXT_DOMAIN,
438 			"Administrating host name is unknown"));
439 	case 142:
440 		return(dgettext(TEXT_DOMAIN,
441 			"Could not find service name in services database"));
442 	case 143:
443 		return(dgettext(TEXT_DOMAIN,
444 			"Could not create socket"));
445 	case 144:
446 		return(dgettext(TEXT_DOMAIN,
447 			"Could not connect to server"));
448 	case 145:
449 		return(dgettext(TEXT_DOMAIN,
450 			"Could not fetch local socket address"));
451 	case 146:
452 		return(dgettext(TEXT_DOMAIN,
453 			"Could not fetch master key"));
454 	case 147:
455 		return(dgettext(TEXT_DOMAIN,
456 			"Could not verify master key"));
457 	case 148:
458 		return(dgettext(TEXT_DOMAIN,
459 			"Entry already exists in database"));
460 	case 149:
461 		return(dgettext(TEXT_DOMAIN,
462 			"Database store error"));
463 	case 150:
464 		return(dgettext(TEXT_DOMAIN,
465 			"Database read error"));
466 	case 151:
467 		return(dgettext(TEXT_DOMAIN,
468 			"Insufficient access to perform requested operation"));
469 	case 152:
470 		return(dgettext(TEXT_DOMAIN,
471 			"Data is available for return to client"));
472 	case 153:
473 		return(dgettext(TEXT_DOMAIN,
474 			"No such entry in the database"));
475 	case 154:
476 		return(dgettext(TEXT_DOMAIN,
477 			"Memory exhausted"));
478 	case 155:
479 		return(dgettext(TEXT_DOMAIN,
480 			"Could not fetch system hostname"));
481 	case 156:
482 		return(dgettext(TEXT_DOMAIN,
483 			"Could not bind port"));
484 	case 157:
485 		return(dgettext(TEXT_DOMAIN,
486 			"Length mismatch problem"));
487 	case 158:
488 		return(dgettext(TEXT_DOMAIN,
489 			"Illegal use of wildcard"));
490 	case 159:
491 		return(dgettext(TEXT_DOMAIN,
492 			"Database is locked or in use--try again later"));
493 	case 160:
494 		return(dgettext(TEXT_DOMAIN,
495 			"JNI: Java array creation failed"));
496 	case 161:
497 		return(dgettext(TEXT_DOMAIN,
498 			"JNI: Java class lookup failed"));
499 	case 162:
500 		return(dgettext(TEXT_DOMAIN,
501 			"JNI: Java field lookup failed"));
502 	case 163:
503 		return(dgettext(TEXT_DOMAIN,
504 			"JNI: Java method lookup failed"));
505 	case 164:
506 		return(dgettext(TEXT_DOMAIN,
507 			"JNI: Java object lookup failed"));
508 	case 165:
509 		return(dgettext(TEXT_DOMAIN,
510 			"JNI: Java object field lookup failed"));
511 	case 166:
512 		return(dgettext(TEXT_DOMAIN,
513 			"JNI: Java string access failed"));
514 	case 167:
515 		return(dgettext(TEXT_DOMAIN,
516 			"JNI: Java string creation failed"));
517 	default:
518 		return("unknown error");
519 	}
520 }
521