From 0bfd697f62e8ff13af3644bb569031ba3f8b9e1c Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Thu, 16 Sep 2010 20:59:35 -0700 Subject: [PATCH] use krb5_unparse_name instead of krb5_unparse_name_short since that doesnt fail. From Zdenek Hatas --- lib/krb5/cache.c | 2 +- lib/krb5/keytab.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/krb5/cache.c b/lib/krb5/cache.c index d3926004b..32a131b07 100644 --- a/lib/krb5/cache.c +++ b/lib/krb5/cache.c @@ -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); diff --git a/lib/krb5/keytab.c b/lib/krb5/keytab.c index 7ba2f9778..d1ffd5773 100644 --- a/lib/krb5/keytab.c +++ b/lib/krb5/keytab.c @@ -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);