LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-02-2001, 08:16 AM   #1
David
LQ Newbie
 
Registered: May 2001
Posts: 2

Rep: Reputation: 0

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.
 
Old 05-02-2001, 11:15 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 05-02-2001, 05:23 PM   #3
philfighter
Member
 
Registered: Apr 2001
Location: South of Atlanta
Distribution: Mandrake 8.1, Suse 7.0
Posts: 207

Rep: Reputation: 30
Talking

Trickykid!!! Youre a genius! That works like a charm...man, where do yu find these little gems?
 
Old 05-03-2001, 12:19 PM   #4
David
LQ Newbie
 
Registered: May 2001
Posts: 2

Original Poster
Rep: Reputation: 0
Angry

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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ppp dialup problem cch2cch Linux - Software 0 04-10-2005 02:15 PM
ppp dialup problems neo_nirvane Slackware 13 10-28-2003 04:00 PM
PPP dialup problem Xreagan Linux - Networking 8 02-20-2003 01:47 PM
ppp dialup problem xiefs Linux - General 4 05-27-2002 04:55 AM
Dialup PPP server? antec30 Linux - Networking 2 10-29-2001 09:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration