[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ipcop-cvs
Subject:    [IPCop-cvs] ipcop/src/rc.d rc.red,1.29.2.14,1.29.2.15
From:       Gilles Espinasse <gespinasse () users ! sourceforge ! net>
Date:       2004-05-29 19:30:06
Message-ID: E1BU9Wy-0006nH-SU () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/ipcop/ipcop/src/rc.d
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26018/src/rc.d

Modified Files:
      Tag: IPCOP_v1_4_0
	rc.red 
Log Message:
Allow selective use of PAP only or CHAP only as a workaround for broken LTP2 gateway \
in PPPoA and CHAP mode (I do nothing for ISDN)

Index: rc.red
===================================================================
RCS file: /cvsroot/ipcop/ipcop/src/rc.d/rc.red,v
retrieving revision 1.29.2.14
retrieving revision 1.29.2.15
diff -C2 -d -r1.29.2.14 -r1.29.2.15
*** rc.red	15 May 2004 13:33:55 -0000	1.29.2.14
--- rc.red	29 May 2004 19:30:03 -0000	1.29.2.15
***************
*** 420,429 ****
  		 push(@pppcommand, ('usepeerdns')); }
  
! 	if ($pppsettings{'AUTH'} eq 'standard-login-script') {
! 		$loginscript = 'standardloginscript'; }
! 	elsif ($pppsettings{'AUTH'} eq 'demon-login-script') {
! 		$loginscript = 'demonloginscript'; }
! 	else {
! 		$loginscript = $pppsettings{'LOGINSCRIPT'}; }
  
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
--- 420,434 ----
  		 push(@pppcommand, ('usepeerdns')); }
  
! 	if ($pppsettings{'AUTH'} eq 'pap') {
! 		push(@pppcommand, ('-chap'));
! 	} elsif ($pppsettings{'AUTH'} eq 'chap') {
! 		push(@pppcommand, ('-pap'));
! 	} elsif ($pppsettings{'AUTH'} eq 'standard-login-script') {
! 		$loginscript = 'standardloginscript';
! 	} elsif ($pppsettings{'AUTH'} eq 'demon-login-script') {
! 		$loginscript = 'demonloginscript';
! 	} else {
! 		$loginscript = $pppsettings{'LOGINSCRIPT'};
! 	}
  
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
***************
*** 467,470 ****
--- 472,481 ----
  		 push(@pppcommand, ('usepeerdns')); }
  
+ 	if ($pppsettings{'AUTH'} eq 'pap') {
+ 		push(@pppcommand, ('-chap'));
+ 	} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 		push(@pppcommand, ('-pap'));
+ 	}
+ 
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
  		push(@pppcommand, ('persist'));
***************
*** 605,609 ****
  			push(@pppcommand, ('usepeerdns'));
  		}
! 	
  		if ($pppsettings{'RECONNECTION'} eq 'persistent') {
  			push(@pppcommand, ('persist')); 
--- 616,626 ----
  			push(@pppcommand, ('usepeerdns'));
  		}
! 
! 		if ($pppsettings{'AUTH'} eq 'pap') {
! 			push(@pppcommand, ('-chap'));
! 		} elsif ($pppsettings{'AUTH'} eq 'chap') {
! 			push(@pppcommand, ('-pap'));
! 		}
! 
  		if ($pppsettings{'RECONNECTION'} eq 'persistent') {
  			push(@pppcommand, ('persist')); 
***************
*** 641,644 ****
--- 658,666 ----
  			push(@pppcommand, ('usepeerdns'));
  		}
+ 		if ($pppsettings{'AUTH'} eq 'pap') {
+ 			push(@pppcommand, ('-chap'));
+ 		} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 			push(@pppcommand, ('-pap'));
+ 		}
  		if ($pppsettings{'RECONNECTION'} eq 'persistent') {
  			push(@pppcommand, ('persist'));
***************
*** 694,697 ****
--- 716,724 ----
  		push(@pppcommand, ('usepeerdns'));
  	}
+ 	if ($pppsettings{'AUTH'} eq 'pap') {
+ 		push(@pppcommand, ('-chap'));
+ 	} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 		push(@pppcommand, ('-pap'));
+ 	}
  
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
***************
*** 746,749 ****
--- 773,781 ----
  		push(@pppcommand, ('usepeerdns'));
  	}
+ 	if ($pppsettings{'AUTH'} eq 'pap') {
+ 		push(@pppcommand, ('-chap'));
+ 	} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 		push(@pppcommand, ('-pap'));
+ 	}
  
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
***************
*** 840,843 ****
--- 872,880 ----
  		push(@pppcommand, ('usepeerdns'));
  	}
+ 	if ($pppsettings{'AUTH'} eq 'pap') {
+ 		push(@pppcommand, ('-chap'));
+ 	} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 		push(@pppcommand, ('-pap'));
+ 	}
  
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
***************
*** 967,970 ****
--- 1004,1013 ----
  	if ($pppsettings{'DNS'} eq 'Automatic') { push(@pppcommand, ('usepeerdns'));}
  
+ 	if ($pppsettings{'AUTH'} eq 'pap') {
+ 		push(@pppcommand, ('-chap'));
+ 	} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 		push(@pppcommand, ('-pap'));
+ 	}
+ 
  	if ($pppsettings{'RECONNECTION'} eq 'persistent') {
  		push(@pppcommand, ('persist'));
***************
*** 1076,1079 ****
--- 1119,1127 ----
  			'/usr/lib/pppd/2.4.2/pppoatm.so',$pppsettings{'VPI'}.".".$pppsettings{'VCI'},"$ENCAP");
  if ($pppsettings{'DNS'} eq 'Automatic') { push(@pppcommand, ('usepeerdns'));}
+ 		if ($pppsettings{'AUTH'} eq 'pap') {
+ 			push(@pppcommand, ('-chap'));
+ 		} elsif ($pppsettings{'AUTH'} eq 'chap') {
+ 			push(@pppcommand, ('-pap'));
+ 		}
  		if ($pppsettings{'RECONNECTION'} eq 'persistent') {
  			push(@pppcommand, ('persist'));



-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
IPCop-cvs mailing list
IPCop-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ipcop-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic