Win32 Error Codes for ADSI 2.0

The following table lists the LDAP error messages for ADSI 2.0.

SymbolicCodeDescription
LDAP_SUCCESS0Operation succeeded.
LDAP_NO_SUCH_OBJECT0x80070002Object does not exist.
LDAP_AUTH_METHOD_NOT_SUPPORTED0x80070005Authentication method not supported.
LDAP_STRONG_AUTH_REQUIRED0x80070005Requires strong authentication.
LDAP_INAPPROPRIATE_AUTH0x80070005Inappropriate authentication.
LDAP_INSUFFICIENT_RIGHTS0x80070005User has insufficient access rights.
LDAP_AUTH_UNKNOWN0x80070005Unknown authentication error occurred.
LDAP_NO_MEMORY0x80070008System is out of memory.
LDAP_OTHER0x8007001FUnknown error occurred.
LDAP_LOCAL_ERROR0x8007001FLocal error occurred.
LDAP_UNAVAILABLE0x80070037Server is not available.
LDAP_SERVER_DOWN0x8007003ACannot contact the LDAP server.
LDAP_ENCODING_ERROR0x8007003BEncoding error occurred.
LDAP_DECODING_ERROR0x8007003BDecoding error occurred.
LDAP_ADMIN_LIMIT_EXCEEDED0x80070044Exceeded administration limit on the server.
LDAP_INVALID_CREDENTIALS0x80070056Credential not valid.
LDAP_INVALID_DN_SYNTAX0x80070057Distinguished name has syntax that is not valid.
LDAP_NAMING_VIOLATION0x80070057Naming violation.
LDAP_OBJECT_CLASS_VIOLATION0x80070057Object class violation.
LDAP_FILTER_ERROR0x80070057Search filter is bad.
LDAP_PARAM_ERROR0x80070057Bad parameter was passed to a routine.
LDAP_OPERATIONS_ERROR0x8007006EOperation error occurred.
LDAP_RESULTS_TOO_LARGE0x8007007AResults set is too large.
LDAP_INVALID_SYNTAX0x8007007BSyntax not valid.
LDAP_PROTOCOL_ERROR0x8007007CProtocol error.
LDAP_ALREADY_EXISTS0x800700B7Object already exists.
LDAP_PARTIAL_RESULTS0x800700EAPartial results and referrals received.
LDAP_BUSY0x800700EAServer is busy.
LDAP_UNWILLING_TO_PERFORM0x800703EBServer cannot perform operation.
LDAP_TIMEOUT0x8007041DSearch timed out.
LDAP_COMPARE_FALSE0x800704B8Compare yielded FALSE .
LDAP_COMPARE_TRUE0x800704B8Compare yielded TRUE .
LDAP_REFERRAL0x800704B8Cannot resolve referral.
LDAP_UNAVAILABLE_CRIT_EXTENSION0x800704B8Critical extension is unavailable.
LDAP_NO_SUCH_ATTRIBUTE0x800704B8Requested attribute does not exist.
LDAP_UNDEFINED_TYPE0x800704B8Type is not defined.
LDAP_INAPPROPRIATE_MATCHING0x800704B8There was an inappropriate matching.
LDAP_CONSTRAINT_VIOLATION0x800704B8There was a constrain violation.
LDAP_ATTRIBUTE_OR_VALUE_EXISTS0x800704B8The attribute exists or the value has been assigned.
LDAP_ALIAS_PROBLEM0x800704B8Alias is not valid.
LDAP_IS_LEAF0x800704B8Object is a leaf.
LDAP_ALIAS_DEREF_PROBLEM0x800704B8Cannot dereference the alias.
LDAP_LOOP_DETECT0x800704B8Loop was detected.
LDAP_NOT_ALLOWED_ON_NONLEAF0x800704B8Operation is not allowed on a non-leaf object.
LDAP_NOT_ALLOWED_ON_RDN0x800704B8Operation is not allowed on RDN.
LDAP_NO_OBJECT_CLASS_MODS0x800704B8Cannot modify object class.
LDAP_AFFECTS_MULTIPLE_DSAS0x800704B8Multiple directory service agents are affected.
LDAP_USER_CANCELLED0x800704C7User has canceled the operation.
LDAP_TIMELIMIT_EXCEEDED0x80070718Exceeded time limit.
LDAP_SIZELIMIT_EXCEEDED0x80070718Exceeded size limit.
50 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.