8322 nl: misleading-indentation
[unleashed/tickless.git] / usr / src / lib / gss_mechs / mech_krb5 / et / kpasswd_strings.c
blob0cd1d180c9d07d18d06b09752b98c36fc0dced94
1 /*
2 * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3 * Use is subject to license terms.
4 */
6 #pragma ident "%Z%%M% %I% %E% SMI"
8 #include <locale.h>
9 const char *
10 kpws_error_table(long errorno) {
12 switch (errorno) {
13 case 0:
14 return(dgettext(TEXT_DOMAIN,
15 "Usage: kpasswd [principal_name]."));
16 case 1:
17 return(dgettext(TEXT_DOMAIN,
18 "Kerberos principal name %s is not recognized."));
19 case 2:
20 return(dgettext(TEXT_DOMAIN,
21 "while reading principal name from credential cache."));
22 case 3:
23 return(dgettext(TEXT_DOMAIN,
24 "Old Kerberos password is incorrect. Please try again."));
25 case 4:
26 return(dgettext(TEXT_DOMAIN,
27 "Cannot establish a session with the Kerberos "
28 "administrative server for realm %s. %s."));
29 case 5:
30 return(dgettext(TEXT_DOMAIN,
31 "New passwords do not match - password not changed.\n"));
32 case 6:
33 return(dgettext(TEXT_DOMAIN,
34 "Kerberos password changed.\n"));
35 case 7:
36 return(dgettext(TEXT_DOMAIN,
37 "Password not changed."));
38 case 8:
39 return(dgettext(TEXT_DOMAIN,
40 "when parsing name %s."));
41 case 9:
42 return(dgettext(TEXT_DOMAIN,
43 "when unparsing name."));
44 case 10:
45 return(dgettext(TEXT_DOMAIN,
46 "Unable to identify user from password file."));
47 case 11:
48 return(dgettext(TEXT_DOMAIN,
49 "Changing password for %s."));
50 case 12:
51 return(dgettext(TEXT_DOMAIN,
52 "Old password"));
53 case 13:
54 return(dgettext(TEXT_DOMAIN,
55 "while reading new password."));
56 case 14:
57 return(dgettext(TEXT_DOMAIN,
58 "You must type a password. "
59 "Passwords must be at least one character long."));
60 case 15:
61 return(dgettext(TEXT_DOMAIN,
62 "while trying to change password."));
63 case 16:
64 return(dgettext(TEXT_DOMAIN,
65 "while closing session with admin server and "
66 "destroying tickets."));
67 case 17:
68 return(dgettext(TEXT_DOMAIN,
69 "while freeing admin principal entry"));
70 case 18:
71 return(dgettext(TEXT_DOMAIN,
72 "while freeing admin policy entry"));
73 case 19:
74 return(dgettext(TEXT_DOMAIN,
75 "Could not get password policy information for principal %s."));
76 case 20:
77 return(dgettext(TEXT_DOMAIN,
78 "%s's password is controlled by the policy %s which\n"
79 "requires a minimum of %u characters from at least %u classes \n"
80 "(the five classes are lowercase, uppercase, numbers, punctuation,\n"
81 "and all other characters)."));
82 default:
83 return("unknown error");