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

@@ -83,7 +83,7 @@ main (int argc, char **argv)
while((ret = krb5_cc_next_cred(context, id, &cursor, &creds)) == 0){
char *principal;
krb5_unparse_name_short(context, creds.server, &principal);
krb5_unparse_name(context, creds.server, &principal);
printf("principal: %s\\n", principal);
free(principal);
krb5_free_cred_contents (context, &creds);

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);