skip to content

On a WPA2-Enterprise SSID, you disable a departed user's account, yet their laptop stays connected for hours: why, and how do you cut it off?

level: seniorimportance: should knowfreq 26%

answer

  1. revocation checked when EAP runs
  2. keys already installed
  3. cached PMK survives a rejoin
  4. deauthenticate and clear the cache

basics

~20 s

Disabling the account only bites at the next EAP run; the laptop already holds valid keys, and a cached PMK can let it rejoin without EAP. Deauthenticate it, clear the cached PMK, and keep reauthentication timers bounded.

solid answer

~40 s

In Enterprise, revocation acts at the **next authentication**. The connected laptop already holds a PMK from its last EAP run and the PTK installed from it, and the AP keeps forwarding its traffic until the session is reauthenticated or ended. The AP also caches the PMK (in hostapd, for the server's session timeout or 43200 seconds by default), so a quick rejoin can skip EAP entirely, and hostapd only re-runs EAP every `eap_reauth_period` (3600 seconds by default). To cut it off now, deauthenticate the station at the AP (`hostapd_cli deauthenticate <addr>`), flush the cached PMK so the rejoin must authenticate, or have the server send a RADIUS Disconnect message. Personal has no equivalent lever: the only way to withdraw the passphrase is to change it for everyone.

go deeper

for a junior

Remember that Enterprise lets you revoke one user without changing anything for others, unlike a shared passphrase.

for a middle

Explain that the server's decision is only consulted when EAP runs, and that the client keeps its installed keys until then.

for a senior

Diagnose the live-session gap: installed keys, PMK caching and the reauthentication period. Know how to end the session at once and what evidence shows the revocation worked.

for a principal

Set the reauthentication and session-timeout policy and the departure runbook so that revocation is bounded by design, balancing server load and client disruption against exposure.

## Revocation acts at the next authentication In WPA2-Enterprise, disabling an account or revoking a certificate changes what the **authentication server** will accept the **next time** the client runs EAP. It does not reach into an association that already exists. Once a client has passed 802.1X and the four-way handshake, it holds: - a **PMK** taken from that session's EAP Master Session Key, and - the **PTK** and group key the four-way handshake installed from it. The AP keeps forwarding that client's traffic for as long as the association lasts. Nothing in the 802.11 association asks the authentication server again on its own. ## What keeps the old session alive Three things decide how long a revoked user can stay on: 1. **The association itself.** While the laptop stays associated, its keys keep working; the PTK is not tied to the account's current status. 2. **The PMK cache (PMKSA caching).** The AP keeps a PMK security association so a client returning to it can skip a full EAP run. In hostapd, a cache entry lasts for the session timeout the authentication server sent with the acceptance, or **43200 seconds (12 hours)** when none was sent. A laptop that drops and rejoins within that window can reuse the cached PMK without the server being asked. hostapd's `okc=1` (opportunistic key caching) can share that cache across the BSSes one hostapd process runs, widening where it applies. Fast roaming key caches behave similarly and are covered with roaming. 3. **Reauthentication timing.** hostapd re-runs EAP every `eap_reauth_period` seconds, **3600 by default**; `0` disables it. A server-supplied session timeout can bound the session too. Only when EAP runs again does the disabled account fail. ## Cutting the session off now To make revocation immediate, act on the AP side as well as at the server: - **Remove the station.** Deauthenticate the client's MAC address at the AP (in hostapd, `hostapd_cli deauthenticate <addr>`). The client must then authenticate again, and the server refuses it. - **Clear the cache.** Flush or expire the cached PMKSA (hostapd offers `hostapd_cli pmksa_flush`, which clears the whole cache) so that a rejoin cannot skip EAP. - **Use dynamic authorization.** The authentication server can tell the AP to disconnect a session with a RADIUS Disconnect message (hostapd accepts these when `radius_das_port` is set). hostapd then removes that station's cached PMKSA and deauthenticates it in one step, with reason code 2, "previous authentication no longer valid". The message format is covered with RADIUS. - **Keep the timers honest.** A modest reauthentication period and a server-supplied session timeout bound how long any revoked session survives if nobody intervenes. - **For certificates**, revocation only works if the authentication server checks the client certificate's status or maps the certificate to an account it can disable; issuing and revoking certificates is covered with enrolment. ## The Personal-mode comparison The same task on a Personal network shows why the question is asked: | | WPA2-Personal | WPA2-Enterprise | |---|---|---| | Lever to revoke one person | None; change the passphrase | Disable the account or certificate | | Effect on everyone else | All devices must be reconfigured | None | | When revocation bites | When the AP's passphrase changes | At the next EAP run | | Making it immediate | Change the passphrase and reload the AP | Deauthenticate and clear the cached PMK | | Evidence it worked | None per user | Server log shows the refused authentication | A Personal network with per-device PSKs (hostapd's `wpa_psk_file` with one entry per MAC address, reloaded with `hostapd_cli reload_wpa_psk`) can drop one device's entry, but it still has to deauthenticate the station to end the current association, and it identifies a device, not a person. ## What to check in an audit - The reauthentication period and session timeout actually configured, and whether the server sends a session timeout. - Whether the operations runbook for a departure includes disconnecting active sessions, not only disabling the account. - Whether PMK caching and opportunistic key caching are enabled, and what that means for the window above. - That the server log shows the refused authentication after a test revocation.

  • Why not simply set a very short reauthentication period everywhere?
    Each reauthentication is a full EAP exchange with the authentication server, and hostapd's own comment notes that reauthentications may enforce a disconnection. Very short periods add server load and can cause visible drops for voice and video. Most operators choose a moderate period and rely on active disconnection for urgent revocations.
  • Does revoking the user's client certificate end an EAP-TLS session the same way?
    It has the same timing: the revoked certificate fails only when EAP-TLS runs again, and only if the authentication server checks certificate status or maps the certificate to an account it disables. The live association and any cached PMK still need the same deauthentication and cache clearing to end at once.

  • Disabling the account in the directory immediately drops the user's Wi-Fi session.
  • The four-way handshake checks the account's status with the server on every frame.
  • A rejoin within minutes always forces a full EAP authentication.
  • Changing the passphrase is the right way to revoke one user on an Enterprise SSID.
  • Deauthenticating the station alone is enough even when the PMK stays cached.