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