Hi all,
I have a PPP connection between a QNX 4.25E + TCP/IP 5.0 and Win2k
QNX is the server, Win2k is the client. On the Win2k side I am using a
direct cable connection with the proper setting of the properties.
The link is working correctly when authentication is disabled:
pppd localPPPHost:remotePPPHost debug passive /dev/ser1
When I enable authentication with:
pppd +pap name myName localPPPHost:remotePPPHost debug passive /dev/ser1
and I provide the /etc/ppp/pap-secrets:
/etc/ppp/pap-secrets
-
myName ciao
pppd terminates immediately with the message:
Apr 27 20:33:40 localhost pppd[1949]: peer authentication required but
no suitable secret(s) found
Apr 27 20:33:40 localhost pppd[1949]: for authenticating peer
pppRemoteHost to us (myName)
I tried to change the way in which I specify the local host, and its
reference in the secret file, without any effect. Where was I wrong ?
=================
I did also another test, I enabled +pap and login:
pppd login +pap localPPPHost:remotePPPHost debug passive /dev/ser1
The user:password pair from Win2k matched a valid pair in QNX passwd,
and I enabled pap on Win2k as well.
In this case pppd did not stop, but the procedure failed. Here is what I
extracted from syslog:
Apr 27 23:28:15 localhost pppd[2708]: pppd 2.3.5 started by enrico, uid 0
Apr 27 23:28:15 localhost pppd[2708]: Using interface vp0
Apr 27 23:28:15 localhost pppd[2708]: Connect: vp0 <–> /dev/ser1
Apr 27 23:28:15 localhost pppd[2708]: sent [LCP ConfReq id=0x1 <magic 0x649c85c1> ]
Apr 27 23:28:39 localhost last message repeated 8 times
Apr 27 23:28:39 localhost pppd[2708]: rcvd [LCP ConfReq id=0x0 <asyncmap
0x0> <magic 0x732823b9> <callback 0x611> <quality
0x4e13 17 01> fa df 11 5d 27 e5 4d 51 b9 af f6 46 82 f1 ee cf 00 00 00
00 00]
Apr 27 23:28:39 localhost pppd[2708]: sent [LCP ConfRej id=0x0 <callback
0x611> <quality 0x4e13 17 01> fa df 11 5d 27 e5 4d 51 b9 af f6 46 82 f1
ee cf 00 00 00 00 00]
Apr 27 23:28:39 localhost pppd[2708]: rcvd [LCP ConfReq id=0x1 <asyncmap
0x0> <magic 0x732823b9> ]
Apr 27 23:28:39 localhost pppd[2708]: sent [LCP ConfAck id=0x1 <asyncmap
0x0> <magic 0x732823b9> ]
Apr 27 23:28:42 localhost pppd[2708]: sent [LCP ConfReq id=0x1 <magic 0x649c85c1> ]
Apr 27 23:28:42 localhost pppd[2708]: rcvd [LCP ConfAck id=0x1 <magic 0x649c85c1> ]
Apr 27 23:28:42 localhost pppd[2708]: rcvd [LCP code=0xc id=0x2 73 28 23
b9 4d 53 52 41 53 56 35 2e 30 30]
Apr 27 23:28:42 localhost pppd[2708]: sent [LCP CodeRej id=0x2 0c 02 00
12 73 28 23 b9 4d 53 52 41 53 56 35 2e 30 30]
Apr 27 23:28:42 localhost pppd[2708]: rcvd [LCP code=0xc id=0x3 73 28 23
b9 4d 53 52 41 53 2d 31 2d 53 44 54]
Apr 27 23:28:42 localhost pppd[2708]: sent [LCP CodeRej id=0x3 0c 03 00
13 73 28 23 b9 4d 53 52 41 53 2d 31 2d 53 44 54]
Apr 27 23:28:42 localhost pppd[2708]: rcvd [PAP AuthReq id=0x9
user=“enrico” password=“ciao”]
Apr 27 23:28:42 localhost pppd[2708]: PAP authentication failure for enrico
Apr 27 23:28:42 localhost pppd[2708]: sent [PAP AuthNak id=0x9 “Login
incorrect”]
Apr 27 23:28:42 localhost pppd[2708]: sent [LCP TermReq id=0x4
“Authentication failed”]
Apr 27 23:28:42 localhost pppd[2708]: rcvd [LCP TermAck id=0x4
“Authentication failed”]
Apr 27 23:28:42 localhost pppd[2708]: Hangup (SIGHUP)
This is not what I were expecting from the documentation. Is there some
bug in pppd ? Where am I wrong ?
Thanks,
Enrico