From owner-freebsd-hackers Sat Oct 5 06:50:38 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id GAA17863 for hackers-outgoing; Sat, 5 Oct 1996 06:50:38 -0700 (PDT) Received: from hps.sso.wdl.lmco.com (hps.sso.wdl.lmco.com [158.186.22.100]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id GAA17858 for ; Sat, 5 Oct 1996 06:50:36 -0700 (PDT) Received: from miles.sso.wdl.lmco.com by hps.sso.wdl.lmco.com (4.1/SSO-4.01-LMCO) id AA01987; Sat, 5 Oct 96 09:49:51 EDT Received: by miles.sso.wdl.lmco.com (4.1/SSO-SUN-2.04) id AA08632; Sat, 5 Oct 96 09:47:23 EDT Date: Sat, 5 Oct 1996 09:47:22 -0400 (EDT) From: Richard Toren X-Sender: rpt@miles To: Stephen Hocking Cc: hackers@FreeBSD.ORG Subject: Re: SecureID cards & userland ppp In-Reply-To: <199610040739.HAA07974@netfl15a.devetir.qld.gov.au> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Stephen; I anticipated the same problem by making a small change to the chat program. I modified it so that any 'reply' string that started with a '$' caused an environment lookup. 312 if (*sp != '\0') 313 *sp++ = '\0'; 314 315 /* RPT -- substitute an envronment variable if the string 316 starts with $, else send as is */ + 317 if (*arg=='$') { + 318 envP = getenv(&arg[1]); + 319 syslog(LOG_INFO, "chat substitute %s = %s", arg,envP?envP:"NULL"); + 320 arg = envP?envP:arg; + 321 } 322 323 if (sendflg) { 324 chat_send (arg); 325 } Now I use a script around the command that that takes the expected Secureid as an argument, puts it in th elocal environment and the starts pppd. The chat script then passes that at the challenge. On Fri, 4 Oct 1996, Stephen Hocking wrote: > > My place of employment is now doing it's dialing via the SecureID stuff. For > those who don't know, each persion is issued with a nifty little card & a PIN > number. The card has a display on it that changes every 5 or so minutes. You > dial in and are prompted for a user name. Upon entering this, you are prompted > for a passcode, which is your PIN number concatenated with whatever the number > is on the display of the card at that time. As you can imagine, this makes > automating it rather difficult. One can't persuade it to prompt for user input > partway through the login sequence. Any ideas (doing it all manually, via > "term" works fine)? > > > Stephen > -- > The views expressed above are not those of the Worker's Compensation Board of > Queensland, Australia. > > > ==================================================== Rip Toren | The bad news is that C++ is not an object-oriented | rpt@sso.wdl.lmco.com | programming language. .... The good news is that | | C++ supports object-oriented programming. | | C++ Programming & Fundamental Concepts | | by Anderson & Heinze | ====================================================