* telnetd.c (valid_opts): Add 'L'. If KRB5, add -R and -t.
(main): Handle -L. If KRB5, handle -R and -t.
* sys_term.c (login_program): New global variable.
(start_login): Use login_program instead of LOGIN_PROGRAM.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5426
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Apr 21 12:47:57 1995 Mark Eichin <eichin@cygnus.com>
+
+ From Ian Taylor <ian@cygnus.com>.
+ * telnetd.c (valid_opts): Add 'L'. If KRB5, add -R and -t.
+ (main): Handle -L. If KRB5, handle -R and -t.
+ * sys_term.c (login_program): New global variable.
+ (start_login): Use login_program instead of LOGIN_PROGRAM.
+
Wed Mar 29 15:39:39 1995 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: Add dependency on libtelnet.a
#include "k5-int.h"
#endif
+char *login_program = LOGIN_PROGRAM;
+
#if defined(CRAY) || defined(__hpux)
# define PARENT_DOES_UTMP
#endif
close(pty);
#endif
closelog();
- execv(LOGIN_PROGRAM, argv);
+ execv(login_program, argv);
- syslog(LOG_ERR, "%s: %m\n", LOGIN_PROGRAM);
- fatalperror(net, LOGIN_PROGRAM);
+ syslog(LOG_ERR, "%s: %m\n", login_program);
+ fatalperror(net, login_program);
/*NOTREACHED*/
}
* passed off to getopt().
*/
char valid_opts[] = {
- 'd', ':', 'h', 'k', 'n', 'S', ':', 'u', ':', 'U',
+ 'd', ':', 'h', 'k', 'L', ':', 'n', 'S', ':', 'u', ':', 'U',
#ifdef AUTHENTICATION
'a', ':', 'X', ':',
#endif
#endif
#ifdef SecurID
's',
+#endif
+#ifdef KRB5
+ 'R', ':', 't', ':',
#endif
'\0'
};
#endif /* defined(LINEMODE) && defined(KLUDGELINEMODE) */
break;
+ case 'L':
+ {
+ extern char *login_program;
+
+ login_program = optarg;
+ break;
+ }
+
case 'n':
keepalive = 0;
break;
}
#endif /* CRAY */
+#ifdef KRB5
+ case 'R':
+ {
+ extern char *krb5_override_default_realm;
+
+ krb5_override_default_realm = optarg;
+ break;
+ }
+#endif /* KRB5 */
+
#ifdef SecurID
case 's':
/* SecurID required */
#endif
break;
+#ifdef KRB5
+ case 't':
+ {
+ extern char *telnet_srvtab;
+
+ telnet_srvtab = optarg;
+ break;
+ }
+#endif /* KRB5 */
+
case 'u':
utmp_len = atoi(optarg);
break;