Skip to main content

Authenticate

4.2. Authenticate​

Description

The Authenticate packet is used to begin the Password Authentication Protocol. An implementation having sent a LCP Configure-Ack packet with an Authentication-Type Configuration Option further specifying the Password Authentication Protocol must send an Authenticate packet during the Authentication phase. An implementation receiving a Configure-Ack with said Configuration Option should expect the remote end to send an Authenticate packet during this phase. An Authenticate packet is sent with the Code field set to 1 (Authenticate) and the Peer-ID and Password fields filled as desired. Upon reception of an Authenticate, some type of Authenticate reply MUST be transmitted.

A summary of the Authenticate 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 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Peer-ID Length| Peer-Id ...
+-+-+-+-+-+-+-+-+-+-+-+-+
| Passwd-Length | Password ...
+-+-+-+-+-+-+-+-+-+-+-+-+-+

Code

1 for Authenticate.

Identifier

The Identifier field is one octet and aids in matching requests and replies. The Identifier field should be changed each time a Authenticate is transmitted which is different from the preceding request.

Peer-ID-Length

The Peer-ID-Length field is one octet and indicates the length of the Peer-ID field

Peer-ID

The Peer-ID field is zero or more octets and indicates the name of the peer to be authenticated.

Passwd-Length

The Passwd-Length field is one octet and indicates the length of the Password field

Password

The Password field is zero or more octets and indicates the password to be used for authentication.