use krb5_unparse_name instead of krb5_unparse_name_short since that doesnt fail. From Zdenek Hatas

This commit is contained in:
Love Hornquist Astrand
2010-09-16 20:59:35 -07:00
parent cf925c82b8
commit 0bfd697f62
2 changed files with 2 additions and 2 deletions

View File

@@ -108,7 +108,7 @@ main (int argc, char **argv)
if (ret)
krb5_err(context, 1, ret, "krb5_kt_start_seq_get");
while((ret = krb5_kt_next_entry(context, keytab, &entry, &cursor)) == 0){
krb5_unparse_name_short(context, entry.principal, &principal);
krb5_unparse_name(context, entry.principal, &principal);
printf("principal: %s\n", principal);
free(principal);
krb5_kt_free_entry(context, &entry);