----------
From:   Tim Coleman[SMTP:[EMAIL PROTECTED]]
Sent:   Friday, 3 March 2000 3:09
To:     Wilson Fletcher
Subject:        Re: dialing different hosts

On Thu, Mar 02, 2000 at 09:55:51AM +1100, Wilson Fletcher wrote:
>       I'm not upto this stage yet becuase I would still have the same problem
> ie. How to I get authentication to work on different hosts for the same
> login id ?

I think I already went through this and you said it didn't work :(

hmmm, don't remember .... It's possible to connect to different hosts with 
the same name the only question is how many hoops do you have to jump 
through to achieve it ? In fact I experimented with the remotename pppd 
option to good effect last night.

> 2. A script that alters the phone number in your chat-script and then 
hangs
> up diald (if it is online) and reconnects to the new number. The number 
is
> probably the minimum (it's all I require) but you could maybe alter other 
> features or get it to load different files etc.
>       Something like diald-switch -n 1234567

Actually, you could just start up diald with different options file 
depending
on what connection you want, which could then mean you have different
chat scripts.  I think the -f option allows you to specify configuration
file for diald.

command line could be something like:
$ DIALD_OPTIONS=/etc/diald/options.work /etc/rc.d/init.d/diald restart

and in the diald startup, something like:

...
if [ "$DIALD_OPTIONS" == "" ]; then
  DIALD_OPTIONS=options.home;
fi
diald ... -f $DIALD_OPTIONS;
...

and then you could have "connect" differently in each of your diald options
files.

Of course, this is all off the top of my head and may not work.  YMMV.

Yep and it sounds good to me Tim, I was thinking the exact same thing last 
night but I haven't tried it yet because I wanted to get my pap-secrets 
issues sorted out first.

I do now have work around for pap-secrets which is to use the remotename 
pppd option which forces a server name and thus ensures that pppd chooses 
the correct password from pap-secrets.

Which means I would probably have something like:

# In /etc/rc.d/init.d/diald script

        prefhost = defaulthost
        Ask for user's host preference
        Get response, parse it, blah blah blah OR time out
        If user chose another then
                set prefhost etc ,etc
#       start diald with appropriate options and config
        /usr/bin/diald -f diald.$prefhost -- remotename $prefhost
        
Once I get this running then I'll be able to set a script entry that will 
switch between them even during sessions ... of course I might loose the 
odd packet in the process but what's a few packets between friends (after 
all I'm not controlling the space shuttle).

Forgive the pseudo yuk I don't carry syntax in my head .... and my life 
doesn't generally depend on bash.

Thanks for the reply,

Wilson Fletcher

-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to