跳到主要内容

5.3 CHAP-Password

5.3. CHAP-Password

Description (描述)

此 Attribute 指示 PPP Challenge-Handshake Authentication Protocol (CHAP) 用户响应质询时提供的响应值。它仅用于 Access-Request 数据包中。

如果数据包中存在 CHAP-Challenge Attribute (60), 则在其中找到 CHAP 质询值, 否则在 Request Authenticator 字段中找到。

CHAP-Password Attribute 格式的摘要如下所示。字段从左到右传输。

 0                   1                   2
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
| Type | Length | CHAP Ident | String ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

Type

3 表示 CHAP-Password。

Length

19

CHAP Ident

此字段是一个八位字节, 包含来自用户的 CHAP Response 的 CHAP Identifier。

String

String 字段是 16 个八位字节, 包含来自用户的 CHAP Response。