Use krb_unparse_name()

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@941 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-11-08 10:57:02 +00:00
parent 1ec0091921
commit b0c0e8ccca
2 changed files with 9 additions and 9 deletions

View File

@@ -313,12 +313,13 @@ kerberos4_is(ap, data, cnt)
if (msg == NULL)
Data(ap, KRB_REJECT, (void *)0, 0);
sprintf (msg, "user `%s%s%s@%s' is not authorized "
"to login as `%s'", adat.pname,
*adat.pinst == '\0' ? "" : ".",
adat.pinst,
adat.prealm,
sprintf (msg, "user `%s' is not authorized to "
"login as `%s'",
krb_unparse_name(adat.pname,
adat.pinst,
adat.realm),
UserNameRequested);
Data(ap, KRB_REJECT, (void *)msg, -1);
free(msg);
}