> Hi. I need some help with connecting to a Windows ISP through Linux. Most
> ISP's out there, which are UNIX, present a text screen to login with after
> connecting to them, so its simple - dial in, type in your login id, and
> password, and then you're connected.
> With the Windows ISP, its easy with Windows. Just setup dialup networking
> to connect to a Windows server, put in the Windows domain to connect to,
> username, password. Then, dial in, and after connecting, the computers
> talk to each other AUTOMATICALLY, and presto, you are magically connected.
> Now my question is, how do I connect to this Windows ISP with Linux? There
> must be some program or mechanism by which I can put in the Windows
> username and domain and password ahead of time, like in Windows, and have
> the program dial the Windows ISP, and talk to the server similarly, and
> connect.
> Any help would be appreciated. If possible, please reply to me directly,
> and possibly post a copy to the netnews group too for other Linux'ers too!
> Thanks.
Hi,
what version of pppd are you using. you must have version 2.3.0 , with
ms-chap and cbcp ( at least if you want callback capabilities ) compiled
in.
pppd 2.3.0 is at :ftp://cs.anu.edu.au/pub/software/ppp/
suppose your login at the NT server is k.xxxxxx with password reon and
the server is known as XXX
1. put in /etc/ppp/chap-secrets the following two lines:
XXX k.xxxxxx reon
k.xxxxxx XXX reon
2. put in /etc/options :
name k.xxxxxx
remotename XXX
3. then the following script works for me for dialing out:
#script 1
pppd /dev/modem 38400 -detach connect 'chat -v -t 100 "" AT\&FV1Q0L1M1^M
OK ATD"server_phone_number" \
crtscts modem debug callback "my_home_phone_number" \
defaultroute noipdefault
when called back then start the next script:
#script 2
pppd /dev/modem connect 'chat -v -t 500 "" ATAM1L0 RING OK CONNECT OK' \
defaultroute noipdefault crtscts modem debug
PS
- take care of the my_home_phone_number: if the server has to pass
trough a central phone desk you have to put a 0, in front of your home
number.
- tail -f /var/log/debug: the output from script 1 look like this:
Jul 6 20:26:55 herman pppd[224]: sent [LCP ConfReq id=0x1 <callback
0x605> 06 2b 09 95 1f 07 02 08 02 00]
Jul 6 20:26:55 herman pppd[224]: rcvd [LCP ConfReq id=0x0 <asyncmap
0x0> <auth chap 80> <magic 0x141b> <pcomp> <acc
Jul 6 20:26:55 herman pppd[224]: sent [LCP ConfAck id=0x0 <asyncmap
0x0> <auth chap 80> <magic 0x141b> <pcomp> <acc
Jul 6 20:26:55 herman pppd[224]: rcvd [LCP ConfAck id=0x1 <callback
0x605> 06 2b 09 95 1f 07 02 08 02 00]
Jul 6 20:26:55 herman pppd[224]: cbcp_lowerup
Jul 6 20:26:55 herman pppd[224]: want: 14
Jul 6 20:26:55 herman pppd[224]: rcvd [CHAP Challenge id=0x31
<d916fc84cb34a403>, name = ""]
Jul 6 20:26:55 herman pppd[224]: sent [CHAP Response id=0x31
<000000000000000000000000000000000000000000000000a0ef2
Jul 6 20:26:55 herman pppd[224]: rcvd [CHAP Success id=0x31 ""]
Jul 6 20:26:55 herman pppd[224]: cbcp_open
Jul 6 20:26:55 herman pppd[224]: rcvd [CBCP Request id=0x1 <
NoCallback> 02 05 00 01 00]
Jul 6 20:26:55 herman pppd[224]: length: 7
Jul 6 20:26:55 herman pppd[224]: no callback allowed
Jul 6 20:26:55 herman pppd[224]: length: 5
Jul 6 20:26:55 herman pppd[224]: user callback allowed
Jul 6 20:26:55 herman pppd[224]: cbcp_resp cb_type=6
Jul 6 20:26:55 herman pppd[224]: cbcp_resp CONF_USER
Jul 6 20:26:55 herman pppd[224]: sent [CBCP Response id=0x1 <
UserDefined delay = 5 number = 0,my_home_phonenumber>] 30 2c 30
Jul 6 20:26:56 herman pppd[224]: rcvd [CBCP Ack id=0x1 < UserDefined
delay = 5 number = 0,059277794>] 30 2c 30 35 3
Jul 6 20:26:56 herman pppd[224]: peer will call: 0,my_home_phonenumber
Jul 6 20:26:56 herman pppd[224]: sent [LCP TermReq id=0x2 "Call me
back, please"]
Hope this helps!!!!!!!!!!!!!
Hdum