Date: Wed, 12 Jun 1996 10:57:07 +0900 (JST) From: Michael Hancock <michaelh@cet.co.jp> To: hackers@freebsd.org Subject: scriptless PPP authentication Message-ID: <Pine.SV4.3.93.960612103321.11628B-100000@parkplace.cet.co.jp>
next in thread | raw e-mail | index | archive | help
I had a quick look at the getty sources and it looks like you could easily put in some code to detect PPP and launch pppd with (chap|pap) instead of login. I saw code like this done in mgetty in the archives of the screaming hordes. Has anyone done this yet? If not I'll write the short bit of code and post the context diffs. Basically, you can place a simple ppp detect state machine in the loop in getname() between the read and the login name buffer building code. getname()'s return value would have to be changed from (true|false) to (unix login|ppp|nothing). Then do the following in getty's main loop: getname() if login exec login else if ppp exec pppd requireauth otherwise nothing This makes Win95 PPP login real easy. -mike hancock
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SV4.3.93.960612103321.11628B-100000>
