[1917] in testers
xterminal problems
daemon@ATHENA.MIT.EDU (Mark Rosenstein)
Thu May 21 19:02:44 1992
Date: Thu, 21 May 92 19:02:14 -0400
From: Mark Rosenstein <mar@MIT.EDU>
To: testers@MIT.EDU
We should punt the support for the old xlogin in /etc/athena/xdm. I'm
not sure which Imakefile needs to be tweeked to do this. The config
files being installed in /usr/athena/lib/xdm should be installed in
/etc/athena/xdm (this whole directory can be normally symlinked to the
packs, and copied local in mkserv xterm). The resources file needs an
additional line for secure logins. Finally, verify.c has problems
finding the proper tty slot to use.
The fixes to verify.c are untested because I'm late leaving for
Montreal. If you want to wait on them until Tuesday, we can do that.
-Mark
*** /source/athena/athena.etc/xdm/xdm/Imakefile Thu May 7 22:16:20 1992
--- ./Imakefile Thu May 21 18:41:04 1992
***************
*** 39,49 ****
AnsiCC()
SimpleProgram(xdm,$(OBJS),$(LIBS),$(ATHETCDIR))
install_man(xdm.man,xdm.8)
! create_dir($(ATHLIBDIR)/xdm)
! install_file(Xresources,$(ATHLIBDIR)/xdm/Xresources)
! install_file(xdm-config,$(ATHLIBDIR)/xdm/xdm-config)
! install_file(Xservers,$(ATHLIBDIR)/xdm/Xservers)
! install_file(Xaccess,$(ATHLIBDIR)/xdm/Xaccess)
athena-verify.c: ../xlogin/verify.c
rm -f athena-verify.c
--- 39,49 ----
AnsiCC()
SimpleProgram(xdm,$(OBJS),$(LIBS),$(ATHETCDIR))
install_man(xdm.man,xdm.8)
! create_dir($(AConfDir)/xdm)
! install_file(Xresources,$(AConfDir)/xdm/Xresources)
! install_file(xdm-config,$(AConfDir)/xdm/xdm-config)
! install_file(Xservers,$(AConfDir)/xdm/Xservers)
! install_file(Xaccess,$(AConfDir)/xdm/Xaccess)
athena-verify.c: ../xlogin/verify.c
rm -f athena-verify.c
*** /source/athena/athena.etc/xdm/xdm/Xresources Tue Apr 28 13:00:28 1992
--- ./Xresources Thu May 21 18:47:27 1992
***************
*** 1,5 ****
xlogin*login.translations: #override\
! Ctrl<Key>P: abort-display()\n\
<Key>F1: set-session-argument(1)\n\
<Key>F2: set-session-argument(2)\n\
<Key>F3: set-session-argument(3)\n\
--- 1,5 ----
xlogin*login.translations: #override\
! Ctrl<Key>P: abort-session()\n\
<Key>F1: set-session-argument(1)\n\
<Key>F2: set-session-argument(2)\n\
<Key>F3: set-session-argument(3)\n\
***************
*** 9,14 ****
--- 9,15 ----
xlogin*greeting: Welcome to Athena
xlogin*namePrompt: Username:\
xlogin*fail: Login incorrect
+ xlogin*secureSession: true
#ifdef COLOR
xlogin*greetColor: CadetBlue
xlogin*failColor: red
*** /source/athena/athena.etc/xdm/xlogin/verify.c Mon May 18 17:05:12 1992
--- ./verify.c Thu May 21 18:59:24 1992
***************
*** 996,1001 ****
--- 996,1026 ----
}
+ #ifndef _AIX
+ /* replacement for library ttyslot routine which takes tty as argument
+ * rather than finding controlling tty (which is often undefined in xlogin).
+ */
+
+ int ttyslot(tty)
+ char *tty;
+ {
+ int s = 0;
+ struct ttyent *ty;
+
+ setttyent();
+ while ((ty = getttyent()) != NULL) {
+ s++;
+ if (strcmp(ty->ty_name, tty) == 0) {
+ endttyent();
+ return(s);
+ }
+ }
+ endttyent();
+ return(0);
+ }
+ #endif /* _AIX */
+
+
add_utmp(user, tty, display)
char *user;
char *tty;
***************
*** 1004,1010 ****
struct utmp ut_entry;
int f;
#ifndef _AIX
! int slot = ttyslot();
#endif
bzero(&ut_entry, sizeof(ut_entry));
--- 1029,1035 ----
struct utmp ut_entry;
int f;
#ifndef _AIX
! int slot = ttyslot(tty);
#endif
bzero(&ut_entry, sizeof(ut_entry));