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.
| Part | What it is |
|---|---|
error code 49 | The LDAP result code: 49 is invalidCredentials. See the result codes below. |
80090308 | The Windows error code the message starts with, in hexadecimal: 80090308 is SEC_E_INVALID_TOKEN. |
LdapErr | The kind of error: LdapErr, SecErr (security), NameErr (name), SvcErr (service), AtrErr (attribute), RefErr (referral) or UpdErr (update). |
DSID-0C09044E | An 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 error | A comment in words. AcceptSecurityContext is the Windows function that checks the credentials of a bind. |
data 52e | For 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. |
v4563 | A 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.
| Data | Decimal | Windows name | Windows message | What it means for the bind |
|---|---|---|---|---|
| 525 | 1317 | ERROR_ | The specified account does not exist. | No account has the name the bind used. |
| 52e | 1326 | ERROR_ | The user name or password is incorrect. | The name or the password is wrong. |
| 52f | 1327 | ERROR_ | Account 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. |
| 530 | 1328 | ERROR_ | Your account has time restrictions that keep you from signing in right now. | The account may not sign in at this time of day. |
| 531 | 1329 | ERROR_ | This 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). |
| 532 | 1330 | ERROR_ | The password for this account has expired. | The password has expired. The user changes it, or an administrator resets it. |
| 533 | 1331 | ERROR_ | This user can't sign in because this account is currently disabled. | The account is disabled. |
| 568 | 1384 | ERROR_ | During 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. |
| 569 | 1385 | ERROR_ | Logon 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. |
| 701 | 1793 | ERROR_ | The user's account has expired. | The account has expired (accountExpires is in the past). |
| 773 | 1907 | ERROR_ | The 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. |
| 775 | 1909 | ERROR_ | The 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.
| Code | Windows name | Windows message | What it usually means |
|---|---|---|---|
| 80090308 | SEC_ | The token supplied to the function is invalid | The security layer refused the bind (AcceptSecurityContext error). The data code says why. |
| 8009030C | SEC_ | The logon attempt failed | The logon was refused. The data code says why. |
| 80090346 | SEC_ | Client'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. |
| 000004DC | ERROR_ | The 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. |
| 00002028 | ERROR_ | A 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. |
| 00000005 | ERROR_ | Access is denied. | Access denied: the account that bound may not do this. |
| 00002098 | ERROR_ | Insufficient access rights to perform the operation. | The account that bound does not have the rights for this change. |
| 0000208D | ERROR_ | Directory object not found. | The object does not exist. The message names the closest object that does (best match). |
| 0000202B | ERROR_ | A referral was returned from the server. | The object is in another domain or partition. Follow the referral, or search a global catalog. |
| 00000057 | ERROR_ | The parameter is incorrect. | A value in the request is not valid, for example not in the form its attribute needs. |
| 0000052D | ERROR_ | Unable 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. |
| 0000001F | ERROR_ | A 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. |
| 00002071 | ERROR_ | An 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.
| Code | Hex | RFC name | Windows name | Meaning |
|---|---|---|---|---|
| 0 | 0x00 | success | LDAP_ | The operation worked. |
| 1 | 0x01 | operationsError | LDAP_ | The 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. |
| 2 | 0x02 | protocolError | LDAP_ | The request does not follow the protocol, for example a malformed request or an LDAP version the server does not take. |
| 3 | 0x03 | timeLimitExceeded | LDAP_ | The time limit of a search ran out before it finished. |
| 4 | 0x04 | sizeLimitExceeded | LDAP_ | A search found more entries than the size limit lets the server return. Ask for paged results to get them all. |
| 5 | 0x05 | compareFalse | LDAP_ | A compare found that the value does not match. This is an answer, not a failure. |
| 6 | 0x06 | compareTrue | LDAP_ | A compare found that the value matches. |
| 7 | 0x07 | authMethodNotSupported | LDAP_ | The server does not take the kind of bind that was used. |
| 8 | 0x08 | strongerAuthRequired | LDAP_ | The 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. |
| 9 | 0x09 | LDAP_ LDAP_ | An LDAP version 2 referral: part of the answer, and a pointer to the rest. Windows also names it LDAP_REFERRAL_V2. | |
| 10 | 0x0A | referral | LDAP_ | This 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. |
| 11 | 0x0B | adminLimitExceeded | LDAP_ | A limit the administrator set was reached, such as how many values the server returns or how large a request may be. |
| 12 | 0x0C | unavailableCriticalExtension | LDAP_ | The request marked a control as critical, and the server does not support that control. |
| 13 | 0x0D | confidentialityRequired | LDAP_ | The server needs an encrypted connection for this operation. |
| 14 | 0x0E | saslBindInProgress | LDAP_ | A SASL bind needs another round. This is a step of the bind, not a failure. |
| 16 | 0x10 | noSuchAttribute | LDAP_ | The attribute named in the request is not on the entry. |
| 17 | 0x11 | undefinedAttributeType | LDAP_ | The attribute type is not in the server's schema. |
| 18 | 0x12 | inappropriateMatching | LDAP_ | The filter uses a matching rule that the attribute does not support. |
| 19 | 0x13 | constraintViolation | LDAP_ | The 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. |
| 20 | 0x14 | attributeOrValueExists | LDAP_ | The value being added is already there. |
| 21 | 0x15 | invalidAttributeSyntax | LDAP_ | The value is not in the form the attribute needs. |
| 32 | 0x20 | noSuchObject | LDAP_ | The 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). |
| 33 | 0x21 | aliasProblem | LDAP_ | An alias points to an entry that does not exist. |
| 34 | 0x22 | invalidDNSyntax | LDAP_ | A distinguished name in the request is not written correctly. |
| 35 | 0x23 | LDAP_ | Reserved since LDAP version 3; LDAP version 2 used it for an entry without children. | |
| 36 | 0x24 | aliasDereferencingProblem | LDAP_ | An alias could not be followed. |
| 48 | 0x30 | inappropriateAuthentication | LDAP_ | This kind of bind is not allowed for the entry, for example an anonymous bind where a password is needed. |
| 49 | 0x31 | invalidCredentials | LDAP_ | The 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. |
| 50 | 0x32 | insufficientAccessRights | LDAP_ | The account that bound does not have the rights for this operation. |
| 51 | 0x33 | busy | LDAP_ | The server is too busy to do the operation now. |
| 52 | 0x34 | unavailable | LDAP_ | The server cannot do the operation now, for example because it is shutting down. |
| 53 | 0x35 | unwillingToPerform | LDAP_ | The 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. |
| 54 | 0x36 | loopDetect | LDAP_ | The server found a loop while following aliases or referrals. |
| 60 | 0x3C | LDAP_ | A virtual list view request came without the sort control it needs. | |
| 61 | 0x3D | LDAP_ | The offset in a virtual list view request is out of range. | |
| 64 | 0x40 | namingViolation | LDAP_ | The entry's name breaks a naming rule of the schema, for example the wrong naming attribute or a parent it may not have. |
| 65 | 0x41 | objectClassViolation | LDAP_ | The entry would break the rules of its object class: a mandatory attribute is missing, or an attribute is not allowed. |
| 66 | 0x42 | notAllowedOnNonLeaf | LDAP_ | The operation needs an entry without children, such as deleting a container that still holds objects. |
| 67 | 0x43 | notAllowedOnRDN | LDAP_ | The change would remove the value the entry is named by. |
| 68 | 0x44 | entryAlreadyExists | LDAP_ | An entry with this name already exists. |
| 69 | 0x45 | objectClassModsProhibited | LDAP_ | The object class of the entry cannot be changed this way. |
| 70 | 0x46 | LDAP_ | Reserved for connectionless LDAP (CLDAP). | |
| 71 | 0x47 | affectsMultipleDSAs | LDAP_ | The operation would affect the parts of the directory that more than one server holds. |
| 76 | 0x4C | LDAP_ | A virtual list view request failed. | |
| 80 | 0x50 | other | LDAP_ | An error that no other code covers. |
| 81 | 0x51 | LDAP_ | Windows 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. | |
| 82 | 0x52 | LDAP_ | Windows LDAP client: an error on the client side, for example in Kerberos or SASL before the request went out. | |
| 83 | 0x53 | LDAP_ | Windows LDAP client: the request could not be encoded. | |
| 84 | 0x54 | LDAP_ | Windows LDAP client: the reply could not be decoded. | |
| 85 | 0x55 | LDAP_ | Windows LDAP client: the time limit the client set ran out. | |
| 86 | 0x56 | LDAP_ | Windows LDAP client: the bind method is not one it knows. | |
| 87 | 0x57 | LDAP_ | Windows LDAP client: the search filter is not valid, for example unbalanced parentheses. | |
| 88 | 0x58 | LDAP_ | Windows LDAP client: the operation was cancelled. | |
| 89 | 0x59 | LDAP_ | Windows LDAP client: a function was called with a bad parameter. | |
| 90 | 0x5A | LDAP_ | Windows LDAP client: out of memory. | |
| 91 | 0x5B | LDAP_ | Windows LDAP client: the connection could not be made. | |
| 92 | 0x5C | LDAP_ | Windows LDAP client: the feature is not supported, for example by the LDAP version in use. | |
| 93 | 0x5D | LDAP_ | Windows LDAP client: the control asked for is not in the reply. | |
| 94 | 0x5E | LDAP_ | Windows LDAP client: the reply holds no results. | |
| 95 | 0x5F | LDAP_ | Windows LDAP client: more results are waiting. | |
| 96 | 0x60 | LDAP_ | Windows LDAP client: the client found a loop while following referrals. | |
| 97 | 0x61 | LDAP_ | Windows LDAP client: more referrals than the limit. |
Sources
- Result code numbers and Windows names: winldap.h, from Microsoft's windows-rs under the MIT licence. RFC names and the Windows error of each code: the open specification [MS-ERREF] section 2.4, LDAP Error to Win32 Error Mapping; RFC 4511 for the name strongerAuthRequired (8), which RFC 2251 called strongAuthRequired.
- The form of the message: the open specification [MS-ADTS] section 3.1.1.3.1.9, Error Message Strings.
- Windows names and messages: Microsoft's System Error Codes and COM Error Codes, published under the Creative Commons Attribution 4.0 International licence, as the Windows error code lookup of this site has them.
- LDAP channel binding: Microsoft's documentation of LDAP channel binding for Active Directory.
More Active Directory tools
-
Logon failure decoder
Read failed logon events 4625, 4771 and 4776: Status and Sub Status, Kerberos failure codes and logon types.
-
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.