Date: Fri, 12 Dec 1997 07:51:56 +0000 From: Brian Somers <brian@awfulhak.org> To: Narana Kannappan <narana@cisco.com> Cc: freebsd-stable@freebsd.org Subject: Re: chat script for ppp Message-ID: <199712120751.HAA29249@awfulhak.demon.co.uk> In-Reply-To: Your message of "Thu, 11 Dec 1997 11:12:55 PST." <199712111912.LAA00838@nkannapp-ss20.cisco.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> I want to write a chat script for the "set login" command that
> prompts the user for a password and gives that password to the
> remote end.
>
> The reason I want this is because I have one of those
> secure password cards that gives you the password to use to connect to
> your ISP. Therefore I cant "hardcode" the password value into the
> login chat script (as shown in the man page examples and sample ppp
> config files).
>
> Any inputs about how to do this is highly appreciated.
Write your ``set login'' line as normal but use the '\\P' string in
place of your password. When you know what your password actually
is, you can `pppctl /var/run/ppp set authkey MyPassword' to set
MyPassword as the substitution text for the `\\P'. You'll need to
use the `set server /var/run/ppp DiagPassword 0117' command in
ppp.conf to allow pppctl access. Check the man page for details.
> Thanks,
> Narana.
--
Brian <brian@Awfulhak.org>, <brian@FreeBSD.org>, <brian@OpenBSD.org>
<http://www.Awfulhak.org>
Don't _EVER_ lose your sense of humour....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712120751.HAA29249>
