Win32 Error Codes

The following table lists the LDAP error messages for ADSI.

ADSI Error ValueLDAP messageWin32 messageDescription
0LLDAP_SUCCESSNO_ERROROperation succeeded.
0x80070005LLDAP_INSUFFICIENT_RIGHTSERROR_ACCESS_DENIEDUser has insufficient access rights.
0x80070008LLDAP_NO_MEMORYERROR_NOT_ENOUGH_MEMORYSystem is out of memory.
0x8007001fLLDAP_OTHERERROR_GEN_FAILUREUnknown error.
0x800700eaLLDAP_PARTIAL_RESULTSERROR_MORE_DATAPartial results and referrals received.
0x800700eaLLDAP_MORE_RESULTS_TO_RETURNERROR_MORE_DATAMore results are to be returned.
0x800704c7LLDAP_USER_CANCELLEDERROR_CANCELLEDUser canceled the operation.
0x800704c9LLDAP_CONNECT_ERRORERROR_CONNECTION_REFUSEDCannot establish the connection.
0x8007052eLLDAP_INVALID_CREDENTIALSERROR_LOGON_FAILURESupplied credential is not valid.
0x800705b4LLDAP_TIMEOUTERROR_TIMEOUTSearch timed out.
0x80071392LLDAP_ALREADY_EXISTSERROR_OBJECT_ALREADY_EXISTSObject already exists.
0x8007200aLLDAP_NO_SUCH_ATTRIBUTEERROR_DS_NO_ATTRIBUTE_OR_VALUERequested attribute does not exist.
0x8007200bLLDAP_INVALID_SYNTAXERROR_DS_INVALID_ATTRIBUTE_SYNTAXSyntax is not valid.
0x8007200cLLDAP_UNDEFINED_TYPEERROR_DS_ATTRIBUTE_TYPE_UNDEFINEDType not defined.
0x8007200dLLDAP_ATTRIBUTE_OR_VALUE_EXISTSERROR_DS_ATTRIBUTE_OR_VALUE_EXISTSAttribute exists or the value has been assigned.
0x8007200eLLDAP_BUSYERROR_DS_BUSYServer is busy.
0x8007200fLLDAP_UNAVAILABLEERROR_DS_UNAVAILABLEServer is not available.
0x80072014LLDAP_OBJECT_CLASS_VIOLATIONERROR_DS_OBJ_CLASS_VIOLATIONObject class violation.
0x80072015LLDAP_NOT_ALLOWED_ON_NONLEAFERROR_DS_CANT_ON_NON_LEAFOperation is not allowed on a non- leaf object.
0x80072016LLDAP_NOT_ALLOWED_ON_RDNERROR_DS_CANT_ON_RDNOperation is not allowed on an RDN.
0x80072017LLDAP_NO_OBJECT_CLASS_MODSERROR_DS_CANT_MOD_OBJ_CLASSCannot modify object class.
0x80072020LLDAP_OPERATIONS_ERRORERROR_DS_OPERATIONS_ERROROperation error occurred.
0x80072021LLDAP_PROTOCOL_ERRORERROR_DS_PROTOCOL_ERRORProtocol error occurred.
0x80072022LLDAP_TIMELIMIT_EXCEEDEDERROR_DS_TIMELIMIT_EXCEEDEDExceeded time limit.
0x80072023LLDAP_SIZELIMIT_EXCEEDEDERROR_DS_SIZELIMIT_EXCEEDEDExceeded size limit.
0x80072024LLDAP_ADMIN_LIMIT_EXCEEDEDERROR_DS_ADMIN_LIMIT_EXCEEDEDExceeded administration limit on the server.
0x80072025LLDAP_COMPARE_FALSEERROR_DS_COMPARE_FALSECompare yielded FALSE.
0x80072026LLDAP_COMPARE_TRUEERROR_DS_COMPARE_TRUECompare yielded TRUE.
0x80072027LLDAP_AUTH_METHOD_NOT_SUPPORTEDERROR_DS_AUTH_METHOD_NOT_SUPPORTEDThe authentication method is not supported.
0x80072028LLDAP_STRONG_AUTH_REQUIREDERROR_DS_STRONG_AUTH_REQUIREDStrong authentication is required.
0x80072029LLDAP_INAPPROPRIATE_AUTHERROR_DS_INAPPROPRIATE_AUTHAuthentication is inappropriate.
0x8007202aLLDAP_AUTH_UNKNOWNERROR_DS_AUTH_UNKNOWNUnknown authentication error occurred.
0x8007202bLLDAP_REFERRALERROR_DS_REFERRALCannot resolve referral.
0x8007202cLLDAP_UNAVAILABLE_CRIT_EXTENSIONERROR_DS_UNAVAILABLE_CRIT_EXTENSIONCritical extension is unavailable.
0x8007202dLLDAP_CONFIDENTIALITY_REQUIREDERROR_DS_CONFIDENTIALITY_REQUIREDConfidentiality is required.
0x8007202eLLDAP_INAPPROPRIATE_MATCHINGERROR_DS_INAPPROPRIATE_MATCHINGThere was an inappropriate matching.
0x8007202fLLDAP_CONSTRAINT_VIOLATIONERROR_DS_CONSTRAINT_VIOLATIONThere was a constrain violation.
0x80072030LLDAP_NO_SUCH_OBJECTERROR_DS_NO_SUCH_OBJECTObject does not exist.
0x80072031LLDAP_ALIAS_PROBLEMERROR_DS_ALIAS_PROBLEMAlias is not valid.
0x80072032LLDAP_INVALID_DN_SYNTAXERROR_DS_INVALID_DN_SYNTAXDistinguished name has syntax that is not valid.
0x80072033LLDAP_IS_LEAFERROR_DS_IS_LEAFThe object is a leaf.
0x80072034LLDAP_ALIAS_DEREF_PROBLEMERROR_DS_ALIAS_DEREF_PROBLEMCannot dereference the alias.
0x80072035LLDAP_UNWILLING_TO_PERFORMERROR_DS_UNWILLING_TO_PERFORMServer cannot perform operation.
0x80072036LLDAP_LOOP_DETECTERROR_DS_LOOP_DETECTLoop was detected.
0x80072037LLDAP_NAMING_VIOLATIONERROR_DS_NAMING_VIOLATIONThere was a naming violation.
0x80072038LLDAP_RESULTS_TOO_LARGEERROR_DS_OBJECT_RESULTS_TOO_LARGEResults set is too large.
0x80072039LLDAP_AFFECTS_MULTIPLE_DSASERROR_DS_AFFECTS_MULTIPLE_DSASMultiple directory service agents are affected.
0x8007203aLLDAP_SERVER_DOWNERROR_DS_SERVER_DOWNCannot contact the LDAP server.
0x8007203bLLDAP_LOCAL_ERRORERROR_DS_LOCAL_ERRORLocal error occurred.
0x8007203cLLDAP_ENCODING_ERRORERROR_DS_ENCODING_ERROREncoding error occurred.
0x8007203dLLDAP_DECODING_ERRORERROR_DS_DECODING_ERRORDecoding error occurred.
0x8007203eLLDAP_FILTER_ERRORERROR_DS_FILTER_UNKNOWNThe search filter is bad.
0x8007203fLLDAP_PARAM_ERRORERROR_DS_PARAM_ERRORA bad parameter was passed to a function.
0x80072040LLDAP_NOT_SUPPORTEDERROR_DS_NOT_SUPPORTEDFeature not supported.
0x80072041LLDAP_NO_RESULTS_RETURNEDERROR_DS_NO_RESULTS_RETURNEDResults are not returned.
0x80072042LLDAP_CONTROL_NOT_FOUNDERROR_DS_CONTROL_NOT_FOUNDControl was not found.
0x80072043LLDAP_CLIENT_LOOPERROR_DS_CLIENT_LOOPClient loop was detected.
0x80072044LLDAP_REFERRAL_LIMIT_EXCEEDEDERROR_DS_REFERRAL_LIMIT_EXCEEDEDExceeded referral limit.

 

 

 

Show:
© 2014 Microsoft