Error Codes for ADSI 2.5

Article translations Article translations
Article ID: 242076 - View products that this article applies to.
This article was previously published under Q242076
We strongly recommend that all users upgrade to Microsoft Internet Information Services (IIS) version 7.0 running on Microsoft Windows Server 2008. IIS 7.0 significantly increases Web infrastructure security. For more information about IIS security-related topics, visit the following Microsoft Web site:
http://www.microsoft.com/technet/security/prodtech/IIS.mspx
For more information about IIS 7.0, visit the following Microsoft Web site:
http://www.iis.net/default.aspx?tabid=1
Expand all | Collapse all

SUMMARY

All ADSI error codes are returned as COM HRESULT values. They can be grouped into the following three types:
Generic COM error codes Generic ADSI error codes Win32 error codes for ADSI

MORE INFORMATION

Generic COM Error Codes

Generic COM error codes expresses the operation status as produced by all COM modules. The following table contains some examples of these error codes on any Win32 platform:

Collapse this tableExpand this table
Error CodeHex ValueDescription
E_UNEXPECTED0x8000FFFFCatastrophic failure
E_NOTIMPL0x80004001Not implemented
E_NOINTERFACE0x80004002Interface not supported
E_POINTER0x80004003Invalid pointer
E_ABORT0x80004004Operation aborted
E_FAIL0x80004005Unspecified error

Generic ADSI Error Codes

This type of error code may be returned by any of the ADSI system providers to represent ADSI-specific error messages.

Generic ADSI error codes are defined in adserr.h.
Collapse this tableExpand this table
ValueDescriptionCorrective Action
0x80005000LE_ADS_BAD_PATHNAMEAn invalid ADSI pathname was passed. Verify that the object exists on the directory server and check for typos in the path.
0x80005001LE_ADS_INVALID_DOMAIN_OBJECTAn unknown ADSI domain object was requested. Verify the path of the domain object.
0x80005002LE_ADS_INVALID_USER_OBJECTAn unknown ADSI user object was requested. Verify the existence of the user object, check for typos in the path name and the user's access rights.
0x80005003LE_ADS_INVALID_COMPUTER_OBJECTAn unknown ADSI computer object was requested. Verify the existence of the computer object, check for typos in the path name and the computer's access rights.
0x80005004LE_ADS_UNKNOWN_OBJECTAn unknown ADSI object was requested. Verify the name of and the access rights to the object.
0x80005005LE_ADS_PROPERTY_NOT_SETThe specified ADSI property was not set.
0x80005006LE_ADS_PROPERTY_NOT_SUPPORTEDThe specified ADSI property is not supported. Verify the correct property is being set.
0x80005007LE_ADS_PROPERTY_INVALIDThe specified ADSI property is invalid. Verify the parameters passed to the method call.
0x80005008LE_ADS_BAD_PARAMETEROne or more input parameters are invalid.
0x80005009LE_ADS_OBJECT_UNBOUNDThe specified ADSI object is not bound to a remote resource. Make sure to call GetInfo on a newly created object after SetInfo has been called.
0x8000500ALE_ADS_PROPERTY_NOT_MODIFIEDThe specified ADSI object has not been modified.
0x8000500BLE_ADS_PROPERTY_MODIFIEDThe specified ADSI object has been modified.
0x8000500CLE_ADS_CANT_CONVERT_DATATYPEThe data type cannot be converted to/from a native DS data type. Make sure that the correct data type is used and/or that there is sufficient schema information available to perform data type conversion.
0x8000500DLE_ADS_PROPERTY_NOT_FOUNDThe property cannot be found in the cache. Make sure that GetInfo has been called (implicitly or explicitly). If the problem persists, the property has not been set on the server.
0x8000500ELE_ADS_OBJECT_EXISTSThe ADSI object exists. Use a different name to create the object.
0x8000500FLE_ADS_SCHEMA_VIOLATIONThe attempted action violates the directory service schema rules.
0x80005010LE_ADS_COLUMN_NOT_SETThe specified column in the ADSI was not set.
0x00005011LS_ADS_ERRORSOCCURREDDuring a query, one or more errors occurred. Verify that the search preference can be legally set and, if so, is properly set.
0x00005012LS_ADS_NOMORE_ROWS The search operation has reached the last row. Move to the rest of the program.
0x00005013LS_ADS_NOMORE_COLUMNSThe search operation has reached the last column for the current row. Move to next row.
0x80005014LE_ADS_INVALID_FILTERThe specified search filter is invalid. Make sure to use the correct format of the filter that is acceptable to the directory server.

Win32 error codes for ADSI

Standard Win32 error codes are also used to return ADSI error messages. In particular, the ADSI LDAP provider maps all the LDAP error codes to Win32 error codes.

The following table lists the LDAP error messages and their corresponding Win32 error codes for ADSI:

Collapse this tableExpand this table
ADSI ErrorLDAP MessageWin32 Description
0LLDAP_SUCCESS NO_ERROROperation succeeded.
0x80070005LLDAP_INSUFFICIENT_RIGHTS ERROR_ACCESS_DENIEDThe user has insufficient access right.
0x80070008LLDAP_NO_MEMORY ERROR_NOT_ENOUGH_MEMORYThe system is out of memory.
0x8007001fLLDAP_OTHER ERROR_GEN_FAILUREUnknown error occurred.
0x800700eaLLDAP_PARTIAL_RESULTS ERROR_MORE_DATAPartial results and referrals received.
0x800700eaLLDAP_MORE_RESULTS_TO_RETURN ERROR_MORE_DATAMore results are to be returned.
0x800704c7LLDAP_USER_CANCELLED ERROR_CANCELLEDThe user has cancelled the operation.
0x800704c9LLDAP_CONNECT_ERROR ERROR_CONNECTION_REFUSEDCannot establish the connection.
0x8007052eLLDAP_INVALID_CREDENTIALS ERROR_LOGON_FAILUREThe supplied credential is invalid.
0x800705b4LLDAP_TIMEOUT ERROR_TIMEOUTThe search was timed out.
0x80071392LLDAP_ALREADY_EXISTS ERROR_OBJECT_ALREADY_EXISTSThe object already exists.
0x8007200aLLDAP_NO_SUCH_ATTRIBUTE ERROR_DS_NO_ATTRIBUTE_OR_VALUERequested attribute does not exist.
0x8007200bLLDAP_INVALID_SYNTAX ERROR_DS_INVALID_ATTRIBUTE_SYNTAXThe syntax is invalid.
0x8007200cLLDAP_UNDEFINED_TYPE ERROR_DS_ATTRIBUTE_TYPE_UNDEFINEDType is not defined.
0x8007200dLLDAP_ATTRIBUTE_OR_VALUE_EXISTS ERROR_DS_ATTRIBUTE_OR_VALUE_EXISTSThe attribute exists or the value has been assigned.
0x8007200eLLDAP_BUSY ERROR_DS_BUSYThe server is busy.
0x8007200fLLDAP_UNAVAILABLE ERROR_DS_UNAVAILABLEThe server is not available.
0x80072014LLDAP_OBJECT_CLASS_VIOLATION ERROR_DS_OBJ_CLASS_VIOLATIONThere was an object class violation.
0x80072015LLDAP_NOT_ALLOWED_ON_NONLEAF ERROR_DS_CANT_ON_NON_LEAFOperation is not allowed on a non leaf object.
0x80072016LLDAP_NOT_ALLOWED_ON_RDN ERROR_DS_CANT_ON_RDNOperation is not allowed on RDN.
0x80072017LLDAP_NO_OBJECT_CLASS_MODS ERROR_DS_CANT_MOD_OBJ_CLASSCannot modify object class.
0x80072020LLDAP_OPERATIONS_ERROR ERROR_DS_OPERATIONS_ERROROperations error occurred.
0x80072021LLDAP_PROTOCOL_ERROR ERROR_DS_PROTOCOL_ERRORProtocol error occurred.
0x80072022LLDAP_TIMELIMIT_EXCEEDED ERROR_DS_TIMELIMIT_EXCEEDEDTime limit has exceeded.
0x80072023LLDAP_SIZELIMIT_EXCEEDED ERROR_DS_SIZELIMIT_EXCEEDEDSize limit has exceeded.
0x80072024LLDAP_ADMIN_LIMIT_EXCEEDED ERROR_DS_ADMIN_LIMIT_EXCEEDEDAdministration limit on the server has exceeded.
0x80072025LLDAP_COMPARE_FALSE ERROR_DS_COMPARE_FALSECompare yielded FALSE.
0x80072026LLDAP_COMPARE_TRUE ERROR_DS_COMPARE_TRUECompare yielded TRUE.
0x80072027LLDAP_AUTH_METHOD_NOT_SUPPORTED ERROR_DS_AUTH_METHOD_NOT_SUPPORTEDThe authentication method is not supported.
0x80072028LLDAP_STRONG_AUTH_REQUIRED ERROR_DS_STRONG_AUTH_REQUIREDStrong authentication is required.
0x80072029LLDAP_INAPPROPRIATE_AUTH ERROR_DS_INAPPROPRIATE_AUTHAuthentication is inappropriate.
0x8007202aLLDAP_AUTH_UNKNOWN ERROR_DS_AUTH_UNKNOWNUnknown authentication error occurred.
0x8007202bLLDAP_REFERRAL ERROR_DS_REFERRALReferral
0x8007202cLLDAP_UNAVAILABLE_CRIT_EXTENSION ERROR_DS_UNAVAILABLE_CRIT_EXTENSIONCritical extension is unavailable.
0x8007202dLLDAP_CONFIDENTIALITY_REQUIRED ERROR_DS_CONFIDENTIALITY_REQUIREDConfidentiality is required.
0x8007202eLLDAP_INAPPROPRIATE_MATCHING ERROR_DS_INAPPROPRIATE_MATCHINGThere was an inappropriate matching.
0x8007202fLLDAP_CONSTRAINT_VIOLATION ERROR_DS_CONSTRAINT_VIOLATIONThere was a constrain violation.
0x80072030LLDAP_NO_SUCH_OBJECT ERROR_DS_NO_SUCH_OBJECTObject does not exist.
0x80072031LLDAP_ALIAS_PROBLEM ERROR_DS_ALIAS_PROBLEMThe alias is invalid.
0x80072032LLDAP_INVALID_DN_SYNTAX ERROR_DS_INVALID_DN_SYNTAXThe distinguished name has an invalid syntax.
0x80072033LLDAP_IS_LEAF ERROR_DS_IS_LEAFThe object is a leaf.
0x80072034LLDAP_ALIAS_DEREF_PROBLEM ERROR_DS_ALIAS_DEREF_PROBLEMCannot dereference the alias.
0x80072035LLDAP_UNWILLING_TO_PERFORM ERROR_DS_UNWILLING_TO_PERFORMThe server is unwilling to perform.
0x80072036LLDAP_LOOP_DETECT ERROR_DS_LOOP_DETECTLoop was detected.
0x80072037LLDAP_NAMING_VIOLATION ERROR_DS_NAMING_VIOLATIONThere was a naming violation.
0x80072038LLDAP_RESULTS_TOO_LARGE ERROR_DS_OBJECT_RESULTS_TOO_LARGEResults returned are too large.
0x80072039LLDAP_AFFECTS_MULTIPLE_DSAS ERROR_DS_AFFECTS_MULTIPLE_DSASMultiple directory service agents are affected.
0x8007203aLLDAP_SERVER_DOWN ERROR_DS_SERVER_DOWNCannot contact the LDAP server.
0x8007203bLLDAP_LOCAL_ERROR ERROR_DS_LOCAL_ERRORLocal error occurred.
0x8007203cLLDAP_ENCODING_ERROR ERROR_DS_ENCODING_ERROREncoding error occurred.
0x8007203dLLDAP_DECODING_ERROR ERROR_DS_DECODING_ERRORDecoding error occurred.
0x8007203eLLDAP_FILTER_ERROR ERROR_DS_FILTER_UNKNOWNThe search filter is bad.
0x8007203fLLDAP_PARAM_ERROR ERROR_DS_PARAM_ERRORA bad parameter was passed to a routine.
0x80072040LLDAP_NOT_SUPPORTED ERROR_DS_NOT_SUPPORTEDThe feature is not supported.
0x80072041LLDAP_NO_RESULTS_RETURNED ERROR_DS_NO_RESULTS_RETURNEDResults are not returned.
0x80072042LLDAP_CONTROL_NOT_FOUND ERROR_DS_CONTROL_NOT_FOUNDThe control was not found.
0x80072043LLDAP_CLIENT_LOOP ERROR_DS_CLIENT_LOOPClient loop was detected.
0x80072044LLDAP_REFERRAL_LIMIT_EXCEEDED ERROR_DS_REFERRAL_LIMIT_EXCEEDEDThe referral limit has exceeded.

Properties

Article ID: 242076 - Last Review: July 7, 2008 - Revision: 3.1
APPLIES TO
  • Microsoft Site Server 3.0 Standard Edition
  • Microsoft Internet Information Server 4.0
Keywords: 
KB242076

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com