Win32 Error Codes

The following table lists the LDAP error messages for ADSI.

SymbolicCodeDescription
LDAP_SUCCESS0Operation succeeded.
LDAP_INSUFFICIENT_RIGHTS0x80070005User has insufficient access rights.
LDAP_NO_MEMORY0x80070008System is out of memory.
LDAP_OTHER0x8007001fUnknown error.
LDAP_PARTIAL_RESULTS0x800700eaPartial results and referrals received.
LDAP_MORE_RESULTS_TO_RETURN0x800700eaMore results are to be returned.
LDAP_USER_CANCELLED0x800704c7User canceled the operation.
LDAP_CONNECT_ERROR0x800704c9Cannot establish the connection.
LDAP_INVALID_CREDENTIALS0x8007052eSupplied credential is not valid.
LDAP_TIMEOUT0x800705b4Search timed out.
LDAP_ALREADY_EXISTS0x80071392Object already exists.
LDAP_NO_SUCH_ATTRIBUTE0x8007200aRequested attribute does not exist.
LDAP_INVALID_SYNTAX0x8007200bSyntax is not valid.
LDAP_UNDEFINED_TYPE0x8007200cType not defined.
LDAP_ATTRIBUTE_OR_VALUE_EXISTS0x8007200dAttribute exists or the value has been assigned.
LDAP_BUSY0x8007200eServer is busy.
LDAP_UNAVAILABLE0x8007200fServer is not available.
LDAP_OBJECT_CLASS_VIOLATION0x80072014Object class violation.
LDAP_NOT_ALLOWED_ON_NONLEAF0x80072015Operation is not allowed on a non- leaf object.
LDAP_NOT_ALLOWED_ON_RDN0x80072016Operation is not allowed on an RDN.
LDAP_NO_OBJECT_CLASS_MODS0x80072017Cannot modify object class.
LDAP_OPERATIONS_ERROR0x80072020Operation error occurred.
LDAP_PROTOCOL_ERROR0x80072021Protocol error occurred.
LDAP_TIMELIMIT_EXCEEDED0x80072022Exceeded time limit.
LDAP_SIZELIMIT_EXCEEDED0x80072023Exceeded size limit.
LDAP_ADMIN_LIMIT_EXCEEDED0x80072024Exceeded administration limit on the server.
LDAP_COMPARE_FALSE0x80072025Compare yielded FALSE .
LDAP_COMPARE_TRUE0x80072026Compare yielded TRUE .
LDAP_AUTH_METHOD_NOT_SUPPORTED0x80072027The authentication method is not supported.
LDAP_STRONG_AUTH_REQUIRED0x80072028Strong authentication is required.
LDAP_INAPPROPRIATE_AUTH0x80072029Authentication is inappropriate.
LDAP_AUTH_UNKNOWN0x8007202aUnknown authentication error occurred.
LDAP_REFERRAL0x8007202bCannot resolve referral.
LDAP_UNAVAILABLE_CRIT_EXTENSION0x8007202cCritical extension is unavailable.
LDAP_CONFIDENTIALITY_REQUIRED0x8007202dConfidentiality is required.
LDAP_INAPPROPRIATE_MATCHING0x8007202eThere was an inappropriate matching.
LDAP_CONSTRAINT_VIOLATION0x8007202fThere was a constrain violation.
LDAP_NO_SUCH_OBJECT0x80072030Object does not exist.
LDAP_ALIAS_PROBLEM0x80072031Alias is not valid.
LDAP_INVALID_DN_SYNTAX0x80072032Distinguished name has syntax that is not valid.
LDAP_IS_LEAF0x80072033The object is a leaf.
LDAP_ALIAS_DEREF_PROBLEM0x80072034Cannot dereference the alias.
LDAP_UNWILLING_TO_PERFORM0x80072035Server cannot perform operation.
LDAP_LOOP_DETECT0x80072036Loop was detected.
LDAP_NAMING_VIOLATION0x80072037There was a naming violation.
LDAP_RESULTS_TOO_LARGE0x80072038Results set is too large.
LDAP_AFFECTS_MULTIPLE_DSAS0x80072039Multiple directory service agents are affected.
LDAP_SERVER_DOWN0x8007203aCannot contact the LDAP server.
LDAP_LOCAL_ERROR0x8007203bLocal error occurred.
LDAP_ENCODING_ERROR0x8007203cEncoding error occurred.
LDAP_DECODING_ERROR0x8007203dDecoding error occurred.
LDAP_FILTER_ERROR0x8007203eThe search filter is bad.
LDAP_PARAM_ERROR0x8007203fA bad parameter was passed to a function.
LDAP_NOT_SUPPORTED0x80072040Feature not supported.
LDAP_NO_RESULTS_RETURNED0x80072041Results are not returned.
LDAP_CONTROL_NOT_FOUND0x80072042Control was not found.
LDAP_CLIENT_LOOP0x80072043Client loop was detected.
LDAP_REFERRAL_LIMIT_EXCEEDED0x80072044Exceeded referral limit.
58 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.