Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Oct 1996 23:21:16 +0930 (CST)
From:      Peter Childs <pjchilds@imforei.apana.org.au>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/1825: more iijppp fixes/samples
Message-ID:  <199610161351.XAA10558@al.imforei.apana.org.au>
Resent-Message-ID: <199610161400.HAA03907@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1825
>Category:       bin
>Synopsis:       more iijppp fixes/samples
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 16 07:00:02 PDT 1996
>Last-Modified:
>Originator:     Peter Childs
>Organization:
Peter Childs  ---  http://www.imforei.apana.org.au/~pjchilds
  Finger pjchilds@al.imforei.apana.org.au for public PGP key
         Drag me, drop me, treat me like an object!
>Release:        FreeBSD 2.2-CURRENT i386
>Environment:

 2.2-current system

>Description:

 after some discussion in freebsd-isp i've included a patch to remove
 local hacks that may confuse people that don't read the source code

 i've also added the sample files as described in the man page for
 setting up a dialup ppp server.

 i've left a local hack in passwdauth.c #ifdef'd out because i think
 it shows up a vaild point about using the password file to PAP authenticate
 auto-ppp clients (ie don't just allow everyone with a valid
 username/password to log on with ppp)

>How-To-Repeat:

 become confused, submit code full of local hacks 

>Fix:
	
 please take the sample files from this uuencoded/gzip'ed/mime-enapsulated
 multipart 7bit'ifiyed and throw them in /etc/ppp

 also apply attached patches to /usr/src/usr.sbin/ppp 

begin 664 samples.tgz
M'XL(`-7D9#(``^U7;4_C1A#FZ_E73`,2<,J;`SE$3D@UB0%+29S:#ASJM6)C
M;XA[CIUZ-Y!(57][9]8.2>'H7:6#4U6/!':\L\^\K6<>"S:=1;PZF\TJ0<BB
M^6SKVXM>KQ\UF[`%H!\UZW1%65T!#AIU'>!=0S^L'QP>T;U^<'C8V(+Z"_CR
M1.9"LA1@:_:;/PFC0#RG=S_A/'H-AUY7MG^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*** 86,101 ****
      (void)time(&utmp.ut_time);
      (void)strncpy(utmp.ut_name, name, sizeof(utmp.ut_name));
  
! #ifdef LOCALHACK
  
!     /* we trim the first three characters off here.. see sample.ppp.conf */
!     (void)strncpy(utmp.ut_line, (char *)(dstsystem + 3), sizeof(utmp.ut_line));
! 
! #else
! 
!     (void)strncpy(utmp.ut_line, dstsystem, sizeof(utmp.ut_line));
! 
! #endif /* LOCALHACK */
  
      (void)strcpy(utmp.ut_host, "auto-ppp" );
      login(&utmp);
--- 86,100 ----
      (void)time(&utmp.ut_time);
      (void)strncpy(utmp.ut_name, name, sizeof(utmp.ut_name));
  
!     /*
!      * if the first three chacters are "pap" trim them off before doing
!      * utmp entry (see sample.ppp-pap-dialup 
!      */
  
!     if( strncmp( "pap", dstsystem, 3 ) == 0 )
!       (void)strncpy(utmp.ut_line, (char *)(dstsystem + 3), sizeof(utmp.ut_line));
!     else
!       (void)strncpy(utmp.ut_line, dstsystem, sizeof(utmp.ut_line));
  
      (void)strcpy(utmp.ut_host, "auto-ppp" );
      login(&utmp);
*** Makefile.orig	Wed Oct 16 23:04:20 1996
--- Makefile	Wed Oct 16 23:04:28 1996
***************
*** 6,12 ****
  	pap.c pred.c route.c slcompress.c timer.c systems.c uucplock.c vars.c \
  	vjcomp.c arp.c passwdauth.c
  #CFLAGS+= -DHAVE_SHELL_CMD_WITH_ANY_MODE
! CFLAGS += -Wall -DUSE_PERROR -DMSEXT -DPASSWDAUTH -DLOCALHACK
  LDADD += -lmd -lcrypt -lutil
  DPADD += ${LIBMD}
  MAN8=	ppp.8
--- 6,12 ----
  	pap.c pred.c route.c slcompress.c timer.c systems.c uucplock.c vars.c \
  	vjcomp.c arp.c passwdauth.c
  #CFLAGS+= -DHAVE_SHELL_CMD_WITH_ANY_MODE
! CFLAGS += -Wall -DUSE_PERROR -DMSEXT -DPASSWDAUTH
  LDADD += -lmd -lcrypt -lutil
  DPADD += ${LIBMD}
  MAN8=	ppp.8
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610161351.XAA10558>