Workflow Tools Control Yard

Home / Active Directory

LDAP error decoder

Paste the error a program shows when it binds to Active Directory over LDAP, or searches it, such as LDAP error code 49 with data 52e, or type one code. The page reads the LDAP result code, the Windows code at the start of the server's message and the data code, and says what each one means. It reads the text in your browser.

The parts of an Active Directory LDAP error

A program shows the LDAP result code first, as a number such as 49 or a name such as Invalid Credentials. The text after it is the error message the domain controller sent with the result. Microsoft's specification defines its first eight characters: a 32-bit number in hexadecimal, a Windows error code. Everything after them is there for debugging. In a failed bind, the number after data is a Windows error code in hexadecimal too, and it is the one that says why the bind failed.

PartWhat it is
error code 49The LDAP result code: 49 is invalidCredentials. See the result codes below.
80090308The Windows error code the message starts with, in hexadecimal: 80090308 is SEC_E_INVALID_TOKEN.
LdapErrThe kind of error: LdapErr, SecErr (security), NameErr (name), SvcErr (service), AtrErr (attribute), RefErr (referral) or UpdErr (update).
DSID-0C09044EAn internal code for the place in the directory service that raised the error. Microsoft support can use it; it does not say what went wrong.
comment: AcceptSecurityContext errorA comment in words. AcceptSecurityContext is the Windows function that checks the credentials of a bind.
data 52eFor a failed bind, a Windows error code in hexadecimal: 52e is 1326, ERROR_LOGON_FAILURE, a wrong name or password.
problem 4003 (INSUFF_ACCESS_RIGHTS)In other errors, a problem number with its name in brackets, which says the same in words.
v4563A version number of the server's code, for debugging.

Data codes of a failed bind

These are the data codes Active Directory gives with result code 49. Each one is a Windows system error code in hexadecimal; the message in the fourth column is Microsoft's text for it. Select a code to read it above.

DataDecimalWindows nameWindows messageWhat it means for the bind
5251317ERROR_NO_SUCH_USERThe specified account does not exist.No account has the name the bind used.
52e1326ERROR_LOGON_FAILUREThe user name or password is incorrect.The name or the password is wrong.
52f1327ERROR_ACCOUNT_RESTRICTIONAccount restrictions are preventing this user from signing in. For example: blank passwords aren't allowed, sign-in times are limited, or a policy restriction has been enforced.A restriction on the account stops the bind, for example a blank password where policy forbids one.
5301328ERROR_INVALID_LOGON_HOURSYour account has time restrictions that keep you from signing in right now.The account may not sign in at this time of day.
5311329ERROR_INVALID_WORKSTATIONThis user isn't allowed to sign in to this computer.The account may only sign in from the computers on its Log On To list (userWorkstations).
5321330ERROR_PASSWORD_EXPIREDThe password for this account has expired.The password has expired. The user changes it, or an administrator resets it.
5331331ERROR_ACCOUNT_DISABLEDThis user can't sign in because this account is currently disabled.The account is disabled.
5681384ERROR_TOO_MANY_CONTEXT_IDSDuring a logon attempt, the user's security context accumulated too many security IDs.The account belongs to so many groups that its sign-in token would hold too many security IDs.
5691385ERROR_LOGON_TYPE_NOT_GRANTEDLogon failure: the user has not been granted the requested logon type at this computer.The account does not have the user right this sign-in needs on the server, such as Access this computer from the network.
7011793ERROR_ACCOUNT_EXPIREDThe user's account has expired.The account has expired (accountExpires is in the past).
7731907ERROR_PASSWORD_MUST_CHANGEThe user's password must be changed before signing in.User must change password at next logon is set on the account (pwdLastSet is 0). Change the password before binding with it.
7751909ERROR_ACCOUNT_LOCKED_OUTThe referenced account is currently locked out and may not be logged on to.The account is locked out after too many wrong passwords. It unlocks after the lockout duration, or when an administrator unlocks it.

Codes at the start of the message

The eight hexadecimal digits before LdapErr, SecErr or another kind of error. These are the ones most often seen; for any other code, the page links to the Windows error code lookup.

CodeWindows nameWindows messageWhat it usually means
80090308SEC_E_INVALID_TOKENThe token supplied to the function is invalidThe security layer refused the bind (AcceptSecurityContext error). The data code says why.
8009030CSEC_E_LOGON_DENIEDThe logon attempt failedThe logon was refused. The data code says why.
80090346SEC_E_BAD_BINDINGSClient's supplied SSPI channel bindings were incorrect.The channel binding of a bind over LDAPS did not match: the domain controller requires a channel binding token that the client did not send, or sent in a form it does not accept.
000004DCERROR_NOT_AUTHENTICATEDThe operation being requested was not performed because the user has not been authenticated.The connection has not bound. Bind before searching: Active Directory refuses most operations on an anonymous connection.
00002028ERROR_DS_STRONG_AUTH_REQUIREDA more secure authentication method is required for this server.The domain controller requires signed or encrypted binds (LDAP signing). Use a bind that signs, or LDAPS.
00000005ERROR_ACCESS_DENIEDAccess is denied.Access denied: the account that bound may not do this.
00002098ERROR_DS_INSUFF_ACCESS_RIGHTSInsufficient access rights to perform the operation.The account that bound does not have the rights for this change.
0000208DERROR_DS_OBJ_NOT_FOUNDDirectory object not found.The object does not exist. The message names the closest object that does (best match).
0000202BERROR_DS_REFERRALA referral was returned from the server.The object is in another domain or partition. Follow the referral, or search a global catalog.
00000057ERROR_INVALID_PARAMETERThe parameter is incorrect.A value in the request is not valid, for example not in the form its attribute needs.
0000052DERROR_PASSWORD_RESTRICTIONUnable to update the password. The value provided for the new password does not meet the length, complexity, or history requirements of the domain.The new password does not meet the password policy: length, complexity, history or minimum age.
0000001FERROR_GEN_FAILUREA device attached to the system is not functioning.The domain controller would not do the change. Setting a password over a connection that is not encrypted gives this.
00002071ERROR_DS_OBJ_STRING_NAME_EXISTSAn attempt was made to add an object to the directory with a name that is already in use.An object with this name already exists.

LDAP result codes

The result codes of RFC 4511 and the ones the Windows LDAP client adds (81 and up, which it reports without the server). The last column of Microsoft's mapping, the Windows error the client turns each code into, shows when you look a code up.

CodeHexRFC nameWindows nameMeaning
00x00successLDAP_SUCCESSThe operation worked.
10x01operationsErrorLDAP_OPERATIONS_ERRORThe server could not do the operation in the order or state it was asked. Active Directory gives this to a search on a connection that has not bound, with 000004DC at the start of the message.
20x02protocolErrorLDAP_PROTOCOL_ERRORThe request does not follow the protocol, for example a malformed request or an LDAP version the server does not take.
30x03timeLimitExceededLDAP_TIMELIMIT_EXCEEDEDThe time limit of a search ran out before it finished.
40x04sizeLimitExceededLDAP_SIZELIMIT_EXCEEDEDA search found more entries than the size limit lets the server return. Ask for paged results to get them all.
50x05compareFalseLDAP_COMPARE_FALSEA compare found that the value does not match. This is an answer, not a failure.
60x06compareTrueLDAP_COMPARE_TRUEA compare found that the value matches.
70x07authMethodNotSupportedLDAP_AUTH_METHOD_NOT_SUPPORTEDThe server does not take the kind of bind that was used.
80x08strongerAuthRequiredLDAP_STRONG_AUTH_REQUIREDThe server needs a more secure bind. Active Directory gives this to a simple or unsigned bind when it requires LDAP signing, with 00002028 at the start of the message: sign the bind or use LDAPS.
90x09LDAP_PARTIAL_RESULTS LDAP_REFERRAL_V2An LDAP version 2 referral: part of the answer, and a pointer to the rest. Windows also names it LDAP_REFERRAL_V2.
100x0AreferralLDAP_REFERRALThis server does not hold the entry; the answer names the server that does. Active Directory gives this to a search whose base is in another domain.
110x0BadminLimitExceededLDAP_ADMIN_LIMIT_EXCEEDEDA limit the administrator set was reached, such as how many values the server returns or how large a request may be.
120x0CunavailableCriticalExtensionLDAP_UNAVAILABLE_CRIT_EXTENSIONThe request marked a control as critical, and the server does not support that control.
130x0DconfidentialityRequiredLDAP_CONFIDENTIALITY_REQUIREDThe server needs an encrypted connection for this operation.
140x0EsaslBindInProgressLDAP_SASL_BIND_IN_PROGRESSA SASL bind needs another round. This is a step of the bind, not a failure.
160x10noSuchAttributeLDAP_NO_SUCH_ATTRIBUTEThe attribute named in the request is not on the entry.
170x11undefinedAttributeTypeLDAP_UNDEFINED_TYPEThe attribute type is not in the server's schema.
180x12inappropriateMatchingLDAP_INAPPROPRIATE_MATCHINGThe filter uses a matching rule that the attribute does not support.
190x13constraintViolationLDAP_CONSTRAINT_VIOLATIONThe value breaks a rule on the attribute. A new password that does not meet the password policy gives this in Active Directory, with 0000052D at the start of the message.
200x14attributeOrValueExistsLDAP_ATTRIBUTE_OR_VALUE_EXISTSThe value being added is already there.
210x15invalidAttributeSyntaxLDAP_INVALID_SYNTAXThe value is not in the form the attribute needs.
320x20noSuchObjectLDAP_NO_SUCH_OBJECTThe entry named in the request does not exist: check the distinguished name or the search base. Active Directory names the closest entry that does exist (best match).
330x21aliasProblemLDAP_ALIAS_PROBLEMAn alias points to an entry that does not exist.
340x22invalidDNSyntaxLDAP_INVALID_DN_SYNTAXA distinguished name in the request is not written correctly.
350x23LDAP_IS_LEAFReserved since LDAP version 3; LDAP version 2 used it for an entry without children.
360x24aliasDereferencingProblemLDAP_ALIAS_DEREF_PROBLEMAn alias could not be followed.
480x30inappropriateAuthenticationLDAP_INAPPROPRIATE_AUTHThis kind of bind is not allowed for the entry, for example an anonymous bind where a password is needed.
490x31invalidCredentialsLDAP_INVALID_CREDENTIALSThe bind failed: the name, the password, or the state of the account. Active Directory says which in the data code; see the data codes below.
500x32insufficientAccessRightsLDAP_INSUFFICIENT_RIGHTSThe account that bound does not have the rights for this operation.
510x33busyLDAP_BUSYThe server is too busy to do the operation now.
520x34unavailableLDAP_UNAVAILABLEThe server cannot do the operation now, for example because it is shutting down.
530x35unwillingToPerformLDAP_UNWILLING_TO_PERFORMThe server will not do this operation. Active Directory gives this to a password change over a connection that is not encrypted, and to changes the directory does not allow.
540x36loopDetectLDAP_LOOP_DETECTThe server found a loop while following aliases or referrals.
600x3CLDAP_SORT_CONTROL_MISSINGA virtual list view request came without the sort control it needs.
610x3DLDAP_OFFSET_RANGE_ERRORThe offset in a virtual list view request is out of range.
640x40namingViolationLDAP_NAMING_VIOLATIONThe entry's name breaks a naming rule of the schema, for example the wrong naming attribute or a parent it may not have.
650x41objectClassViolationLDAP_OBJECT_CLASS_VIOLATIONThe entry would break the rules of its object class: a mandatory attribute is missing, or an attribute is not allowed.
660x42notAllowedOnNonLeafLDAP_NOT_ALLOWED_ON_NONLEAFThe operation needs an entry without children, such as deleting a container that still holds objects.
670x43notAllowedOnRDNLDAP_NOT_ALLOWED_ON_RDNThe change would remove the value the entry is named by.
680x44entryAlreadyExistsLDAP_ALREADY_EXISTSAn entry with this name already exists.
690x45objectClassModsProhibitedLDAP_NO_OBJECT_CLASS_MODSThe object class of the entry cannot be changed this way.
700x46LDAP_RESULTS_TOO_LARGEReserved for connectionless LDAP (CLDAP).
710x47affectsMultipleDSAsLDAP_AFFECTS_MULTIPLE_DSASThe operation would affect the parts of the directory that more than one server holds.
760x4CLDAP_VIRTUAL_LIST_VIEW_ERRORA virtual list view request failed.
800x50otherLDAP_OTHERAn error that no other code covers.
810x51LDAP_SERVER_DOWNWindows LDAP client: the server cannot be reached or closed the connection. Check the name, the port (389, or 636 for LDAPS) and, for LDAPS, the certificate.
820x52LDAP_LOCAL_ERRORWindows LDAP client: an error on the client side, for example in Kerberos or SASL before the request went out.
830x53LDAP_ENCODING_ERRORWindows LDAP client: the request could not be encoded.
840x54LDAP_DECODING_ERRORWindows LDAP client: the reply could not be decoded.
850x55LDAP_TIMEOUTWindows LDAP client: the time limit the client set ran out.
860x56LDAP_AUTH_UNKNOWNWindows LDAP client: the bind method is not one it knows.
870x57LDAP_FILTER_ERRORWindows LDAP client: the search filter is not valid, for example unbalanced parentheses.
880x58LDAP_USER_CANCELLEDWindows LDAP client: the operation was cancelled.
890x59LDAP_PARAM_ERRORWindows LDAP client: a function was called with a bad parameter.
900x5ALDAP_NO_MEMORYWindows LDAP client: out of memory.
910x5BLDAP_CONNECT_ERRORWindows LDAP client: the connection could not be made.
920x5CLDAP_NOT_SUPPORTEDWindows LDAP client: the feature is not supported, for example by the LDAP version in use.
930x5DLDAP_CONTROL_NOT_FOUNDWindows LDAP client: the control asked for is not in the reply.
940x5ELDAP_NO_RESULTS_RETURNEDWindows LDAP client: the reply holds no results.
950x5FLDAP_MORE_RESULTS_TO_RETURNWindows LDAP client: more results are waiting.
960x60LDAP_CLIENT_LOOPWindows LDAP client: the client found a loop while following referrals.
970x61LDAP_REFERRAL_LIMIT_EXCEEDEDWindows LDAP client: more referrals than the limit.

Sources

More Active Directory tools