Skip to main content

Authenticate-Ack

4.3. Authenticate-Ack​

Description

If the Peer-ID/Password pair received in an Authenticate is both recognizable and acceptable, then a PAP implementation should transmit a PAP packet with the Code field set to 2 (Authenticate-Ack), the Identifier field copied from the received Authenticate, and the Message field optionally filled with an ASCII message.

A summary of the Authenticate-Ack packet format is shown below. The fields are transmitted from left to right.

 0                   1                   2                   3
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 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Code | Identifier | Length |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Msg-Length | Message ...
+-+-+-+-+-+-+-+-+-+-+-+-+-

Code

2 for Authenticate-Ack.

Identifier

The Identifier field is one octet and aids in matching requests and replies. The Identifier field MUST be copied from the Identifier field of the Authenticate which caused this Authenticate-Ack.

Msg-Length

The Msg-Length field is one octet and indicates the length of the Message field

Message

The Message field is zero or more octets and indicates an ASCII message.