Lines Matching refs:keytab
71 krb5_keytab keytab = NULL;
93 * - pick the first principal in the keytab
101 "trying to select the most appropriate principal from keytab\n");
116 kerr = krb5_kt_resolve(krb_ctx, keytab_name, &keytab);
118 kerr = krb5_kt_default(krb_ctx, &keytab);
122 "Failed to read keytab [%s]: %s\n",
158 kerr = find_principal_in_keytab(krb_ctx, keytab, primary, realm,
238 DEBUG(SSSDBG_MINOR_FAILURE, "No suitable principal found in keytab\n");
244 DEBUG(SSSDBG_FATAL_FAILURE, "Failed to read keytab [%s]: %s\n",
246 sss_log(SSS_LOG_ERR, "Failed to read keytab [%s]: %s\n",
249 if (keytab) krb5_kt_close(krb_ctx, keytab);
345 krb5_keytab keytab,
358 kerr = krb5_kt_start_seq_get(ctx, keytab, &cursor);
365 "Trying to find principal %s@%s in keytab.\n", pattern_primary, pattern_realm);
367 while ((kt_err = krb5_kt_next_entry(ctx, keytab, &entry, &cursor)) == 0) {
375 DEBUG(SSSDBG_CRIT_FAILURE, "Failed to free keytab entry.\n");
380 /* Close the keytab here. Even though we're using cursors, the file
382 * overwritten by other keytab calls, creating a leak. */
383 kerr = krb5_kt_end_seq_get(ctx, keytab, &cursor);
392 "No principal matching %s@%s found in keytab.\n",
399 DEBUG(SSSDBG_CRIT_FAILURE, "Error while reading keytab.\n");
414 DEBUG(SSSDBG_CRIT_FAILURE, "Failed to free keytab entry.\n");
869 krb5_keytab keytab,
901 kerr = krb5_server_decrypt_ticket_keytab(ctx, keytab, ticket);
934 kerr = krb5_kt_get_entry(ctx, keytab, ticket->server,
1035 krb5_keytab keytab)
1038 return krb5_kt_have_content(context, keytab);
1045 kerr = krb5_kt_start_seq_get(context, keytab, &cursor);
1052 kerr = krb5_kt_next_entry(context, keytab, &entry, &cursor);
1053 kerr_end = krb5_kt_end_seq_get(context, keytab, &cursor);