Internet-Draft TEAP Protected User Notification November 2026
Chen, et al. Expires 27 May 2027 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-chen-emu-teap-notification-action-00
Published:
Intended Status:
Experimental
Expires:
Authors:
J. Chen
Peking University
Z. Fu
Peking University
H. Ma
Peking University
G. Wang
Huawei

Protected User Notification Extension for Tunnel Extensible Authentication Protocol (TEAP)

Abstract

When IEEE 802.1X network access is denied or restricted, clients usually show only a generic message such as "Authentication Failed", even when the authentication server knows the specific reason. Existing mechanisms either do not reach the client (RADIUS Reply-Message), are not protected (EAP Notification), or are not designed for presentation to users (the TEAP Error TLV and inner method error messages).

This document defines an optional extension to Tunnel Extensible Authentication Protocol (TEAP) Version 1 (RFC 9930) that allows the EAP server to send a notification to the user inside the TEAP TLS tunnel. The peer advertises the reason codes it supports and the user's preferred languages in a Notification Capabilities TLV. The server sends a reason code, a recommended action, and optional text and remediation URI in a User-Notification TLV. The peer can acknowledge it with a Notification-Acknowledgement TLV. The extension only provides information and does not change authentication results, authorization decisions, or key derivation.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 27 May 2027.

▲

Table of Contents

1. Introduction

IEEE 802.1X [IEEE802.1X] is widely used for access control in enterprise and campus networks [RFC3580]. The client (EAP peer) authenticates to a backend EAP server through an authenticator such as an Ethernet switch or a wireless access point. Between the authenticator and the server, EAP is carried in RADIUS [RFC2865] [RFC3579]. When access is denied or restricted, most clients show only a generic message such as "Authentication Failed". The server, however, often knows the actual reason: the device has not been registered, the password has expired, the attempt is outside the permitted access hours, the device has been placed in a remediation network, or a backend service is unavailable.

Several existing mechanisms carry error information, but none of them is suitable for delivering it to the user:

TEAP Version 1 [RFC9930] already provides a suitable channel: the TLVs exchanged in Phase 2 are carried inside a TLS tunnel, and the peer keeps track of whether the server has been authenticated. This document defines three optional TLVs that use this channel:

These TLVs are informational. They do not affect authentication results, authorization decisions, or key derivation (Section 3.3).

1.1. Experimental Status

This document is Experimental. Its purpose is to gain implementation and deployment experience before a Standards Track version is considered. Implementers and operators are encouraged to report their experience to the EMU Working Group, in particular on the following questions:

  • whether the extension can be deployed without disrupting TEAP sessions with peers or servers that do not implement it;
  • whether the initial reason codes and recommended actions cover common enterprise and campus deployments, and whether the Reason Code registry stays consistent with the TEAP Error-Code registry in practice (Section 3.5.1);
  • whether servers can choose suitable text using the language preferences advertised by peers;
  • whether showing server-provided reasons and remediation links reduces helpdesk load without creating new phishing or information disclosure risks.

2. Conventions and Terminology

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

Peer:
The EAP peer, usually the IEEE 802.1X supplicant in the client operating system. It receives notifications and presents them to the user.
Server:
The TEAP server. It authenticates the peer, makes the authorization decision, and sends notifications. In this document, the NAS is never referred to as the server.
Tier 1, Tier 2, Tier 3:
The three levels of encapsulation in an IEEE 802.1X / TEAP exchange (Section 3.1). Tier 1 (access transport) is EAPOL and RADIUS, terminated at the NAS. Tier 2 (EAP transport) is the unencrypted EAP conversation between the peer and the server. Tier 3 (TLS tunnel) carries the TEAP Phase 2 TLVs inside the TLS tunnel.
Authenticated Server:
A server that the peer considers authenticated according to [RFC9930], Section 3.11, for example by validating its certificate as described in [RFC9930], Section 3.4.
Protected Termination:
The Crypto-Binding TLV and Result TLV exchange at the end of Phase 2 ([RFC9930], Section 3.6.6), followed by the EAP-Success or EAP-Failure.
Restricted Access:
The peer's credentials have been accepted, but network policy limits the peer to an isolated network, for example one that only provides access to an onboarding portal or a remediation server.

3. Protocol Overview

3.1. Three-Tier Encapsulation Model

An IEEE 802.1X / TEAP exchange involves three levels of encapsulation, summarized in Table 1. The word "tier" is used to avoid confusion with the layers of the OSI reference model.

Table 1: Three-Tier Encapsulation Model
Tier Endpoints Content NAS Role
1: Access transport (EAPOL + RADIUS) Peer <--> NAS, NAS <--> AAA server (hop-by-hop) EAP packets; RADIUS attributes such as VLAN, ACL, and Reply-Message Terminates this tier and enforces network policy
2: EAP transport (EAP-TEAP) Peer <--> TEAP server (end-to-end) EAP method negotiation, TLS handshake, EAP-Success / EAP-Failure; also EAP Notification, which is not protected Sees EAP headers; relays packets as a pass-through authenticator
3: TLS tunnel (TEAP Phase 2 TLVs) Peer <--> TEAP server (end-to-end, encrypted) Inner method payloads, Crypto-Binding, Result, and the TLVs defined in this document Sees only TLS ciphertext

The NAS is a pass-through authenticator ([RFC3748], Section 2.3). It relays EAP packets and forwards the server's EAP-Success or EAP-Failure after it receives a RADIUS Access-Accept or Access-Reject, but it does not evaluate credentials. Tiers 2 and 3 have the same endpoints, but only Tier 3 is protected.

The TLVs defined in this document are Tier 3 TLVs and are not tied to any inner method. The server can therefore send a notification after the inner methods have finished, or when no inner method is used. In Tiers 1 and 2, the notifications appear only as TLS ciphertext, so a NAS or RADIUS proxy cannot read or modify them.

3.2. Interaction Flow

The following figure shows a typical notification exchange in Tier 3 and the corresponding events in Tiers 2 and 1:


 [Tier 3: TLS Tunnel -- protected, end-to-end]

  Peer                                             TEAP Server
   |                                                     |
   |<== TLS handshake (Phase 1), server authenticated ==>|
   |                                                     |
   |--- (1) Notification Capabilities TLV -------------->|
   |        (with other TLVs, if any)                    |
   |                                                     |
   |<-- Phase 2 exchanges (inner methods), if any ------>|
   |                                                     |
   |<-- (2) User-Notification TLV -----------------------|
   |        + Result TLV (+ Crypto-Binding TLV)          |
   |                                                     |
   |--- (3) Notification-Acknowledgement TLV ----------->|
   |        (only if Ack-Required is set)                |
   |        + Result TLV (+ Crypto-Binding TLV)          |

 =============================================================

 [Tiers 2 and 1: EAP Transport and Access Transport]

  Peer              NAS (Switch / AP)               AAA Server
   |                        |                            |
   |<=== EAPOL ============>|<=== RADIUS/EAP ===========>|
   |   (Tier 3 ciphertext relayed transparently by NAS)  |
   |                        |                            |
   |                        |<-- Access-Accept/Reject ---|
   |                        |    (VLAN / ACL policy)     |
   |<-- EAP-Success/Failure-|                            |
   |                        |                            |
   |   (NAS enforces authorization, isolation, or drop)  |

In steps (2) and (3), the Crypto-Binding TLV is included whenever [RFC9930] requires it, that is, in a successful protected termination. The following rules apply:

  1. The TLVs defined in this document MUST only be sent inside the TLS tunnel established in Phase 1, as TLS application data following the sender's TLS Finished message.
  2. The server MUST NOT send a User-Notification TLV unless it has received a Notification Capabilities TLV from the peer in the same session. The server MUST NOT send more than one User-Notification TLV in a session.
  3. [RFC9930], Section 3.2 allows the server to send its first Phase 2 payload together with its TLS Finished message. A server that supports this extension and may send a notification SHOULD NOT include its final Result TLV in that payload. It SHOULD instead wait for the peer's first Phase 2 message, which normally carries the Notification Capabilities TLV if the peer supports this extension (Section 5). With TLS 1.3 [RFC9846] and with abbreviated TLS 1.2 handshakes, this adds no round trip, since the server has to wait for the peer's Finished message anyway. With a full TLS 1.2 handshake, it adds at most one round trip.
  4. The server SHOULD send the User-Notification TLV in the same message as its final Result TLV. The notification exchange then becomes part of the protected termination and adds no round trips. The server MUST NOT send a User-Notification TLV after that message.
  5. If the server sends the User-Notification TLV in an earlier message, that message MUST also contain at least one TLV defined in [RFC9930] that requires a response, such as an EAP-Payload TLV. The peer's response to that message is then defined by [RFC9930].
  6. EAP is a lock-step protocol, so every request from the server gets exactly one response from the peer. The acknowledgement is carried in that response (Section 7), and no separate acknowledgement timer is needed.

3.3. Separation from the Authentication Outcome

The following rules keep notifications separate from the authentication outcome:

  • The contents of a User-Notification TLV are only used for presentation to the user and for local diagnostics. They MUST NOT be used as input to credential validation, authorization decisions, key derivation, generation of RADIUS attributes, or network admission enforcement.
  • If a notification is missing, discarded, malformed, or not acknowledged, this MUST NOT turn a successful outcome (a successful Result TLV or EAP-Success) into a failure, and it MUST NOT turn a failed outcome into a success. In particular, the server MUST NOT fail an authentication because an acknowledgement is missing or reports Rejected, Unsupported-Version, or Malformed.
  • The peer MUST NOT conclude that network access has been granted because it received a notification. Access is determined only by the final EAP result and the policy enforced by the access network.

3.4. Scope

This extension applies only to TEAP Version 1 [RFC9930]. It does not apply to PEAP [MS-PEAP], EAP-TTLS [RFC5281], EAP-FAST [RFC4851], or EAP-TLS [RFC5216]. It is intended for three situations:

  1. Access denied. Either credential verification fails, or the credentials are accepted but policy denies access. The session ends with a failure Result TLV and EAP-Failure. If credential verification failed, only a few reason codes can be used (Section 6.1).
  2. Restricted Access. Authentication succeeds and the session ends with EAP-Success, but policy places the peer in a quarantine or remediation network, for example because the device has not been registered or has failed a posture check.
  3. Information only. The access decision is not affected, and the server provides a notice or onboarding guidance.

3.5. Relationship to Existing Mechanisms

3.5.1. TEAP Error TLV

The Error TLV ([RFC9930], Section 4.2.6) and the User-Notification TLV are both carried in the TLS tunnel, but they have different purposes. For the following reasons, this document defines a separate registry for Reason Codes (Section 12.2) instead of reusing the "TEAP Error TLV (value 5) Error Codes" registry:

  • The Error TLV is a mandatory TLV that is processed by the TEAP state machine, and a fatal Error TLV ends the conversation. The User-Notification TLV is addressed to the user interface and does not affect the state machine (Section 3.3). Registering states such as "Device-Not-Registered" as Error-Codes would give them a meaning for the state machine.
  • Many Error-Codes describe protocol or cryptographic conditions, such as 2001 (Tunnel Compromise Error) or 1018 (Challenge algorithm mismatch), that mean nothing to users. Every Reason Code is meant to be shown to users and serves as a key into localized message catalogs. Several admission states covered here (device registration, access hours, posture remediation, and concurrent session limits) have no Error-Code at all.
  • The Error TLV carries only a 32-bit code. The User-Notification TLV also carries a severity, a recommended action, retry guidance, text, a remediation URI, and a correlation token.
  • The Error TLV has no capability indication, so the server cannot know whether the peer will show a given code to the user. Reason Codes are advertised individually in the Notification Capabilities TLV and are restricted before the peer is authenticated (Section 6.1). A small code space used only for user-facing reasons keeps the capability list and these restrictions simple.

This extension does not change how the Error TLV is processed. A server MAY send both an Error TLV and a User-Notification TLV in the same session. In that case, the Reason-Code SHOULD be consistent with the Error-Code as shown in Table 2. The table also serves to keep the two registries aligned; Section 12.2 asks the designated experts to check new Reason Codes against the Error-Code registry. [RFC9930] already recommends against using Error-Code 1031 (User account credentials incorrect), for the same reason as the restrictions in Section 6.1.

Table 2: Reason Codes and Corresponding TEAP Error-Codes
Reason Code Error-Code(s) in RFC 9930
0 Generic (none)
1 Authentication-Failed 1003 Unspecified authentication failure
2 Authorization-Denied 1004 Unspecified authorization failure
3 Account-Expired 1006 User account expired
4 Account-Locked 1007, 1008 User account locked
5 Device-Not-Registered (none)
6 Access-Time-Restricted (none)
7 Infrastructure-Unavailable 1002, 1009 Authentication infrastructure problem / unavailable
8 Remediation-Required (none)
9 Concurrent-Session-Limit (none)
10 Credential-Change-Required 6 User account credentials change required

3.5.2. Captive Portal Signaling

Captive portal identification [RFC8910] and the Captive Portal API [RFC8908] tell a client, after it has joined the network and obtained IP configuration, that it needs to visit a portal. They do not help when access is denied, and they do not say why access is restricted. The User-Notification TLV is sent during authentication, including when access is denied. The two mechanisms can be used together: in the Restricted Access case, the server MAY set the Remediation-URI to the portal URI that the network advertises.

4. General TLV Encoding Rules

The TLVs defined in this document use the TEAP TLV format of [RFC9930], Section 4.2.1, shown below. Multi-octet integer fields MUST be sent in network byte order. In the figures, bit 0 is the most significant bit.


 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|M|R|         TLV Type          |            Length             |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                          Value ...                            |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

All three TLVs are optional. The Mandatory (M) bit MUST be set to 0. The Reserved (R) bit MUST be set to 0 when sending and MUST be ignored when receiving. A receiver that does not recognize the TLV Type ignores the TLV and continues the session ([RFC9930], Section 4.2).

The same section of [RFC9930] says that if all TLVs in a message are optional and none of them is understood by the peer, a Result TLV SHOULD be sent. To avoid triggering this behavior, a TLV defined in this document MUST NOT be the only TLV in a message, with one exception: the peer's first Phase 2 message may contain only the Notification Capabilities TLV. The rule above concerns messages received by the peer; a server that does not understand the TLV continues Phase 2 with its next request, as it does when the peer's first message contains only Identity-Hint TLVs ([RFC9930], Section 4.2.20). The User-Notification TLV and the Notification-Acknowledgement TLV are always sent together with other TLVs (Section 3.2).

If a receiver recognizes the TLV Type but finds an inconsistent length or a malformed structure, it MUST discard the whole TLV, MUST NOT present any of its content, MUST NOT perform any associated action, and MUST NOT use partially parsed data. A malformed TLV MUST NOT cause the TEAP session to fail.

Each TLV starts with a 1-octet Version field. This document defines version 1. A receiver that does not support the Version of a received TLV MUST ignore the TLV. For a User-Notification TLV with Ack-Required set, the peer then reports Unsupported-Version (Section 7). To make this possible, later versions of the User-Notification TLV MUST keep the Version and Flags fields, including the Ack-Required flag, at their current positions. A server MUST NOT send a User-Notification TLV with a Version that the peer did not advertise in its Notification Capabilities TLV. This document does not define how a peer advertises support for more than one version; a future version of this extension is expected to define that.

Until IANA assigns values, this document uses TBD1, TBD2, and TBD3 for the TLV Types of the Notification Capabilities, User-Notification, and Notification-Acknowledgement TLVs. In the meantime, experimental deployments MAY carry these TLVs inside Vendor-Specific TLVs ([RFC9930], Section 4.2.8); interoperability of such deployments is out of scope.

5. Notification Capabilities TLV

The peer sends the Notification Capabilities TLV to tell the server which Reason Codes it can present to the user and which languages the user prefers. The server uses this information to avoid sending codes that the peer cannot display and to choose the language of the Text field.

The peer MUST NOT send more than one Notification Capabilities TLV in a session. It SHOULD send the TLV in its first Phase 2 message, together with any other TLVs it sends at that point, such as Identity-Hint TLVs ([RFC9930], Section 3.6). Where the TLS handshake allows it, as with TLS 1.3 and abbreviated TLS 1.2 handshakes, this can be the message that carries the peer's TLS Finished. If the peer has already received the server's first Phase 2 payload, it includes the TLV in its response. Together with the server behavior in Section 3.2, this lets the server learn the peer's capabilities before it sends its final Result TLV, even when no inner method is run.


 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Version    |  Code-Count   |        Reason-Code 1          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|        Reason-Code 2          |              ...              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Lang-Count   |   Tag-Len 1   |  Language-Tag 1 ...           ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Tag-Len 2   |  Language-Tag 2 ...                           ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Version (1 octet):
See Section 4.
Code-Count (1 octet):
Number of Reason-Code entries, from 0 to 32.
Reason-Code (2 octets each):
Reason Codes (Section 12.2) that the peer can present. The list MUST be in ascending order and MUST NOT contain duplicates. Code 0 (Generic) is always supported, whether it is listed or not; a Code-Count of 0 means that the peer supports only Code 0.
Lang-Count (1 octet):
Number of language entries, from 0 to 4. A value of 0 means that the peer has no preference.
Tag-Len (1 octet) and Language-Tag (Tag-Len octets) in each entry:
A language tag in ASCII, 1 to 35 octets long. Each Language-Tag MUST be well-formed according to [RFC5646]. Entries are listed in decreasing order of preference and normally reflect the language settings of the user interface.

The Length MUST equal 3 + (2 * Code-Count) + Lang-Count + (the total length of all Language-Tags), which gives 3 to 211 octets. The receiver MUST treat the TLV as malformed (Section 4) if the Length does not match, if Code-Count exceeds 32 or Lang-Count exceeds 4, or if any Tag-Len is 0 or greater than 35.

Except for Code 0, the server MUST only send a Reason-Code that appears in the peer's list.

6. User-Notification TLV

The server sends the User-Notification TLV to tell the user why the authentication ended as it did and what to do next. Section 3.2 specifies when it can be sent. The Value consists of an 8-octet fixed part followed by four variable-length fields. The length of the Correlation-ID is given by Corr-Len in the fixed part; each of the other three fields is preceded by its own length field. A length of 0 means that the field is absent.


 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Version    |     Flags     |          Reason-Code          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Rec-Action   |   Corr-Len    |          Retry-After          |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|  Correlation-ID (Corr-Len octets, 0-32)                       ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Lang-Len    |  Language-Tag (Lang-Len octets, 0-35)         ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|   Text-Len    |  Text (Text-Len octets, 0-255)                ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|            URI-Len            | Remediation-URI (0-512)       ~
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

The Length is therefore between 12 and 846 octets. The receiver MUST treat the TLV as malformed (Section 4) if Corr-Len exceeds 32, Lang-Len exceeds 35, URI-Len exceeds 512, exactly one of Text-Len and Lang-Len is zero, or the field lengths do not add up to the Length.

Version (1 octet):
See Section 4.
Flags (1 octet):

Severity (mask 0x03): 0 = Info, 1 = Warning, 2 = Error. The value 3 is reserved and MUST be treated as 0. The peer may use the severity to choose an icon or a color.

Ack-Required (mask 0x04): if set, the server asks for a Notification-Acknowledgement TLV.

Reserved (mask 0xF8): MUST be set to 0 by the sender and MUST be ignored by the receiver.

Reason-Code (2 octets):
The reason, from the registry in Section 12.2. The peer uses it to look up a localized message. Code 0 means that the reason is not classified or not disclosed. If the peer receives a Reason-Code that it did not advertise or does not recognize, it MUST treat it as Code 0.
Rec-Action (1 octet):
What the user should do next, from the registry in Section 12.3: 0 None, 1 Retry Later, 2 Contact Administrator, 3 Register Device, 4 Change Credentials, 5 Open Remediation Webpage. Unrecognized values MUST be treated as 0. The action is separate from the reason because organizations handle the same cause in different ways, for example through a self-service portal or through the helpdesk. Section 8 describes how the peer handles actions 3 to 5.
Corr-Len (1 octet) and Correlation-ID (0 to 32 octets):
A token that the user can give to the helpdesk so that administrators can find the session in the server logs. It MUST consist of printable ASCII characters (0x21-0x7E). It MUST NOT contain usernames, MAC addresses, IP addresses, certificate serial numbers, or other personally identifiable information. It SHOULD be random enough that it cannot be predicted or used to infer internal session counters.
Retry-After (2 octets):
Suggested minimum time in seconds before the user retries. A value of 0 means no suggestion. A non-zero value indicates that the condition may be temporary (see Section 8).
Lang-Len (1 octet) and Language-Tag (0 to 35 octets):
The language of the Text, as a language tag [RFC5646] in ASCII. It MUST be present if Text is present, and MUST be absent otherwise. The server SHOULD choose the language by matching its available texts against the peer's preferred languages in order, for example with the Lookup scheme of [RFC4647]. If nothing matches, or if the peer gave no preference, the server SHOULD send English text tagged "en", following the default language guidance of [RFC2277].
Text-Len (1 octet) and Text (0 to 255 octets):
An optional explanation in UTF-8 [RFC3629]. The peer SHOULD prefer the localized message for the Reason-Code from its own catalog, and show the Text only when it has no such message. The peer MUST check that the Text is valid UTF-8, MUST display it only as plain text, and MUST NOT interpret it as markup or commands. The peer SHOULD use the Language-Tag to display the Text correctly, for example to choose the text direction and font.
URI-Len (2 octets) and Remediation-URI (0 to 512 octets):
A web page where the user can fix the problem. If present, it MUST be an absolute URI [RFC3986] with the "https" scheme [RFC9110], and MUST NOT contain a userinfo component or a fragment. It MUST NOT contain passwords, session tokens, or other credentials. A peer that receives a URI that breaks these rules MUST ignore the URI, and MAY still process the rest of the notification.

6.1. Restrictions Before Peer Authentication

Codes such as Account-Expired or Account-Locked reveal that an account exists and what state it is in. An attacker who has no valid credentials could use them to discover valid usernames. Until the server has authenticated the peer, either in Phase 1 or through a successful inner method, the server MUST only use the following Reason-Codes:

  • 0 (Generic);
  • 1 (Authentication-Failed), which says only that authentication failed;
  • 7 (Infrastructure-Unavailable), which describes the server rather than the account.

In this situation, the Rec-Action, Text, and Remediation-URI MUST NOT reveal anything about the account either. For example, the server cannot recommend Change Credentials (4), because that would indicate that the account exists and that its credentials need to be changed.

7. Notification-Acknowledgement TLV

The peer sends a Notification-Acknowledgement TLV only when it receives a User-Notification TLV with Ack-Required set. The peer MUST include the acknowledgement in its response to the message that carried the notification. If the notification came with the server's final Result TLV, the acknowledgement goes with the peer's Result TLV.

The acknowledgement only says how the peer's protocol implementation handled the notification. It does not mean that the notification was displayed, or that the user read it or followed the advice. Because a session carries at most one notification (Section 3.2), the TLV needs no identifier. Its Length is 2:


 0                   1
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|    Version    |    Status     |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Version (1 octet):
See Section 4.
Status (1 octet):

One of the following values, registered in Section 12.4:

  • 0 (Parsed): the notification was valid and was accepted for display according to local policy.
  • 1 (Rejected): the notification was valid but was not displayed because of local policy or display limits.
  • 2 (Unsupported-Version): the Version of the notification is not supported.
  • 3 (Malformed): the notification failed syntax or length checks.

Unassigned values MUST NOT be sent. A server that receives an unknown value MUST treat it as an acknowledgement with unspecified status.

If the response contains no acknowledgement, the server continues as it otherwise would. If the server has sent a fatal Error TLV, it discards the peer's last message ([RFC9930], Section 3.9.3), so an acknowledgement in that message is not processed. The acknowledgement never changes the outcome (Section 3.3).

8. Retry Behavior and Recommended Actions

Retry-After is a hint for the user interface. It does not allow the peer to reconnect in a loop. The peer MUST NOT keep retrying with the same credentials without user involvement only because it received a non-zero Retry-After. An implementation that retries automatically MUST NOT make more than one automatic attempt with the same credentials for a given notification, and that attempt MUST NOT be made before Retry-After seconds have passed. Any further automatic attempts in later sessions MUST use exponential backoff with a maximum interval of 86400 seconds.

Actions 3 (Register Device), 4 (Change Credentials), and 5 (Open Remediation Webpage) take the user out of the authentication process into another workflow. The peer MUST ask the user for confirmation before it starts any such workflow. Before opening a Remediation-URI, the peer MUST show the URI to the user as part of this confirmation. The peer MUST NOT pass existing passwords, one-time passwords, session tokens, or private keys to the workflow. Re-authentication and credential changes MUST take place only in trusted user interfaces.

9. Backward Compatibility

Implementations that do not support this extension ignore its TLVs, because the M bit is 0, and the rules in Section 4 keep them from being prompted to send a Result TLV. A server sends a notification only to a peer that has advertised support (Section 3.2). A peer that supports this extension but receives no notification completes the normal protected termination of [RFC9930]. Other EAP methods are not affected.

10. Security Considerations

The security considerations of [RFC9930] apply. This section covers additional issues.

A peer MUST NOT display a notification or act on a Remediation-URI unless the server is an Authenticated Server (Section 2). Under [RFC9930], Section 3.11, the server can be authenticated by certificate validation ([RFC9930], Section 3.4), by resuming a session in which it was authenticated, or by an inner method that provides mutual authentication with cryptographic binding. If only an inner method authenticates the server, the peer MUST hold any notification until that method has completed, and MUST discard the notification if the method does not complete. In Server Unauthenticated Provisioning Mode ([RFC9930], Section 3.11.3), the peer MUST NOT display the Text or open the Remediation-URI, even if the inner method later authenticates the server; once the server has been authenticated, the peer can still display its own localized message for the Reason-Code. Peers SHOULD check certificate revocation status where they can, although during authentication the peer usually has no general network access.

To prevent account enumeration, Section 6.1 limits the codes that can be used before the peer is authenticated. Deployments SHOULD also apply rate limiting and audit logging to repeated failed attempts.

Even an authenticated server can be misconfigured or compromised, so the peer MUST treat the Text and the Remediation-URI as untrusted input. Section 6 requires the peer to check their format and length and to display the Text only as plain text. In addition, peers SHOULD remove or neutralize control characters and bidirectional formatting characters that could disguise the content. Before opening a Remediation-URI, the peer asks the user for confirmation (Section 8); it SHOULD also only allow destinations that are on an administrator-configured allowlist or in the domain of the authenticated server identity.

In the Restricted Access case, the isolation policy on the NAS SHOULD follow the principle of least privilege and allow only essential services, such as DHCP and DNS, and the designated remediation services.

The TLS record layer protects against replay: a notification captured in one session cannot be injected into another. Peers MUST associate a notification only with the session in which it was received, and MUST NOT present a stored notification from another session as current.

11. Privacy Considerations

Detailed reason codes can reveal internal security policies, schedules, or organizational structure. Servers SHOULD use generic codes when detailed codes are not needed. The TLS tunnel hides notification contents from passive observers.

Section 6 does not allow personal information in the Correlation-ID or credentials in the Remediation-URI. Operational logs SHOULD remove personal identifiers from diagnostic records. Peer implementations SHOULD let users control how notification history and correlation tokens are kept and displayed.

The language list in the Notification Capabilities TLV reveals the user's language settings to the server and can contribute to fingerprinting. Peers SHOULD advertise only the languages configured for the user interface, and SHOULD NOT advertise more languages than needed.

12. IANA Considerations

This document requests the following actions in the "Tunnel Extensible Authentication Protocol (TEAP) Parameters" registry group: three new values in an existing registry, and three new registries. For each new registry, the registration policy is Specification Required [RFC8126]; each entry contains a value, a name, and a reference, and the Reason Code and Recommended Action registries also contain a short description. The reference for all initial entries is this document.

12.1. TEAP TLV Types

IANA is requested to assign three values in the "TEAP TLV Types" registry:

Table 3: New TEAP TLV Types
Value Description Reference
TBD1 Notification Capabilities TLV This document, Section 5
TBD2 User-Notification TLV This document, Section 6
TBD3 Notification-Acknowledgement TLV This document, Section 7

12.2. TEAP Notification Reason Codes

IANA is requested to create the "TEAP Notification Reason Codes" registry. Values are 16-bit unsigned integers. Code 0 is permanently assigned to "Generic" and MUST NOT be reassigned. The initial contents are:

Table 4: Initial TEAP Notification Reason Codes
Value Name Description
0 Generic Reason not classified or not disclosed
1 Authentication-Failed Credentials failed verification
2 Authorization-Denied Credentials accepted, but access denied by policy
3 Account-Expired Account has expired
4 Account-Locked Account is locked
5 Device-Not-Registered Device must be registered before access is granted
6 Access-Time-Restricted Outside the permitted access hours
7 Infrastructure-Unavailable Authentication infrastructure or a backend service is temporarily unavailable
8 Remediation-Required Device posture must be remediated before full access is granted
9 Concurrent-Session-Limit Maximum number of concurrent sessions reached
10 Credential-Change-Required Credentials must be changed (e.g., initial password reset) before access is granted
11-65535 Unassigned

Guidance for the designated experts: a new Reason Code is appropriate only for a condition that is meaningful to users and suitable for display by clients. The experts SHOULD check whether the condition corresponds to an entry in the "TEAP Error TLV (value 5) Error Codes" registry; if it does, they SHOULD make sure that the descriptions are consistent and that the specification documents the correspondence, as Table 2 does. The experts SHOULD also check that the specification says whether the new code may be used before the peer is authenticated (Section 6.1). If it does not say so, the code MUST NOT be used before the peer is authenticated.

12.3. TEAP Notification Recommended Actions

IANA is requested to create the "TEAP Notification Recommended Actions" registry. Values are 8-bit unsigned integers. The initial contents are:

Table 5: Initial TEAP Notification Recommended Actions
Value Name Description
0 None No specific action
1 Retry Later Retry after the time given in Retry-After
2 Contact Administrator Contact the network administrator or helpdesk
3 Register Device Register the device (requires user confirmation)
4 Change Credentials Change credentials in a trusted interface (requires user confirmation)
5 Open Remediation Webpage Open the Remediation-URI (requires user confirmation)
6-255 Unassigned

12.4. TEAP Notification Acknowledgement Status

IANA is requested to create the "TEAP Notification Acknowledgement Status" registry. Values are 8-bit unsigned integers. The meaning of the initial values is given in Section 7. The initial contents are:

Table 6: Initial Acknowledgement Status Values
Value Name
0 Parsed
1 Rejected
2 Unsupported-Version
3 Malformed
4-255 Unassigned

13. References

13.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC3629]
Yergeau, F., "UTF-8, a transformation format of ISO 10646", STD 63, RFC 3629, DOI 10.17487/RFC3629, , <https://www.rfc-editor.org/info/rfc3629>.
[RFC3986]
Berners-Lee, T., Fielding, R., and L. Masinter, "Uniform Resource Identifier (URI): Generic Syntax", STD 66, RFC 3986, DOI 10.17487/RFC3986, , <https://www.rfc-editor.org/info/rfc3986>.
[RFC5646]
Phillips, A., Ed. and M. Davis, Ed., "Tags for Identifying Languages", BCP 47, RFC 5646, DOI 10.17487/RFC5646, , <https://www.rfc-editor.org/info/rfc5646>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC9110]
Fielding, R., Ed., Nottingham, M., Ed., and J. Reschke, Ed., "HTTP Semantics", STD 97, RFC 9110, DOI 10.17487/RFC9110, , <https://www.rfc-editor.org/info/rfc9110>.
[RFC9930]
DeKok, A., Ed., "Tunnel Extensible Authentication Protocol (TEAP) Version 1", RFC 9930, DOI 10.17487/RFC9930, , <https://www.rfc-editor.org/info/rfc9930>.

13.2. Informative References

[IEEE802.1X]
IEEE, "IEEE Standard for Local and Metropolitan Area Networks--Port-Based Network Access Control", IEEE Std 802.1X-2020, .
[MS-PEAP]
Microsoft Corporation, "[MS-PEAP]: Protected Extensible Authentication Protocol (PEAP)", <https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-peap/>.
[RFC2277]
Alvestrand, H., "IETF Policy on Character Sets and Languages", BCP 18, RFC 2277, DOI 10.17487/RFC2277, , <https://www.rfc-editor.org/info/rfc2277>.
[RFC2759]
Zorn, G., "Microsoft PPP CHAP Extensions, Version 2", RFC 2759, DOI 10.17487/RFC2759, , <https://www.rfc-editor.org/info/rfc2759>.
[RFC2865]
Rigney, C., Willens, S., Rubens, A., and W. Simpson, "Remote Authentication Dial In User Service (RADIUS)", RFC 2865, DOI 10.17487/RFC2865, , <https://www.rfc-editor.org/info/rfc2865>.
[RFC3579]
Aboba, B. and P. Calhoun, "RADIUS (Remote Authentication Dial In User Service) Support For Extensible Authentication Protocol (EAP)", RFC 3579, DOI 10.17487/RFC3579, , <https://www.rfc-editor.org/info/rfc3579>.
[RFC3580]
Congdon, P., Aboba, B., Smith, A., Zorn, G., and J. Roese, "IEEE 802.1X Remote Authentication Dial In User Service (RADIUS) Usage Guidelines", RFC 3580, DOI 10.17487/RFC3580, , <https://www.rfc-editor.org/info/rfc3580>.
[RFC3748]
Aboba, B., Blunk, L., Vollbrecht, J., Carlson, J., and H. Levkowetz, Ed., "Extensible Authentication Protocol (EAP)", RFC 3748, DOI 10.17487/RFC3748, , <https://www.rfc-editor.org/info/rfc3748>.
[RFC4647]
Phillips, A., Ed. and M. Davis, Ed., "Matching of Language Tags", BCP 47, RFC 4647, DOI 10.17487/RFC4647, , <https://www.rfc-editor.org/info/rfc4647>.
[RFC4851]
Cam-Winget, N., McGrew, D., Salowey, J., and H. Zhou, "The Flexible Authentication via Secure Tunneling Extensible Authentication Protocol Method (EAP-FAST)", RFC 4851, DOI 10.17487/RFC4851, , <https://www.rfc-editor.org/info/rfc4851>.
[RFC5216]
Simon, D., Aboba, B., and R. Hurst, "The EAP-TLS Authentication Protocol", RFC 5216, DOI 10.17487/RFC5216, , <https://www.rfc-editor.org/info/rfc5216>.
[RFC5281]
Funk, P. and S. Blake-Wilson, "Extensible Authentication Protocol Tunneled Transport Layer Security Authenticated Protocol Version 0 (EAP-TTLSv0)", RFC 5281, DOI 10.17487/RFC5281, , <https://www.rfc-editor.org/info/rfc5281>.
[RFC8126]
Cotton, M., Leiba, B., and T. Narten, "Guidelines for Writing an IANA Considerations Section in RFCs", BCP 26, RFC 8126, DOI 10.17487/RFC8126, , <https://www.rfc-editor.org/info/rfc8126>.
[RFC8908]
Pauly, T., Ed. and D. Thakore, Ed., "Captive Portal API", RFC 8908, DOI 10.17487/RFC8908, , <https://www.rfc-editor.org/info/rfc8908>.
[RFC8910]
Kumari, W. and E. Kline, "Captive-Portal Identification in DHCP and Router Advertisements (RAs)", RFC 8910, DOI 10.17487/RFC8910, , <https://www.rfc-editor.org/info/rfc8910>.
[RFC9846]
Rescorla, E., "The Transport Layer Security (TLS) Protocol Version 1.3", RFC 9846, DOI 10.17487/RFC9846, , <https://www.rfc-editor.org/info/rfc9846>.

Authors' Addresses

Junjun Chen
Peking University
Beijing
China
Zhongnan Fu
Peking University
Beijing
China
Hao Ma
Peking University
Beijing
China
Guilin Wang
Huawei