Authenticate-Nak
4.4. Authenticate-Nak
Description
If the Peer-ID/Password pair received in a Authenticate is not recognizable or acceptable, then a PAP implementation should transmit a PAP packet with the Code field set to 3 (Authenticate-Nak), the Identifier field copied from the received Authenticate, and the Message field optionally filled with an ASCII message.
A summary of the Authenticate-Nak 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
3 for Authenticate-Nak.
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-Nak.
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.