Workflow Tools Control Yard

Home / Active Directory

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

EventTitleLogged onFields that give the reason
4625An account failed to log onThe computer the logon was tried on: for a logon over the network, the server.Status, Sub Status, Logon Type
4771Kerberos pre-authentication failedDomain controllers.Failure Code, Pre-Authentication Type
4776The computer attempted to validate the credentials for an accountThe 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
4768A Kerberos authentication ticket (TGT) was requestedDomain controllers.Result Code
4769A Kerberos service ticket was requestedDomain 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.

CodeNameWhat it means
0x0STATUS_SUCCESSNo error: the credentials were valid. In 4776 this is a success event.
0xC000005ESTATUS_NO_LOGON_SERVERSNo domain controller could be reached to check the logon.
0xC0000064STATUS_NO_SUCH_USERThe user name does not exist. Many of these in a row can be someone trying names.
0xC000006ASTATUS_WRONG_PASSWORDThe user name exists, but the password is wrong.
0xC000006DSTATUS_LOGON_FAILUREThe 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.
0xC000006ESTATUS_ACCOUNT_RESTRICTIONA restriction on the account stops the logon, for example a blank password where policy forbids one.
0xC000006FSTATUS_INVALID_LOGON_HOURSThe account may not log on at this time of day (logon hours).
0xC0000070STATUS_INVALID_WORKSTATIONThe account may not log on from this computer (its Log On To list).
0xC0000071STATUS_PASSWORD_EXPIREDThe password has expired.
0xC0000072STATUS_ACCOUNT_DISABLEDThe account is disabled.
0xC0000133STATUS_TIME_DIFFERENCE_AT_DCThe clocks of this computer and the domain controller are too far apart.
0xC000015BSTATUS_LOGON_TYPE_NOT_GRANTEDThe 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.
0xC000018CSTATUS_TRUSTED_DOMAIN_FAILUREThe trust between this computer's domain and the account's domain failed.
0xC0000192STATUS_NETLOGON_NOT_STARTEDThe Netlogon service is not running.
0xC0000193STATUS_ACCOUNT_EXPIREDThe account has expired.
0xC0000224STATUS_PASSWORD_MUST_CHANGEUser must change password at next logon is set on the account.
0xC0000234STATUS_ACCOUNT_LOCKED_OUTThe account is locked out.
0xC0000371STATUS_NO_SECRETSThe local account store holds no password data for this account.
0xC0000413STATUS_AUTHENTICATION_FIREWALL_FAILEDThe 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.

TypeNameWhat it is
2InteractiveAt the computer's own keyboard and screen.
3NetworkFrom the network: a shared folder, a printer, most remote management.
4BatchA scheduled task or another batch job running for a user.
5ServiceA service that the Service Control Manager starts under this account.
6ProxyNot supported.
7UnlockUnlocking a locked workstation.
8NetworkCleartextFrom the network, with the password itself given to the server rather than a hash or a ticket, as basic authentication does.
9NewCredentialsA process that uses other credentials for its network connections, as runas /netonly starts one.
10RemoteInteractiveRemote Desktop.
11CachedInteractiveAt the keyboard, with cached domain credentials and no domain controller asked.
12CachedRemoteInteractiveRemote Desktop with cached credentials; Microsoft describes it as RemoteInteractive, used inside Windows for auditing.
13CachedUnlockUnlocking 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.

CodeDecimalNameWhat it means
0x00KDC_ERR_NONENo error: the ticket was issued.
0x11KDC_ERR_NAME_EXPClient's entry in database has expired.
0x22KDC_ERR_SERVICE_EXPServer's entry in database has expired.
0x33KDC_ERR_BAD_PVNORequested protocol version number not supported.
0x44KDC_ERR_C_OLD_MAST_KVNOClient's key encrypted in old master key.
0x55KDC_ERR_S_OLD_MAST_KVNOServer's key encrypted in old master key.
0x66KDC_ERR_C_PRINCIPAL_UNKNOWNThe 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.
0x77KDC_ERR_S_PRINCIPAL_UNKNOWNNo account has the service principal name (SPN) asked for: it is missing or registered on another account.
0x88KDC_ERR_PRINCIPAL_NOT_UNIQUETwo accounts carry the same service principal name.
0x99KDC_ERR_NULL_KEYThe client or server has a null key.
0xA10KDC_ERR_CANNOT_POSTDATETicket not eligible for postdating.
0xB11KDC_ERR_NEVER_VALIDRequested starttime is later than end time.
0xC12KDC_ERR_POLICYA policy refused the request, such as the account's logon hours or workstation restrictions.
0xD13KDC_ERR_BADOPTIONKDC cannot accommodate requested option.
0xE14KDC_ERR_ETYPE_NOSUPPThe client and the domain controller have no encryption type in common, for example an account that only allows RC4 where RC4 is turned off.
0xF15KDC_ERR_SUMTYPE_NOSUPPKDC has no support for checksum type.
0x1016KDC_ERR_PADATA_TYPE_NOSUPPNo 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.
0x1117KDC_ERR_TRTYPE_NOSUPPKDC has no support for transited type.
0x1218KDC_ERR_CLIENT_REVOKEDThe account may not get tickets: it is disabled, expired or locked out, or outside its logon hours.
0x1319KDC_ERR_SERVICE_REVOKEDCredentials for server have been revoked.
0x1420KDC_ERR_TGT_REVOKEDTGT has been revoked.
0x1521KDC_ERR_CLIENT_NOTYETClient not yet valid; try again later.
0x1622KDC_ERR_SERVICE_NOTYETServer not yet valid; try again later.
0x1723KDC_ERR_KEY_EXPIREDThe password has expired.
0x1824KDC_ERR_PREAUTH_FAILEDThe wrong password was given. Event 4768 never shows this code: event 4771 is logged instead.
0x1925KDC_ERR_PREAUTH_REQUIREDPre-authentication is needed. Clients first ask without it and then send it, so this is normal on its own.
0x1A26KDC_ERR_SERVER_NOMATCHRequested server and ticket don't match.
0x1B27KDC_ERR_MUST_USE_USER2USERServer principal valid for user2user only.
0x1C28KDC_ERR_PATH_NOT_ACCEPTEDKDC Policy rejects transited path.
0x1D29KDC_ERR_SVC_UNAVAILABLEA service is not available.
0x1F31KRB_AP_ERR_BAD_INTEGRITYA ticket or message could not be decrypted with the key the receiver has, for example after a password changed on one side only.
0x2032KRB_AP_ERR_TKT_EXPIREDThe ticket has expired; the client gets a new one. Computer accounts log many of these, and they are normal.
0x2133KRB_AP_ERR_TKT_NYVTicket not yet valid.
0x2234KRB_AP_ERR_REPEATRequest is a replay.
0x2335KRB_AP_ERR_NOT_USThe ticket isn't for us.
0x2436KRB_AP_ERR_BADMATCHTicket and authenticator don't match.
0x2537KRB_AP_ERR_SKEWThe clocks of the client and the domain controller differ by more than the allowed time, 5 minutes by default.
0x2638KRB_AP_ERR_BADADDRIncorrect net address.
0x2739KRB_AP_ERR_BADVERSIONProtocol version mismatch.
0x2840KRB_AP_ERR_MSG_TYPEInvalid msg type.
0x2941KRB_AP_ERR_MODIFIEDThe ticket was encrypted with a key the service does not have: a duplicate SPN, or a service account password out of step.
0x2A42KRB_AP_ERR_BADORDERMessage out of order.
0x2C44KRB_AP_ERR_BADKEYVERSpecified version of key is not available.
0x2D45KRB_AP_ERR_NOKEYService key not available.
0x2E46KRB_AP_ERR_MUT_FAILMutual authentication failed.
0x2F47KRB_AP_ERR_BADDIRECTIONIncorrect message direction.
0x3048KRB_AP_ERR_METHODAlternative authentication method required.
0x3149KRB_AP_ERR_BADSEQIncorrect sequence number in message.
0x3250KRB_AP_ERR_INAPP_CKSUMInappropriate type of checksum in message.
0x3351KRB_AP_PATH_NOT_ACCEPTEDPolicy rejects transited path.
0x3452KRB_ERR_RESPONSE_TOO_BIGResponse too big for UDP; retry with TCP.
0x3C60KRB_ERR_GENERICA generic error. The other fields of the event, or the client's error text, carry the detail.
0x3D61KRB_ERR_FIELD_TOOLONGField is too long for this implementation.
0x3E62KDC_ERROR_CLIENT_NOT_TRUSTEDReserved for PKINIT.
0x3F63KDC_ERROR_KDC_NOT_TRUSTEDReserved for PKINIT.
0x4064KDC_ERROR_INVALID_SIGReserved for PKINIT.
0x4165KDC_ERR_KEY_TOO_WEAKReserved for PKINIT.
0x4266KDC_ERR_CERTIFICATE_MISMATCHReserved for PKINIT.
0x4367KRB_AP_ERR_NO_TGTNo TGT available to validate USER-TO-USER.
0x4468KDC_ERR_WRONG_REALMReserved for future use.
0x4569KRB_AP_ERR_USER_TO_USER_REQUIREDTicket must be for USER-TO-USER.
0x4670KDC_ERR_CANT_VERIFY_CERTIFICATEReserved for PKINIT.
0x4771KDC_ERR_INVALID_CERTIFICATEReserved for PKINIT.
0x4872KDC_ERR_REVOKED_CERTIFICATEReserved for PKINIT.
0x4973KDC_ERR_REVOCATION_STATUS_UNKNOWNReserved for PKINIT.
0x4A74KDC_ERR_REVOCATION_STATUS_UNAVAILABLEReserved for PKINIT.
0x4B75KDC_ERR_CLIENT_NAME_MISMATCHReserved for PKINIT.
0x4C76KDC_ERR_KDC_NAME_MISMATCHReserved for PKINIT.

Pre-authentication types

Event 4771 also gives the Pre-Authentication Type the client used.

TypeNameWhat it is
0Logon without pre-authentication: the account has Do not require Kerberos preauthentication set.
2PA-ENC-TIMESTAMPA standard password logon.
11PA-ETYPE-INFOSent by the domain controller to ask for pre-authentication and say which key to use.
15PA-PK-AS-REP_OLDA smart card logon.
16PA-PK-AS-REQA smart card logon: the request to the domain controller.
17PA-PK-AS-REPA smart card logon: the reply.
19PA-ETYPE-INFO2Sent by the domain controller to ask for pre-authentication and say which key to use.
20PA-SVR-REFERRAL-INFOA referral ticket from the domain controller.
138PA-ENCRYPTED-CHALLENGEA logon protected by Kerberos armoring (FAST).

Sources

More Active Directory tools