+Thu May 9 00:09:14 1996 Richard Basch <basch@lehman.com>
+
+ * krlogind.c krshd.c:
+ Use the replay cache associated with the default server name
+ (rc_host*), like telnetd does.
+
+Mon May 6 14:06:21 1996 Richard Basch <basch@lehman.com>
+
+ * login.c: SVR4 logins do not do motd or mailcheck normally; that
+ is a function of /etc/profile. login.krb should act the same...
+
Mon Apr 29 17:02:44 1996 Ken Raeburn <raeburn@cygnus.com>
Merge with Cygnus sources, changes from Mark Eichin, Marc
char v4_instance[INST_SZ]; /* V4 Instance */
char v4_version[9];
krb5_authenticator *authenticator;
+ krb5_rcache rcache;
*valid_checksum = 0;
len = sizeof(laddr);
KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR)))
return status;
+ status = krb5_auth_con_getrcache(bsd_context, auth_context, &rcache);
+ if (status) return status;
+
+ if (! rcache) {
+ krb5_principal server;
+
+ status = krb5_sname_to_principal(bsd_context, 0, 0,
+ KRB5_NT_SRV_HST, &server);
+ if (status) return status;
+
+ status = krb5_get_server_rcache(bsd_context,
+ krb5_princ_component(bsd_context, server, 0),
+ &rcache);
+ krb5_free_principal(bsd_context, server);
+ if (status) return status;
+
+ status = krb5_auth_con_setrcache(bsd_context, auth_context, rcache);
+ if (status) return status;
+ }
+
if ((status = krb5_compat_recvauth(bsd_context, &auth_context, &netf,
"KCMDV0.1",
NULL, /* Specify daemon principal */
krb5_data inbuf;
char v4_instance[INST_SZ]; /* V4 Instance */
char v4_version[9];
-krb5_authenticator *authenticator;
+ krb5_authenticator *authenticator;
krb5_ticket *ticket;
+ krb5_rcache rcache;
*valid_checksum = 0;
len = sizeof(laddr);
KRB5_AUTH_CONTEXT_GENERATE_REMOTE_FULL_ADDR))
return status;
+ status = krb5_auth_con_getrcache(bsd_context, auth_context, &rcache);
+ if (status) return status;
+
+ if (! rcache) {
+ krb5_principal server;
+
+ status = krb5_sname_to_principal(bsd_context, 0, 0,
+ KRB5_NT_SRV_HST, &server);
+ if (status) return status;
+
+ status = krb5_get_server_rcache(bsd_context,
+ krb5_princ_component(bsd_context, server, 0),
+ &rcache);
+ krb5_free_principal(bsd_context, server);
+ if (status) return status;
+
+ status = krb5_auth_con_setrcache(bsd_context, auth_context, rcache);
+ if (status) return status;
+ }
+
status = krb5_compat_recvauth(bsd_context, &auth_context, &netf,
"KCMDV0.1",
NULL, /* Specify daemon principal */
passsword */
#endif /* KRB4_GET_TICKETS */
+#ifdef __SVR4
+#define NO_MOTD
+#define NO_MAILCHECK
+#endif
+
char *getenv();
void dofork();
void motd () { }
#endif
+#ifndef NO_MAILCHECK
void check_mail ()
{
char tbuf[MAXPATHLEN+2];
printf("You have %smail.\n",
(st.st_mtime > st.st_atime) ? "new " : "");
}
+#else
+void check_mail () { }
+#endif
void checknologin()
{