QNX is a pppd server with authentication enabled

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

| Enrico Bendinelli | Prisma Engineering srl |
| enricob@prisma-eng.it | Via Petrocchi 4 20127 MILANO ITALY |
| http://www.prisma-eng.it | Tel. +39 02 26113507 Fax. 26113597 |

Enrico Bendinelli <enricob@prisma-eng.it> wrote in message
news:3DD6D995.3080606@prisma-eng.it

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
    

Since QNX side is the ppp server, “+pap” means “force the win2k use pap to
authenticate
itself”, and the “pap-secrets” on QNX side (server side) should looks like:

QNXhostname W2Khostname thesecret

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:

As you can see, w2k try to authenticate itself as “enrico”/“ciao”, can you
login into you QNX box with this username/password pair ?

-xtang

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

| Enrico Bendinelli | Prisma Engineering srl |
| > enricob@prisma-eng.it > | Via Petrocchi 4 20127 MILANO ITALY |
| > http://www.prisma-eng.it > | Tel. +39 02 26113507 Fax. 26113597 |

Xiaodan Tang wrote:

Enrico Bendinelli <> enricob@prisma-eng.it> > wrote in message
news:> 3DD6D995.3080606@prisma-eng.it> …

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
    



Since QNX side is the ppp server, “+pap” means “force the win2k use pap to
authenticate
itself”, and the “pap-secrets” on QNX side (server side) should looks like:

QNXhostname W2Khostname thesecret

I tried in several way to specify QNXhostname, i.e. referring to
hostname (passed to Tcpip), or using the name n option to force it but
the result was always the same.


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)

With reference to the previos error message I also tried to put in
/etc/ppp/pap-secrets something like:

myName
pluto thesecret1
myName pippo thesecret2

but it did not worked as well.

Could you provide a working example of these files ?

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:


As you can see, w2k try to authenticate itself as “enrico”/“ciao”, can you
login into you QNX box with this username/password pair ?

Yes, enrico/ciao are a valid couple of username/password which works if
I normally login in the system.


-xtang


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

| Enrico Bendinelli | Prisma Engineering srl |
| enricob@prisma-eng.it | Via Petrocchi 4 20127 MILANO ITALY |
| http://www.prisma-eng.it | Tel. +39 02 26113507 Fax. 26113597 |

Enrico Bendinelli <enricob@prisma-eng.it> wrote in message
news:3DD76DA6.7000106@prisma-eng.it

Xiaodan Tang wrote:
Enrico Bendinelli <> enricob@prisma-eng.it> > wrote in message
news:> 3DD6D995.3080606@prisma-eng.it> …

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
    



Since QNX side is the ppp server, “+pap” means “force the win2k use pap
to
authenticate
itself”, and the “pap-secrets” on QNX side (server side) should looks
like:

QNXhostname W2Khostname thesecret

I tried in several way to specify QNXhostname, i.e. referring to
hostname (passed to Tcpip), or using the name n option to force it but
the result was always the same.



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)


With reference to the previos error message I also tried to put in
/etc/ppp/pap-secrets something like:

myName
pluto thesecret1
myName pippo thesecret2

but it did not worked as well.

Could you provide a working example of these files ?

  • enrico ciao *

-xtang


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:


As you can see, w2k try to authenticate itself as “enrico”/“ciao”, can
you
login into you QNX box with this username/password pair ?


Yes, enrico/ciao are a valid couple of username/password which works if
I normally login in the system.


-xtang


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


\


| Enrico Bendinelli | Prisma Engineering srl |
| > enricob@prisma-eng.it > | Via Petrocchi 4 20127 MILANO ITALY |
| > http://www.prisma-eng.it > | Tel. +39 02 26113507 Fax. 26113597 |