2 # Error messages for the kadm5 library
4 # This might look like a com_err file, but is not
11 error_code FAILURE, "Operation failed for unspecified reason"
12 error_code AUTH_GET, "Operation requires `get' privilege"
13 error_code AUTH_ADD, "Operation requires `add' privilege"
14 error_code AUTH_MODIFY, "Operation requires `modify' privilege"
15 error_code AUTH_DELETE, "Operation requires `delete' privilege"
16 error_code AUTH_INSUFFICIENT, "Insufficient authorization for operation"
17 error_code BAD_DB, "Database inconsistency detected"
18 error_code DUP, "Principal or policy already exists"
19 error_code RPC_ERROR, "Communication failure with server"
20 error_code NO_SRV, "No administration server found for realm"
21 error_code BAD_HIST_KEY, "Password history principal key version mismatch"
22 error_code NOT_INIT, "Connection to server not initialized"
23 error_code UNK_PRINC, "Principal does not exist"
24 error_code UNK_POLICY, "Policy does not exist"
25 error_code BAD_MASK, "Invalid field mask for operation"
26 error_code BAD_CLASS, "Invalid number of character classes"
27 error_code BAD_LENGTH, "Invalid password length"
28 error_code BAD_POLICY, "Invalid policy name"
29 error_code BAD_PRINCIPAL, "Invalid principal name."
30 error_code BAD_AUX_ATTR, "Invalid auxillary attributes"
31 error_code BAD_HISTORY, "Invalid password history count"
32 error_code BAD_MIN_PASS_LIFE, "Password minimum life is greater than password maximum life"
33 error_code PASS_Q_TOOSHORT, "Password is too short"
34 error_code PASS_Q_CLASS, "Password does not contain enough character classes"
35 error_code PASS_Q_DICT, "Password is in the password dictionary"
36 error_code PASS_REUSE, "Can't reuse password"
37 error_code PASS_TOOSOON, "Current password's minimum life has not expired"
38 error_code POLICY_REF, "Policy is in use"
39 error_code INIT, "Connection to server already initialized"
40 error_code BAD_PASSWORD, "Incorrect password"
41 error_code PROTECT_PRINCIPAL, "Can't change protected principal"
42 error_code BAD_SERVER_HANDLE, "Programmer error! Bad Admin server handle"
43 error_code BAD_STRUCT_VERSION, "Programmer error! Bad API structure version"
44 error_code OLD_STRUCT_VERSION, "API structure version specified by application is no longer supported"
45 error_code NEW_STRUCT_VERSION, "API structure version specified by application is unknown to libraries"
46 error_code BAD_API_VERSION, "Programmer error! Bad API version"
47 error_code OLD_LIB_API_VERSION, "API version specified by application is no longer supported by libraries"
48 error_code OLD_SERVER_API_VERSION,"API version specified by application is no longer supported by server"
49 error_code NEW_LIB_API_VERSION, "API version specified by application is unknown to libraries"
50 error_code NEW_SERVER_API_VERSION,"API version specified by application is unknown to server"
51 error_code SECURE_PRINC_MISSING,"Database error! Required principal missing"
52 error_code NO_RENAME_SALT, "The salt type of the specified principal does not support renaming"
53 error_code BAD_CLIENT_PARAMS, "Invalid configuration parameter for remote KADM5 client"
54 error_code BAD_SERVER_PARAMS, "Invalid configuration parameter for local KADM5 client."
55 error_code AUTH_LIST, "Operation requires `list' privilege"
56 error_code AUTH_CHANGEPW, "Operation requires `change-password' privilege"
57 error_code BAD_TL_TYPE, "Invalid tagged data list element type"
58 error_code MISSING_CONF_PARAMS, "Required parameters in kdc.conf missing"
59 error_code BAD_SERVER_NAME, "Bad krb5 admin server hostname"
60 error_code KS_TUPLE_NOSUPP, "Key/salt tuples not supported by this function"
61 error_code SETKEY3_ETYPE_MISMATCH, "Key/salt tuples don't match keys"
62 error_code DECRYPT_USAGE_NOSUPP, "Given usage of kadm5_decrypt() not supported"
63 error_code POLICY_OP_NOSUPP, "Policy operations not supported"
64 error_code KEEPOLD_NOSUPP, "Keep old keys option not supported"
65 error_code AUTH_GET_KEYS, "Operation requires `get-keys' privilege"
66 error_code ALREADY_LOCKED, "Database already locked"
67 error_code NOT_LOCKED, "Database not locked"
68 error_code LOG_CORRUPT, "Incremental propagation log got corrupted"
69 error_code LOG_NEEDS_UPGRADE, "Incremental propagation log must be upgraded"
70 error_code BAD_SERVER_HOOK, "Bad KADM5 server hook"
71 error_code SERVER_HOOK_NOT_FOUND, "Cannot find KADM5 server hook"
72 error_code OLD_SERVER_HOOK_VERSION, "KADM5 server hook is too old for this version of Heimdal"
73 error_code NEW_SERVER_HOOK_VERSION, "KADM5 server hook is too new for this version of Heimdal"
74 error_code READ_ONLY, "Database is read-only; try primary server"
75 error_code PASS_Q_GENERIC, "Unspecified password quality failure"
80 # - GSS_ERROR sandwiched by AUTH_CHANGEPW and BAD_TL_TYPE
81 # error_code GSS_ERROR, "GSS-API (or Kerberos) error"
83 # - AUTH_SETKEY, SETKEY_DUP_ENCTYPES, and SETV4KEY_INVAL_ENCTYPE, sandwiched by
84 # BAD_SERVER_NAME and SETKEY3_ETYPE_MISMATCH
85 # error_code AUTH_SETKEY, "Operation requires ``set-key'' privilege"
86 # error_code SETKEY_DUP_ENCTYPES, "Multiple values for single or folded enctype"
87 # error_code SETV4KEY_INVAL_ENCTYPE, "Invalid enctype for setv4key"
89 # - all of the following after SETKEY3_ETYPE_MISMATCH
90 # error_code MISSING_KRB5_CONF_PARAMS, "Missing parameters in krb5.conf required for kadmin client"
91 # error_code XDR_FAILURE, "XDR encoding error"
92 # error_code CANT_RESOLVE, "Cannot resolve network address for admin server in requested realm"
93 # error_code BAD_KEYSALTS, "Invalid key/salt tuples"
94 # error_code SETKEY_BAD_KVNO, "Invalid multiple or duplicate kvnos in setkey operation"
95 # error_code AUTH_EXTRACT, "Operation requires ``extract-keys'' privilege"
96 # error_code PROTECT_KEYS, "Principal keys are locked down"
97 # error_code AUTH_INITIAL, "Operation requires initial ticket"
99 # AUTH_EXTRACT is the same as our AUTH_GET_KEYS
100 # MISSING_KRB5_CONF_PARAMS is the same as our MISSING_CONF_PARAMS
102 # We have a number of errors not in MIT:
103 # - KS_TUPLE_NOSUPP (no longer relevant)
104 # - DECRYPT_USAGE_NOSUPP (could be replaced with some other, no?)
105 # - POLICY_OP_NOSUPP (could be made irrelevant)
106 # - ALREADY_LOCKED (in MIT KDB locks are recursive)
107 # - NOT_LOCKED (KRB5_KDB_NOTLOCKED in MIT)
108 # - LOG_CORRUPT (unique to Heimdal)
109 # - LOG_NEEDS_UPGRADE (unique to Heimdal)
110 # - BAD_SERVER_HOOK (unique to Heimdal, not used in-tree)
111 # - SERVER_HOOK_NOT_FOUND (unique to Heimdal, not used in-tree)
112 # - OLD_SERVER_HOOK_VERSION (unique to Heimdal, not used in-tree)
113 # - NEW_SERVER_HOOK_VERSION (unique to Heimdal, not used in-tree)
114 # - READ_ONLY (should not be unique to Heimdal, but is)