use krb5_unparse_name instead of krb5_unparse_name_short since that doesnt fail. From Zdenek Hatas
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user