Lines Matching defs:kerr

69     krb5_error_code kerr = 0;
108 kerr = krb5_init_context(&krb_ctx);
109 if (kerr) {
116 kerr = krb5_kt_resolve(krb_ctx, keytab_name, &keytab);
118 kerr = krb5_kt_default(krb_ctx, &keytab);
120 if (kerr) {
124 sss_krb5_get_error_message(krb_ctx, kerr));
158 kerr = find_principal_in_keytab(krb_ctx, keytab, primary, realm,
162 if (kerr == 0) {
172 if (kerr == 0) {
174 kerr = krb5_unparse_name(krb_ctx, client_princ, &principal_string);
175 if (kerr) {
192 kerr = sss_krb5_unparse_name_flags(krb_ctx, client_princ,
195 if (kerr) {
350 krb5_error_code kerr;
358 kerr = krb5_kt_start_seq_get(ctx, keytab, &cursor);
359 if (kerr != 0) {
361 return kerr;
373 kerr = sss_krb5_free_keytab_entry_contents(ctx, &entry);
374 if (kerr != 0) {
383 kerr = krb5_kt_end_seq_get(ctx, keytab, &cursor);
384 if (kerr != 0) {
390 kerr = KRB5_KT_NOTFOUND;
403 kerr = krb5_copy_principal(ctx, entry.principal, princ);
404 if (kerr != 0) {
409 kerr = 0;
417 return kerr;
873 krb5_error_code kerr;
889 kerr = krb5_cc_retrieve_cred(ctx, ccache, 0, &mcred, &cred);
890 if (kerr != 0) {
895 kerr = krb5_decode_ticket(&cred.ticket, &ticket);
896 if (kerr != 0) {
901 kerr = krb5_server_decrypt_ticket_keytab(ctx, keytab, ticket);
902 if (kerr != 0) {
907 kerr = sss_krb5_find_authdata(ctx,
910 if (kerr != 0) {
917 kerr = ENOENT;
923 kerr = EINVAL;
927 kerr = krb5_pac_parse(ctx, pac_authdata[0]->contents,
929 if (kerr != 0) {
934 kerr = krb5_kt_get_entry(ctx, keytab, ticket->server,
937 if (kerr != 0) {
942 kerr = krb5_pac_verify(ctx, pac, 0, NULL, &entry.key, NULL);
943 if (kerr != 0) {
955 kerr = 0;
958 if (kerr != 0) {
970 return kerr;
982 krb5_error_code kerr;
990 kerr = krb5_cc_set_default_name(ctx, location);
991 if (kerr != 0) {
992 KRB5_DEBUG(SSSDBG_MINOR_FAILURE, ctx, kerr);
996 kerr = krb5_cc_cache_match(ctx, principal, &tmp_cc);
997 if (kerr != 0) {
998 const char *err_msg = sss_krb5_get_error_message(ctx, kerr);
1000 "krb5_cc_cache_match failed: [%d][%s]\n", kerr, err_msg);
1005 kerr = krb5_cc_get_full_name(ctx, tmp_cc, &tmp_ccname);
1006 if (kerr != 0) {
1007 KRB5_DEBUG(SSSDBG_MINOR_FAILURE, ctx, kerr);
1021 kerr = krb5_cc_close(ctx, tmp_cc);
1022 if (kerr != 0) {
1023 KRB5_DEBUG(SSSDBG_MINOR_FAILURE, ctx, kerr);
1042 krb5_error_code kerr;
1045 kerr = krb5_kt_start_seq_get(context, keytab, &cursor);
1046 if (kerr != 0) {
1052 kerr = krb5_kt_next_entry(context, keytab, &entry, &cursor);
1054 if (kerr != 0) {
1059 kerr = krb5_free_keytab_entry_contents(context, &entry);
1065 if (kerr != 0) {
1080 krb5_error_code kerr;
1091 kerr = krb5_init_context(&context);
1092 if (kerr != 0) {
1097 kerr = krb5_get_profile(context, &profile);
1098 if (kerr != 0) {
1105 kerr = profile_get_values(profile, profile_path, &list);
1106 if (kerr == PROF_NO_RELATION || kerr == PROF_NO_SECTION) {
1108 } else if (kerr != 0) {