Logon failure decoder
Paste a failed logon event from the Security log, such as 4625, 4771 or 4776, as Event Viewer copies it or as XML, or type one code such as 0xC000006A or 0x18. The page reads the status codes, the Kerberos failure code and the logon type, and says what they mean. It reads the text in your browser.
Which event says what
| Event | Title | Logged on | Fields that give the reason |
|---|---|---|---|
| 4625 | An account failed to log on | The computer the logon was tried on: for a logon over the network, the server. | Status, Sub Status, Logon Type |
| 4771 | Kerberos pre-authentication failed | Domain controllers. | Failure Code, Pre-Authentication Type |
| 4776 | The computer attempted to validate the credentials for an account | The computer that holds the account: a domain controller for a domain account, the computer itself for a local account. It is the NTLM check. | Error Code |
| 4768 | A Kerberos authentication ticket (TGT) was requested | Domain controllers. | Result Code |
| 4769 | A Kerberos service ticket was requested | Domain controllers. | Result Code |
Status, Sub Status and Error Code
Event 4625 gives a Status and a Sub Status, and event 4776 an Error Code. They are NTSTATUS values. In 4625 the Status is often the general 0xC000006D, and the Sub Status says which check failed. For a code not listed here, the page links to the Windows error code lookup.
| Code | Name | What it means |
|---|---|---|
| 0x0 | STATUS_ | No error: the credentials were valid. In 4776 this is a success event. |
| 0xC000005E | STATUS_ | No domain controller could be reached to check the logon. |
| 0xC0000064 | STATUS_ | The user name does not exist. Many of these in a row can be someone trying names. |
| 0xC000006A | STATUS_ | The user name exists, but the password is wrong. |
| 0xC000006D | STATUS_ | The logon failed, for a reason the Sub Status gives: usually a wrong user name or password. In 4776, a LAN Manager authentication level that the two computers do not share also gives this. |
| 0xC000006E | STATUS_ | A restriction on the account stops the logon, for example a blank password where policy forbids one. |
| 0xC000006F | STATUS_ | The account may not log on at this time of day (logon hours). |
| 0xC0000070 | STATUS_ | The account may not log on from this computer (its Log On To list). |
| 0xC0000071 | STATUS_ | The password has expired. |
| 0xC0000072 | STATUS_ | The account is disabled. |
| 0xC0000133 | STATUS_ | The clocks of this computer and the domain controller are too far apart. |
| 0xC000015B | STATUS_ | The account does not have the user right for this kind of logon here, such as Allow log on through Remote Desktop Services or Access this computer from the network. |
| 0xC000018C | STATUS_ | The trust between this computer's domain and the account's domain failed. |
| 0xC0000192 | STATUS_ | The Netlogon service is not running. |
| 0xC0000193 | STATUS_ | The account has expired. |
| 0xC0000224 | STATUS_ | User must change password at next logon is set on the account. |
| 0xC0000234 | STATUS_ | The account is locked out. |
| 0xC0000371 | STATUS_ | The local account store holds no password data for this account. |
| 0xC0000413 | STATUS_ | The account may not authenticate to this computer: an authentication firewall, the selective authentication of a trust, blocks it. |
Logon types
The Logon Type field of events 4624 and 4625 says how the account tried to log on.
| Type | Name | What it is |
|---|---|---|
| 2 | Interactive | At the computer's own keyboard and screen. |
| 3 | Network | From the network: a shared folder, a printer, most remote management. |
| 4 | Batch | A scheduled task or another batch job running for a user. |
| 5 | Service | A service that the Service Control Manager starts under this account. |
| 6 | Proxy | Not supported. |
| 7 | Unlock | Unlocking a locked workstation. |
| 8 | NetworkCleartext | From the network, with the password itself given to the server rather than a hash or a ticket, as basic authentication does. |
| 9 | NewCredentials | A process that uses other credentials for its network connections, as runas /netonly starts one. |
| 10 | RemoteInteractive | Remote Desktop. |
| 11 | CachedInteractive | At the keyboard, with cached domain credentials and no domain controller asked. |
| 12 | CachedRemoteInteractive | Remote Desktop with cached credentials; Microsoft describes it as RemoteInteractive, used inside Windows for auditing. |
| 13 | CachedUnlock | Unlocking a workstation with cached credentials. |
Kerberos failure and result codes
Event 4771 gives a Failure Code, and events 4768 and 4769 a Result Code. They are the error codes of the Kerberos standard, RFC 4120. Event 4768 is not logged for 0x10 and 0x18: event 4771 is logged for them instead.
| Code | Decimal | Name | What it means |
|---|---|---|---|
| 0x0 | 0 | KDC_ | No error: the ticket was issued. |
| 0x1 | 1 | KDC_ | Client's entry in database has expired. |
| 0x2 | 2 | KDC_ | Server's entry in database has expired. |
| 0x3 | 3 | KDC_ | Requested protocol version number not supported. |
| 0x4 | 4 | KDC_ | Client's key encrypted in old master key. |
| 0x5 | 5 | KDC_ | Server's key encrypted in old master key. |
| 0x6 | 6 | KDC_ | The user or computer name is not in the directory: a typing error, a deleted account, or an old name left in a script or service. |
| 0x7 | 7 | KDC_ | No account has the service principal name (SPN) asked for: it is missing or registered on another account. |
| 0x8 | 8 | KDC_ | Two accounts carry the same service principal name. |
| 0x9 | 9 | KDC_ | The client or server has a null key. |
| 0xA | 10 | KDC_ | Ticket not eligible for postdating. |
| 0xB | 11 | KDC_ | Requested starttime is later than end time. |
| 0xC | 12 | KDC_ | A policy refused the request, such as the account's logon hours or workstation restrictions. |
| 0xD | 13 | KDC_ | KDC cannot accommodate requested option. |
| 0xE | 14 | KDC_ | The client and the domain controller have no encryption type in common, for example an account that only allows RC4 where RC4 is turned off. |
| 0xF | 15 | KDC_ | KDC has no support for checksum type. |
| 0x10 | 16 | KDC_ | No pre-authentication of a type the domain controller supports, as in a smart card logon when the domain controller has no suitable certificate. Event 4768 never shows this code: event 4771 is logged instead. |
| 0x11 | 17 | KDC_ | KDC has no support for transited type. |
| 0x12 | 18 | KDC_ | The account may not get tickets: it is disabled, expired or locked out, or outside its logon hours. |
| 0x13 | 19 | KDC_ | Credentials for server have been revoked. |
| 0x14 | 20 | KDC_ | TGT has been revoked. |
| 0x15 | 21 | KDC_ | Client not yet valid; try again later. |
| 0x16 | 22 | KDC_ | Server not yet valid; try again later. |
| 0x17 | 23 | KDC_ | The password has expired. |
| 0x18 | 24 | KDC_ | The wrong password was given. Event 4768 never shows this code: event 4771 is logged instead. |
| 0x19 | 25 | KDC_ | Pre-authentication is needed. Clients first ask without it and then send it, so this is normal on its own. |
| 0x1A | 26 | KDC_ | Requested server and ticket don't match. |
| 0x1B | 27 | KDC_ | Server principal valid for user2user only. |
| 0x1C | 28 | KDC_ | KDC Policy rejects transited path. |
| 0x1D | 29 | KDC_ | A service is not available. |
| 0x1F | 31 | KRB_ | A ticket or message could not be decrypted with the key the receiver has, for example after a password changed on one side only. |
| 0x20 | 32 | KRB_ | The ticket has expired; the client gets a new one. Computer accounts log many of these, and they are normal. |
| 0x21 | 33 | KRB_ | Ticket not yet valid. |
| 0x22 | 34 | KRB_ | Request is a replay. |
| 0x23 | 35 | KRB_ | The ticket isn't for us. |
| 0x24 | 36 | KRB_ | Ticket and authenticator don't match. |
| 0x25 | 37 | KRB_ | The clocks of the client and the domain controller differ by more than the allowed time, 5 minutes by default. |
| 0x26 | 38 | KRB_ | Incorrect net address. |
| 0x27 | 39 | KRB_ | Protocol version mismatch. |
| 0x28 | 40 | KRB_ | Invalid msg type. |
| 0x29 | 41 | KRB_ | The ticket was encrypted with a key the service does not have: a duplicate SPN, or a service account password out of step. |
| 0x2A | 42 | KRB_ | Message out of order. |
| 0x2C | 44 | KRB_ | Specified version of key is not available. |
| 0x2D | 45 | KRB_ | Service key not available. |
| 0x2E | 46 | KRB_ | Mutual authentication failed. |
| 0x2F | 47 | KRB_ | Incorrect message direction. |
| 0x30 | 48 | KRB_ | Alternative authentication method required. |
| 0x31 | 49 | KRB_ | Incorrect sequence number in message. |
| 0x32 | 50 | KRB_ | Inappropriate type of checksum in message. |
| 0x33 | 51 | KRB_ | Policy rejects transited path. |
| 0x34 | 52 | KRB_ | Response too big for UDP; retry with TCP. |
| 0x3C | 60 | KRB_ | A generic error. The other fields of the event, or the client's error text, carry the detail. |
| 0x3D | 61 | KRB_ | Field is too long for this implementation. |
| 0x3E | 62 | KDC_ | Reserved for PKINIT. |
| 0x3F | 63 | KDC_ | Reserved for PKINIT. |
| 0x40 | 64 | KDC_ | Reserved for PKINIT. |
| 0x41 | 65 | KDC_ | Reserved for PKINIT. |
| 0x42 | 66 | KDC_ | Reserved for PKINIT. |
| 0x43 | 67 | KRB_ | No TGT available to validate USER-TO-USER. |
| 0x44 | 68 | KDC_ | Reserved for future use. |
| 0x45 | 69 | KRB_ | Ticket must be for USER-TO-USER. |
| 0x46 | 70 | KDC_ | Reserved for PKINIT. |
| 0x47 | 71 | KDC_ | Reserved for PKINIT. |
| 0x48 | 72 | KDC_ | Reserved for PKINIT. |
| 0x49 | 73 | KDC_ | Reserved for PKINIT. |
| 0x4A | 74 | KDC_ | Reserved for PKINIT. |
| 0x4B | 75 | KDC_ | Reserved for PKINIT. |
| 0x4C | 76 | KDC_ | Reserved for PKINIT. |
Pre-authentication types
Event 4771 also gives the Pre-Authentication Type the client used.
| Type | Name | What it is |
|---|---|---|
| 0 | Logon without pre-authentication: the account has Do not require Kerberos preauthentication set. | |
| 2 | PA-ENC-TIMESTAMP | A standard password logon. |
| 11 | PA-ETYPE-INFO | Sent by the domain controller to ask for pre-authentication and say which key to use. |
| 15 | PA-PK-AS-REP_OLD | A smart card logon. |
| 16 | PA-PK-AS-REQ | A smart card logon: the request to the domain controller. |
| 17 | PA-PK-AS-REP | A smart card logon: the reply. |
| 19 | PA-ETYPE-INFO2 | Sent by the domain controller to ask for pre-authentication and say which key to use. |
| 20 | PA-SVR-REFERRAL-INFO | A referral ticket from the domain controller. |
| 138 | PA-ENCRYPTED-CHALLENGE | A logon protected by Kerberos armoring (FAST). |
Sources
- Microsoft's pages for events 4625, 4768, 4771 and 4776, which list the codes these events show and where each event is logged.
- Status names: ntstatus.h, from Microsoft's windows-rs under the MIT licence. Logon type names: SECURITY_LOGON_TYPE in ntsecapi.h, from the same, and its documentation.
- Kerberos code names: RFC 4120, as Microsoft's page for event 4771 lists them.
More Active Directory tools
-
LDAP error decoder
Read an LDAP error from Active Directory: result code 49 and data 52e, 775, 773 or 532.
-
userAccountControl decoder
Read 512, 514, 66048 or any other userAccountControl value flag by flag, or tick flags to build one.
-
AD rights GUID lookup
Name the GUIDs in an ACL or event 4662: extended rights, property sets, classes and attributes.
-
groupType and sAMAccountType decoder
Turn -2147483646 or 805306368 into a group scope, a group type or an account type.
-
Kerberos encryption types decoder
Decode msDS-SupportedEncryptionTypes and ticket encryption types, and see where RC4 is still allowed.
-
Active Directory timestamp converter
Convert lastLogonTimestamp, pwdLastSet and other 18-digit values to dates and back.
-
SDDL and SID decoder
Read a security descriptor string in plain words and look up well-known SIDs.
-
GUID and SID converter
Turn an objectGUID or objectSid from base64, bytes or an immutableId into its GUID or S-1-5-21 form and back.
-
LDAP filter builder and explainer
Read an LDAP filter in plain words, with the bitwise and nested-group rules, or build one for common searches.