LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need PPP Dialup solution (https://www.linuxquestions.org/questions/linux-newbie-8/need-ppp-dialup-solution-2244/)

David 05-02-2001 09:16 AM

I am a Linux Newbie and just installed Redhat 7.1. I am using Gnome for a desktop and trying to configure dialup access into work using WVDial. I need an application or help in creating a script to allow an interactive login. We use SecureID and my password is always changing so I need to be prompted for my username and password. Any help would be greatly appreciated.

trickykid 05-02-2001 12:15 PM

well, i work for Raytheon and we have those secureid cards as well, i haven't personally messed with it myself but here is a scripts they use to connect to the network within Linux using the secureid type connections.


Run (as root): Raytheon.pl 123456 where 123456 is your pin from your sdi
token.


Raytheon.pl
============
-- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
#!/usr/local/bin/perl

$default_user = 'a0123456';

$ppp = '/usr/sbin/pppd call raytheon';
$chat = '/usr/sbin/chat -v -f /etc/ppp/peers/raytheon.chat';

($pgm)=$0=~m|([^/]*)$|;

if (!@ARGV) {
die "Usage: $pgm [[username] password]\n";
}

if ($#ARGV) {
$user= shift;
chomp $user;
}
else { $user=$default_user; }

$passwd = shift;
chomp $passwd;

#print "$ppp connect '$chat -U $user -T $passwd'\n";;
`$ppp connect '$chat -U $user -T $passwd'`;

-- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --

/etc/ppp/peers/raytheon
=======================
-- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
crtcts
/dev/ttyS0
57600
lock
connect "/usr/sbin/chat -v -f /etc/ppp/peers/raytheon.chat"

defaultroute
noipdefault
passive

ipparam raytheon

#debug
#kdebug 7

-- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --

/etc/ppp/peers/raytheon.chat
============================
-- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE -- CUT HERE --
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "ERROR"
ABORT "NO ANSWER"
ABORT "BUSY"
TIMEOUT 5
'' ATH
OK-\p+++\c-OK ATH
TIMEOUT 30
OK ATZ
OK ATl0m0x4e1S7=50S11=55
OK ATDTW214-743-1917
CONNECT ""
sername:--sername: \U
assword: \T

maybe this gets you going in the right direction.

philfighter 05-02-2001 06:23 PM

Trickykid!!! Youre a genius! That works like a charm...man, where do yu find these little gems?

David 05-03-2001 01:19 PM

Thanks for the script but I don't seem to be able to get it working. I installed Perl but the only way I can even get the script recognized as a perl script is to run it as perl /"path"/Ratheon.pl. I verified that the first line of the script #! /"path"/perl is correct. When I run perl and then the filename I get nothing but a prompt. Since I know less about Perl than I do about Linux I guess I'm just hosed! Thanks for the info.


All times are GMT -5. The time now is 06:06 PM.