NPS reason code lookup
Paste an event 6273 or 6274 from the Security log of a Network Policy Server, as Event Viewer copies it or as XML, or type a reason code such as 16, 48, 65 or 66. The page says why NPS denied or discarded the request, and picks out the user, the client, the policies and the authentication type from the event. It reads the text in your browser.
The events
NPS logs these events in the Security log when the audit of Network Policy Server is turned on. Microsoft's troubleshooting guide for NPS starts here: most failed authentications log 6273 or 6274, and the reason code says why. Both events also give the reason in words. The guide turns the audit on with this command:
auditpol /set /subcategory:"Network Policy Server" /success:enable /failure:enable
| Event | Title | What it means |
|---|---|---|
| 6272 | Network Policy Server granted access to a user. | The request was accepted. |
| 6273 | Network Policy Server denied access to a user. | The request was rejected. The Reason Code says why. |
| 6274 | Network Policy Server discarded the request for a user. | NPS discarded the request instead of accepting or rejecting it. The Reason Code says why. |
Reason codes
The reason codes Microsoft documents for NPS. There are gaps in the numbers on purpose. Select a code to read it above.
| Code | What it means | What to check |
|---|---|---|
| 0 | NPS authenticated and authorized the request. | |
| 1 | The request failed because of an error inside NPS. | |
| 2 | NPS does not have the access rights it needs to process the request. | |
| 3 | The RADIUS Access-Request from the network access server (the switch, access point or VPN server) was malformed. | |
| 4 | NPS could not reach a global catalog of Active Directory, so it could not authenticate or authorize the request. | |
| 5 | NPS could not reach a domain controller of the user's domain. | |
| 6 | The NPS server could not process the request. Microsoft lists low memory, a missing domain controller name and failures of the account databases as causes. | |
| 7 | The domain in the RADIUS User-Name does not exist. | Check the domain part of the user name the client sends. |
| 8 | The account in the RADIUS User-Name does not exist. | Check the user name the client sends, and which domain it is looked up in. |
| 9 | An IAS extension DLL installed on the NPS server discarded the request. | |
| 10 | An IAS extension DLL installed on the NPS server failed. | |
| 16 | Authentication failed: the user name does not match an account, or the password is wrong. | |
| 17 | The user tried to change the password, and the change failed. | |
| 18 | NPS does not support the authentication method the client used for this connection. | |
| 19 | The client used CHAP, which needs the password stored with reversible encryption, and that is not turned on. | |
| 20 | The client tried LAN Manager authentication, which NPS does not support. | |
| 21 | An IAS extension DLL installed on the NPS server rejected the request. | |
| 22 | NPS and the client could not agree on an EAP type. | Compare the EAP types the network policy allows with the one the client is set to use, such as PEAP or EAP-TLS. |
| 23 | An error occurred while NPS used EAP. | Microsoft points to the EAP log files for the details. |
| 32 | The NPS server is in a workgroup and has no domain accounts, but the request names a domain user. | |
| 33 | The user must change the password before connecting. | |
| 34 | The account in the request is disabled. | |
| 35 | The account in the request has expired. | |
| 36 | The account is locked out after more failed attempts than the account lockout threshold allows. It must be unlocked. | |
| 37 | The logon hours of the account in Active Directory do not allow access at this time. | |
| 38 | A restriction or requirement of the account was not met, such as a blank password where one is not allowed. | Change or remove the restriction, or tell the user what it requires. |
| 48 | The request did not match any network policy, so NPS denied it. | Check the conditions and the order of the network policies. |
| 49 | The request did not match any connection request policy, so NPS denied it. | Check the conditions of the connection request policies. |
| 64 | Remote access account lockout locked the account after too many failed attempts. | Microsoft's fix: on the NPS server, delete the entry for the user under HKLM\SYSTEM\CurrentControlSet\Services\RemoteAccess\Parameters\AccountLockout. |
| 65 | The Network Access Permission on the Dial-in tab of the account is set to Deny access. | Set it to Allow access, or to Control access through NPS Network Policy. |
| 66 | The client used an authentication method that the matching network policy does not allow, or tried Guest access, which is not turned on. | Make the client use a method the policy allows, or allow its method in the policy. |
| 67 | The Calling-Station-ID in the request does not match the Verify Caller ID setting on the Dial-in tab of the account. | |
| 68 | The day and time restrictions of the matching network policy do not allow access now. | Change the day and time restrictions in the constraints of the policy. |
| 69 | The station identifier in the request does not match the Calling-Station-ID constraint of the matching network policy. | |
| 70 | The way the client connected does not match the NAS Port Type constraint of the matching network policy. | |
| 72 | The password has expired or is about to expire, and the authentication methods of the policy do not let the user change it. | Turn on User can change password after it has expired in the authentication methods of the policy. |
| 73 | The certificate the client sent does not have Client Authentication (1.3.6.1.5.5.7.3.2) in its application policies or enhanced key usage. | Add Client Authentication to the certificate template, revoke the certificate and enroll a new one. |
| 80 | NPS could not write accounting data to its log file or SQL Server database. | |
| 96 | The EAP session with the client timed out before the authentication finished. | |
| 97 | The request carried a RADIUS message that does not belong in the authentication exchange, so NPS did not process it. | |
| 112 | The remote RADIUS server this NPS proxy forwarded the request to rejected it. | Read the event log of that remote RADIUS server for its reason. |
| 113 | The proxy tried to forward the request to a remote RADIUS server group that does not exist. | Set the connection request policy to forward to a remote RADIUS server group that exists. |
| 115 | The proxy did not forward the message, because it was neither an accounting request nor a connection request. | |
| 116 | The proxy could not open a socket, or got socket errors while it sent the request to the remote server. | |
| 117 | The remote RADIUS server did not answer in time. | Check that the remote RADIUS server is running and can be reached from this server. |
| 118 | The proxy received a RADIUS message it could not read, or a request with extra or invalid User-Name attributes. | |
| 256 | The certificate of the user or computer has been revoked. | |
| 257 | A missing DLL or exported function keeps NPS from checking the certificate revocation list. | |
| 258 | NPS could not get to the certificate revocation list to check the certificate. | |
| 259 | The certification authority that keeps the revocation list is not available, so NPS cannot check the certificate. | |
| 260 | The EAP message was changed on the way: the MD5 hash of the RADIUS message does not match, or it was changed at the Schannel level. | |
| 261 | NPS could not reach Active Directory or the local accounts database, so it denied the connection. | |
| 262 | NPS discarded the RADIUS message, because it was incomplete and its signature could not be verified. | |
| 263 | NPS did not receive complete credentials from the user or computer. | |
| 264 | The clocks of the NPS server and of the client are not in sync. | |
| 265 | The client certificate chains to an enterprise root certification authority that the NPS server does not trust. | Check that the NPS server trusts the root certification authority of the client certificate. |
| 266 | NPS received an unexpected or badly formatted message and discarded it. | |
| 267 | The client certificate lacks the Client Authentication purpose in its application policies or enhanced key usage. | |
| 268 | The client certificate has expired. | |
| 269 | The NPS server and the client have no algorithm in common, so they cannot talk to each other. | |
| 270 | The matching network policy requires a smart card, and the user signed in with other credentials. | |
| 271 | NPS was stopping or restarting when the request arrived, so it did not process it. | |
| 272 | The client certificate maps to more than one account. | |
| 273 | Windows trust verification did not recognize the trust provider on this computer. | |
| 274 | The trust provider does not support the requested action. | |
| 275 | The trust provider does not support the form of the subject. | |
| 276 | The binary that calls EAP could not be verified and is not trusted. | |
| 277 | The binary that calls EAP is not signed, or the certificate of its signer cannot be found. | |
| 278 | The client certificate has expired. | |
| 279 | The validity periods of the certificates in the chain do not match. | |
| 280 | The certificate is not valid and was not issued by a valid certification authority. | |
| 281 | The chain is longer than a path length constraint in it allows. | |
| 282 | The certificate has a critical extension that NPS does not recognize. | |
| 283 | The certificate lacks the Client Authentication purpose in its application policies, so it cannot be used to authenticate. | |
| 284 | The issuer of the certificate and the parent certificate in the chain do not match. | |
| 285 | NPS cannot find the certificate, or the certificate is malformed and lacks information NPS needs. | |
| 286 | The certificate was issued by a certification authority that the NPS server does not trust. | |
| 287 | The certificate does not chain to an enterprise root certification authority that NPS trusts. | |
| 288 | Authentication failed because of a trust failure that is not specified. | |
| 289 | The certificate has been revoked. | |
| 290 | A test certificate is in use, and local or domain policy does not trust the test root certification authority. | |
| 291 | NPS cannot get to the certificate revocation list to check whether the certificate is revoked. | |
| 292 | The User-Name in the request does not match the common name (CN) of the certificate. | |
| 293 | The certificate lacks the Client Authentication purpose in its application policies or enhanced key usage. | |
| 294 | An administrator marked the certificate as untrusted. | |
| 295 | The certificate was issued by a certification authority that the NPS server does not trust. | |
| 296 | The certificate lacks the Client Authentication purpose in its application policies or enhanced key usage. | |
| 297 | The certificate does not have a valid name. | |
| 298 | The certificate has no valid user principal name (UPN), or the User-Name does not match it. | |
| 299 | Internal components or protocols passed information in the wrong order while the message was verified. | |
| 300 | The certificate is malformed, and EAP cannot find the credential information in it. | |
| 301 | The client sent an invalid cryptobinding TLV, so NPS ended the authentication. This can be a sign of a man-in-the-middle attack. | |
| 302 | NPS did not receive the cryptobinding TLV it requires from the client, so it ended the authentication. |
Sources
- Reason codes: Microsoft's NPS Reason Codes pages, 0 through 37, 38 through 257, 258 through 282 and 283 through 303. The meanings are written here in plain words; the fixes in the third column are Microsoft's where its page gives one.
- The events and their fields: Microsoft's pages on NPS authentication status and on auditing Network Policy Server, and its troubleshooting guide for NPS.
More Network tools
-
CIDR subnet calculator
Network, broadcast, host range, subnet mask and wildcard mask for IPv4 and IPv6 prefixes.
-
IP range to CIDR converter
Turn a range such as 10.0.0.5-10.0.0.70 into CIDR blocks, merge a list of blocks, and check whether an address is in it.
-
IP address type checker
See whether an address is private, CGNAT, link-local, loopback, documentation, multicast or public, with its RFC.
-
IPv6 expander, compressor and reverse name
Write an IPv6 address in full or in its shortest form, get its ip6.arpa name, or build one from a MAC address.
-
MAC address format converter
Convert MAC addresses between colons, dashes, Cisco's dotted form and plain hex, and read the multicast and local bits.
-
MTU and MSS calculator
Work out the MTU and TCP MSS inside PPPoE, GRE, VXLAN, WireGuard and IPsec, with ping commands that test them.
-
Port number lookup
Look up a port such as 445 or 5985, or a service name, in IANA's registry, with what Windows and Active Directory use it for.
-
DHCP option encoder and decoder
Build or read the hex of option 121 and 249 static routes, option 119 search lists and option 43 for Cisco and UniFi.
-
Wi-Fi reason and status codes
Look up 802.11 deauthentication and disassociation reason codes and association status codes.
-
DSCP and ToS converter
Convert DSCP, ToS and CoS values, with the Wi-Fi priorities of RFC 8325 and the Teams QoS markings.