Win32 Error Codes

The following table lists the LDAP error messages for ADSI.

ADSI Error Value LDAP message Win32 message Description
0L LDAP_SUCCESS NO_ERROR Operation succeeded.
0x80070005L LDAP_INSUFFICIENT_RIGHTS ERROR_ACCESS_DENIED User has insufficient access rights.
0x80070008L LDAP_NO_MEMORY ERROR_NOT_ENOUGH_MEMORY System is out of memory.
0x8007001fL LDAP_OTHER ERROR_GEN_FAILURE Unknown error.
0x800700eaL LDAP_PARTIAL_RESULTS ERROR_MORE_DATA Partial results and referrals received.
0x800700eaL LDAP_MORE_RESULTS_TO_RETURN ERROR_MORE_DATA More results are to be returned.
0x800704c7L LDAP_USER_CANCELLED ERROR_CANCELLED User canceled the operation.
0x800704c9L LDAP_CONNECT_ERROR ERROR_CONNECTION_REFUSED Cannot establish the connection.
0x8007052eL LDAP_INVALID_CREDENTIALS ERROR_LOGON_FAILURE Supplied credential is not valid.
0x800705b4L LDAP_TIMEOUT ERROR_TIMEOUT Search timed out.
0x80071392L LDAP_ALREADY_EXISTS ERROR_OBJECT_ALREADY_EXISTS Object already exists.
0x8007200aL LDAP_NO_SUCH_ATTRIBUTE ERROR_DS_NO_ATTRIBUTE_OR_VALUE Requested attribute does not exist.
0x8007200bL LDAP_INVALID_SYNTAX ERROR_DS_INVALID_ATTRIBUTE_SYNTAX Syntax is not valid.
0x8007200cL LDAP_UNDEFINED_TYPE ERROR_DS_ATTRIBUTE_TYPE_UNDEFINED Type not defined.
0x8007200dL LDAP_ATTRIBUTE_OR_VALUE_EXISTS ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTS Attribute exists or the value has been assigned.
0x8007200eL LDAP_BUSY ERROR_DS_BUSY Server is busy.
0x8007200fL LDAP_UNAVAILABLE ERROR_DS_UNAVAILABLE Server is not available.
0x80072014L LDAP_OBJECT_CLASS_VIOLATION ERROR_DS_OBJ_CLASS_VIOLATION Object class violation.
0x80072015L LDAP_NOT_ALLOWED_ON_NONLEAF ERROR_DS_CANT_ON_NON_LEAF Operation is not allowed on a non- leaf object.
0x80072016L LDAP_NOT_ALLOWED_ON_RDN ERROR_DS_CANT_ON_RDN Operation is not allowed on an RDN.
0x80072017L LDAP_NO_OBJECT_CLASS_MODS ERROR_DS_CANT_MOD_OBJ_CLASS Cannot modify object class.
0x80072020L LDAP_OPERATIONS_ERROR ERROR_DS_OPERATIONS_ERROR Operation error occurred.
0x80072021L LDAP_PROTOCOL_ERROR ERROR_DS_PROTOCOL_ERROR Protocol error occurred.
0x80072022L LDAP_TIMELIMIT_EXCEEDED ERROR_DS_TIMELIMIT_EXCEEDED Exceeded time limit.
0x80072023L LDAP_SIZELIMIT_EXCEEDED ERROR_DS_SIZELIMIT_EXCEEDED Exceeded size limit.
0x80072024L LDAP_ADMIN_LIMIT_EXCEEDED ERROR_DS_ADMIN_LIMIT_EXCEEDED Exceeded administration limit on the server.
0x80072025L LDAP_COMPARE_FALSE ERROR_DS_COMPARE_FALSE Compare yielded FALSE.
0x80072026L LDAP_COMPARE_TRUE ERROR_DS_COMPARE_TRUE Compare yielded TRUE.
0x80072027L LDAP_AUTH_METHOD_NOT_SUPPORTED ERROR_DS_AUTH_METHOD_NOT_SUPPORTED The authentication method is not supported.
0x80072028L LDAP_STRONG_AUTH_REQUIRED ERROR_DS_STRONG_AUTH_REQUIRED Strong authentication is required.
0x80072029L LDAP_INAPPROPRIATE_AUTH ERROR_DS_INAPPROPRIATE_AUTH Authentication is inappropriate.
0x8007202aL LDAP_AUTH_UNKNOWN ERROR_DS_AUTH_UNKNOWN Unknown authentication error occurred.
0x8007202bL LDAP_REFERRAL ERROR_DS_REFERRAL Cannot resolve referral.
0x8007202cL LDAP_UNAVAILABLE_CRIT_EXTENSION ERROR_DS_UNAVAILABLE_CRIT_EXTENSION Critical extension is unavailable.
0x8007202dL LDAP_CONFIDENTIALITY_REQUIRED ERROR_DS_CONFIDENTIALITY_REQUIRED Confidentiality is required.
0x8007202eL LDAP_INAPPROPRIATE_MATCHING ERROR_DS_INAPPROPRIATE_MATCHING There was an inappropriate matching.
0x8007202fL LDAP_CONSTRAINT_VIOLATION ERROR_DS_CONSTRAINT_VIOLATION There was a constrain violation.
0x80072030L LDAP_NO_SUCH_OBJECT ERROR_DS_NO_SUCH_OBJECT Object does not exist.
0x80072031L LDAP_ALIAS_PROBLEM ERROR_DS_ALIAS_PROBLEM Alias is not valid.
0x80072032L LDAP_INVALID_DN_SYNTAX ERROR_DS_INVALID_DN_SYNTAX Distinguished name has syntax that is not valid.
0x80072033L LDAP_IS_LEAF ERROR_DS_IS_LEAF The object is a leaf.
0x80072034L LDAP_ALIAS_DEREF_PROBLEM ERROR_DS_ALIAS_DEREF_PROBLEM Cannot dereference the alias.
0x80072035L LDAP_UNWILLING_TO_PERFORM ERROR_DS_UNWILLING_TO_PERFORM Server cannot perform operation.
0x80072036L LDAP_LOOP_DETECT ERROR_DS_LOOP_DETECT Loop was detected.
0x80072037L LDAP_NAMING_VIOLATION ERROR_DS_NAMING_VIOLATION There was a naming violation.
0x80072038L LDAP_RESULTS_TOO_LARGE ERROR_DS_OBJECT_RESULTS_TOO_LARGE Results set is too large.
0x80072039L LDAP_AFFECTS_MULTIPLE_DSAS ERROR_DS_AFFECTS_MULTIPLE_DSAS Multiple directory service agents are affected.
0x8007203aL LDAP_SERVER_DOWN ERROR_DS_SERVER_DOWN Cannot contact the LDAP server.
0x8007203bL LDAP_LOCAL_ERROR ERROR_DS_LOCAL_ERROR Local error occurred.
0x8007203cL LDAP_ENCODING_ERROR ERROR_DS_ENCODING_ERROR Encoding error occurred.
0x8007203dL LDAP_DECODING_ERROR ERROR_DS_DECODING_ERROR Decoding error occurred.
0x8007203eL LDAP_FILTER_ERROR ERROR_DS_FILTER_UNKNOWN The search filter is bad.
0x8007203fL LDAP_PARAM_ERROR ERROR_DS_PARAM_ERROR A bad parameter was passed to a function.
0x80072040L LDAP_NOT_SUPPORTED ERROR_DS_NOT_SUPPORTED Feature not supported.
0x80072041L LDAP_NO_RESULTS_RETURNED ERROR_DS_NO_RESULTS_RETURNED Results are not returned.
0x80072042L LDAP_CONTROL_NOT_FOUND ERROR_DS_CONTROL_NOT_FOUND Control was not found.
0x80072043L LDAP_CLIENT_LOOP ERROR_DS_CLIENT_LOOP Client loop was detected.
0x80072044L LDAP_REFERRAL_LIMIT_EXCEEDED ERROR_DS_REFERRAL_LIMIT_EXCEEDED Exceeded referral limit.