|
求助专家:CDMA拨号时PPP协商认证失败的问题
[复制链接]
问题描述
硬件环境:Android平台+CDMA modem;
操作步骤:先设置APN为uniwap,再进行拨号ATD#777,然后开始PPP协商;
相关设置:pap-secrets中内容:CARD PDSN CARD *
chap-secrets中内容:CARD PDSN CARD *
结果:在PPP认证时失败,无论是采用CHAP还是PAP,都不能成功。
如果采用CHAP认证,则被拒绝接入(返回认证失败);
如果采用PAP认证,发送用户名和密码给服务器端却一直得不到回复消息。
CHAP认证的log如下:
I/pppd ( 645): Using interface ppp0
I/pppd ( 645): Connect: ppp0 <--> /dev/ttyS0
D/pppd ( 645): sent [ff03c021010100140206000000000506eccf4c0407020802],
len 24
D/pppd ( 645): sent[LCP ConfReq id=0x1
]
D/pppd ( 645): sent [ff03c021010100140206000000000506eccf4c0407020802],
len 24
D/pppd ( 645): sent[LCP ConfReq id=0x1
]
D/pppd ( 645): rcvd [ff03c0210101001d010405ea0206000000000305c22305050605
f2d10207020802], len 33
D/pppd ( 645): rcvd[LCP ConfReq id=0x1
]
D/pppd ( 645): sent [ff03c0210201001d010405ea0206000000000305c22305050605
f2d10207020802], len 33
D/pppd ( 645): sent[LCP ConfAck id=0x1
]
D/pppd ( 645): rcvd [ff03c021020100140206000000000506eccf4c0407020802],
len 24
D/pppd ( 645): rcvd[LCP ConfAck id=0x1
]
D/pppd ( 645): rcvd [ff03c021020100140206000000000506eccf4c0407020802],
len 24
D/pppd ( 645): rcvd[LCP ConfAck id=0x1
]
D/pppd ( 645): rcvd [ff03c2230102001f10fc77331b8a7c4dbe63469a0572dfc3a042
4a2d5044534e2d3234], len 35
D/pppd ( 645): rcvd[CHAP Challenge id=0x2 ,
name = "BJ-PDSN-24"]
D/pppd ( 645): sent [ff03c2230202001910a1fe8db63e0d2de93176bb201bbdc37f43415244],
len 29
D/pppd ( 645): sent[CHAP Response id=0x2 ,
name = "CARD"]
D/pppd ( 645): rcvd [ff03c22304020004], len 8
D/pppd ( 645): rcvd[CHAP Failure id=0x2 ""]
I/pppd ( 645): CHAP authentication failed
D/pppd ( 645): sent [ff03c0210502002c4661696c656420746f2061757468656e746963617
465206f757273656c76657320746f2070656572], len 48
D/pppd ( 645): sent[LCP TermReq id=0x2 "Failed to authenticate ourselves to peer"]
D/pppd ( 645): rcvd [ff03c02105030004], len 8
D/pppd ( 645): rcvd[LCP TermReq id=0x3]
D/pppd ( 645): sent [ff03c02106030004], len 8
D/pppd ( 645): sent[LCP TermAck id=0x3]
D/pppd ( 645): sent [ff03c0210503002c4661696c656420746f2061757468656e746963617465
206f757273656c76657320746f2070656572], len 48
D/pppd ( 645): sent[LCP TermReq id=0x3 "Failed to authenticate ourselves to peer"]
I/pppd ( 645): Connection terminated.
I/pppd ( 645): Modem hangup
I/pppd ( 681): pppd exited with 16
PAP认证的log:
D/pppd ( 596): using channel 1
I/pppd ( 596): Using interface ppp0
I/pppd ( 596): Connect: ppp0 <--> /dev/ttyS0
W/pppd ( 596): Warning - secret file /etc/ppp/pap-secrets has world and/or
group access
D/pppd ( 596): sent [ff03c021010100140206000000000506231d05b407020802], len 24
D/pppd ( 596): sent[LCP ConfReq id=0x1
]
D/pppd ( 596): sent [ff03c021010100140206000000000506231d05b407020802], len 24
D/pppd ( 596): sent[LCP ConfReq id=0x1
]
D/pppd ( 596): rcvd [ff03c0210101001d010405ea0206000000000305c223050506d06ef94a
07020802], len 33
D/pppd ( 596): rcvd[LCP ConfReq id=0x1
]
D/pppd ( 596): sent [ff03c021030100080304c023], len 12
D/pppd ( 596): sent[LCP ConfNak id=0x1 ]
D/pppd ( 596): rcvd [ff03c021020100140206000000000506231d05b407020802], len 24
D/pppd ( 596): rcvd[LCP ConfAck id=0x1
]
D/pppd ( 596): rcvd [ff03c021020100140206000000000506231d05b407020802], len 24
D/pppd ( 596): rcvd[LCP ConfAck id=0x1
]
D/pppd ( 596): rcvd [ff03c0210102001c010405ea0206000000000304c0230506d06ef9
4a07020802], len 32
D/pppd ( 596): rcvd[LCP ConfReq id=0x2
]
D/pppd ( 596): sent [ff03c0210202001c010405ea0206000000000304c0230506d06ef
94a07020802], len 32
D/pppd ( 596): sent[LCP ConfAck id=0x2
]
W/pppd ( 596): Warning - secret file /etc/ppp/pap-secrets has world and/or
group access
D/pppd ( 596): sent [ff03c0230101000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x1 user="card" password=]
D/pppd ( 596): sent [ff03c0230102000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x2 user="card" password=]
D/pppd ( 596): sent [ff03c0230103000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x3 user="card" password=]
D/pppd ( 596): sent [ff03c0230104000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x4 user="card" password=]
D/pppd ( 596): sent [ff03c0230105000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x5 user="card" password=]
D/pppd ( 596): sent [ff03c0230106000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x6 user="card" password=]
D/pppd ( 596): sent [ff03c0230107000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x7 user="card" password=]
D/pppd ( 596): sent [ff03c0230108000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x8 user="card" password=]
D/pppd ( 596): sent [ff03c0230109000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0x9 user="card" password=]
D/pppd ( 596): sent [ff03c023010a000e04636172640463617264], len 18
D/pppd ( 596): sent[PAP AuthReq id=0xa user="card" password=]
E/pppd ( 596): No response to PAP authenticate-requests
D/pppd ( 596): sent [ff03c0210502002c4661696c656420746f2061757468656e746
963617465206f757273656c76657320746f2070656572], len 48
D/pppd ( 596): sent[LCP TermReq id=0x2 "Failed to authenticate ourselves to peer"]
D/pppd ( 596): rcvd [ff03c02106020004], len 8
D/pppd ( 596): rcvd[LCP TermAck id=0x2]
I/pppd ( 596): Connection terminated.
I/pppd ( 675): pppd exited with 19
|
|