* krshd.c (doit): Don't use non-blocking IO; it is unnecessary and
may cause problems.
+Fri Mar 22 13:27:40 1996 Richard Basch <basch@lehman.com>
+
+ * krshd.c: use the library routines to do v4 to v5
+ principal translation, for a more accurate representation.
+
Wed Mar 20 19:36:21 1996 Richard Basch <basch@lehman.com>
- * krlogind.c (recvauth): use the library routines to do v4 to v5
+ * krlogind.c: use the library routines to do v4 to v5
principal translation, for a more accurate representation.
Tue Mar 19 20:11:28 1996 Richard Basch <basch@lehman.com>
* principal's name.
*/
strcpy(remuser, v4_kdata->pname);
- kremuser = (char *) malloc(strlen(v4_kdata->pname) + 1 +
- strlen(v4_kdata->pinst) + 1 +
- strlen(v4_kdata->prealm) + 1);
- sprintf(kremuser, "%s/%s@%s", v4_kdata->pname,
- v4_kdata->pinst, v4_kdata->prealm);
+
+ status = krb5_425_conv_principal(bsd_context, v4_kdata->pname,
+ v4_kdata->pinst, v4_kdata->prealm,
+ &client);
+ if (status) return status;
+
+ status = krb5_unparse_name(bsd_context, client, &kremuser);
- if (status = krb5_parse_name(bsd_context, kremuser, &client))
- return(status);
- return 0;
+ return status;
}
/* Must be V5 */