From owner-freebsd-hackers Tue Jun 11 18:57:13 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA15553 for hackers-outgoing; Tue, 11 Jun 1996 18:57:13 -0700 (PDT) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA15548 for ; Tue, 11 Jun 1996 18:57:09 -0700 (PDT) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.7.5/CET-v2.1) with SMTP id KAA12776 for ; Wed, 12 Jun 1996 10:57:07 +0900 (JST) Date: Wed, 12 Jun 1996 10:57:07 +0900 (JST) From: Michael Hancock To: hackers@freebsd.org Subject: scriptless PPP authentication Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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