Sat Apr 22 00:42:22 1995 Theodore Y. Ts'o (tytso@dcl)
- * krshd.c (main): The variable krb5_override_default_realm is
- obsolete. Use the krb5_set_default_realm function instead.
+ * rlogind (main, doit): The variable krb5_override_default_realm
+ is obsolete. Use the krb5_set_default_realm function instead.
+
+ * krshd.c (main, doit): The variable krb5_override_default_realm
+ is obsolete. Use the krb5_set_default_realm function instead.
Fri Apr 21 21:11:17 1995 Theodore Y. Ts'o (tytso@dcl)
krb5_context bsd_context;
char *srvtab = NULL;
-extern char *krb5_override_default_realm;
#define ARGSTR "rRkKeExXpPD:S:M:L:?"
#else /* !KERBEROS */
#define LOG_NDELAY 0
#endif
+#ifdef KERBEROS
+ krb5_init_context(&bsd_context);
+ krb5_init_ets(bsd_context);
+#endif
+
#ifndef LOG_AUTH /* 4.2 syslog */
openlog(progname, LOG_PID | LOG_NDELAY);
#else
srvtab = optarg;
break;
case 'M':
- krb5_override_default_realm = optarg;
+ krb5_set_default_realm(bsd_context, optarg);
break;
#endif
case 'p':
fatal(f, "Permission denied - Malformed from address\n");
#ifdef KERBEROS
- krb5_init_context(&bsd_context);
- krb5_init_ets(bsd_context);
if (must_pass_k5 || must_pass_one) {
/* setup des buffers */
desinbuf.data = des_inbuf;