Lines Matching refs:code
11 * this source code. Do *NOT* create a derivative of this
12 * source code before consulting with your legal department.
13 * Do *NOT* integrate *ANY* of this source code into another
107 kadm5_ret_t code;
141 code = krb5_cc_default(context, &ccache);
143 if (code == 0) {
145 code = krb5_cc_get_principal(context, ccache, &princ);
147 with an error code */
149 if (code == 0) {
150 code = krb5_unparse_name(context, princ, &princ_str);
151 if (code != 0) {
152 com_err(whoami, code, string_text(KPW_STR_UNPARSE_NAME));
159 /* "KRB5_CC_DOESNOTEXIST" but there is no such error code, and */
162 /* fixed), this code will have to be updated. */
163 if (code && code != KRB5_FCC_NOFILE) {
164 com_err(whoami, code, string_text(KPW_STR_WHILE_LOOKING_AT_CC));
169 if (code != 0) {
185 code = krb5_parse_name (context, princ_str, &princ);
186 if (code != 0) {
187 com_err(whoami, code, string_text(KPW_STR_PARSE_NAME), princ_str);
194 code = read_old_password(context, password, &pwsize);
196 if (code != 0) {
198 com_err(whoami, code, string_text(KPW_STR_WHILE_READING_PASSWORD));
224 code = kadm5_init_with_password(princ_str, password, cpw_service,
229 if (code != 0) {
230 if (code == KADM5_BAD_PASSWORD)
237 error_message(code));
240 return ((code == KADM5_BAD_PASSWORD) ? 2 : 3);
254 code = kadm5_get_principal(server_handle, princ,
257 if (code != 0) {
259 string_text((code == KADM5_UNK_PRINC)
266 return ((code == KADM5_UNK_PRINC) ? 1 :
270 code = kadm5_get_policy(server_handle,
273 if (code != 0) {
295 if (code = kadm5_free_principal_ent(server_handle,
301 com_err(whoami, code,
306 if (code = kadm5_free_policy_ent(server_handle,
310 com_err(whoami, code,
321 if (code = kadm5_free_principal_ent(server_handle,
325 com_err(whoami, code,
334 code = read_new_password(server_handle, password, &pwsize, msg_ret, sizeof (msg_ret), princ);
337 if (code)
345 if (code == KRB5_LIBOS_CANTREADPWD)
347 else if (code)