+Wed Apr 26 09:41:35 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * krlogind.c (main): LOG_AUTH in openlog arguments in wrong place.
+ (recvauth): Do not copy principal on a V4 request. The
+ ticket portion is not set by krb5_compat_recvauth for these.
+
+ * configure.in: Check for libutil. Under OSF/1, logwtmp is stored
+ there.
Wed Apr 26 07:19:18 1995 Chris Provenzano (proven@mit.edu)
#ifndef LOG_AUTH /* 4.2 syslog */
openlog(progname, LOG_PID | LOG_NDELAY);
#else
- openlog(progname, LOG_PID | LOG_AUTH | LOG_NDELAY, LOG_AUTH);
+ openlog(progname, LOG_PID | LOG_NDELAY, LOG_AUTH);
#endif /* 4.2 syslog */
if (argc == 1) { /* Get parameters from program name. */
getstr(netf, lusername, sizeof (lusername), "locuser");
getstr(netf, term, sizeof(term), "Terminal type");
- if (status = krb5_copy_principal(bsd_context, ticket->enc_part2->client,
- &client))
- return status;
-
#ifdef KRB5_KRB4_COMPAT
if (auth_sys == KRB5_RECVAUTH_V4) {
/* Must be V5 */
+ if (status = krb5_copy_principal(bsd_context, ticket->enc_part2->client,
+ &client))
+ return status;
+
des_read = v5_des_read;
des_write = v5_des_write;