Click to Rate and Give Feedback

  Switch on low bandwidth view
Win32 Error Codes for ADSI 2.0

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

ADSI Error ValueLDAP messageWin32 messageDescription
0LDAP_SUCCESSNO_ERROROperation succeeded.
0x80070002LDAP_NO_SUCH_OBJECTERROR_FILE_NOT_FOUNDObject does not exist.
0x80070005LDAP_AUTH_METHOD_NOT_SUPPORTEDERROR_ACCESS_DENIEDAuthentication method not supported.
0x80070005LDAP_STRONG_AUTH_REQUIREDERROR_ACCESS_DENIEDRequires strong authentication.
0x80070005LDAP_INAPPROPRIATE_AUTHERROR_ACCESS_DENIEDInappropriate authentication.
0x80070005LDAP_INSUFFICIENT_RIGHTSERROR_ACCESS_DENIEDUser has insufficient access rights.
0x80070005LDAP_AUTH_UNKNOWNERROR_ACCESS_DENIEDUnknown authentication error occurred.
0x80070008LDAP_NO_MEMORYERROR_NOT_ENOUGH_MEMORYSystem is out of memory.
0x8007001FLDAP_OTHERERROR_GEN_FAILUREUnknown error occurred.
0x8007001FLDAP_LOCAL_ERRORERROR_GEN_FAILURELocal error occurred.
0x80070037LDAP_UNAVAILABLEERROR_DEV_NOT_EXISTServer is not available.
0x8007003ALDAP_SERVER_DOWNERROR_BAD_NET_RESPCannot contact the LDAP server.
0x8007003BLDAP_ENCODING_ERRORERROR_UNEXP_NET_ERREncoding error occurred.
0x8007003BLDAP_DECODING_ERRORERROR_UNEXP_NET_ERRDecoding error occurred.
0x80070044LDAP_ADMIN_LIMIT_EXCEEDEDERROR_TOO_MANY_NAMESExceeded administration limit on the server.
0x80070056LDAP_INVALID_CREDENTIALSERROR_INVALID_PASSWORDCredential not valid.
0x80070057LDAP_INVALID_DN_SYNTAXERROR_INVALID_PARAMETERDistinguished name has syntax that is not valid.
0x80070057LDAP_NAMING_VIOLATIONERROR_INVALID_PARAMETERNaming violation.
0x80070057LDAP_OBJECT_CLASS_VIOLATIONERROR_INVALID_PARAMETERObject class violation.
0x80070057LDAP_FILTER_ERRORERROR_INVALID_PARAMETERSearch filter is bad.
0x80070057LDAP_PARAM_ERRORERROR_INVALID_PARAMETERBad parameter was passed to a routine.
0X8007006ELDAP_OPERATIONS_ERRORERROR_OPEN_FAILEDOperation error occurred.
0x8007007ALDAP_RESULTS_TOO_LARGEERROR_INSUFFICIENT_BUFFERResults set is too large.
0x8007007BLDAP_INVALID_SYNTAXERROR_INVALID_NAMESyntax not valid.
0x8007007CLDAP_PROTOCOL_ERRORERROR_INVALID_LEVELProtocol error.
0x800700B7LDAP_ALREADY_EXISTSERROR_ALREADY_EXISTSObject already exists.
0x800700EALDAP_PARTIAL_RESULTSERROR_MORE_DATAPartial results and referrals received.
0x800700EALDAP_BUSYERROR_BUSYServer is busy.
0x800703EBLDAP_UNWILLING_TO_PERFORMERROR_CAN_NOT_COMPLETEServer cannot perform operation.
0x8007041DLDAP_TIMEOUTERROR_SERVICE_REQUEST_TIMEOUTSearch timed out.
0x800704B8LDAP_COMPARE_FALSEERROR_EXTENDED_ERRORCompare yielded FALSE.
0x800704B8LDAP_COMPARE_TRUEERROR_EXTENDED_ERRORCompare yielded TRUE.
0x800704B8LDAP_REFERRALERROR_EXTENDED_ERRORCannot resolve referral.
0x800704B8LDAP_UNAVAILABLE_CRIT_EXTENSIONERROR_EXTENDED_ERRORCritical extension is unavailable.
0x800704B8LDAP_NO_SUCH_ATTRIBUTEERROR_EXTENDED_ERRORRequested attribute does not exist.
0x800704B8LDAP_UNDEFINED_TYPEERROR_EXTENDED_ERRORType is not defined.
0x800704B8LDAP_INAPPROPRIATE_MATCHINGERROR_EXTENDED_ERRORThere was an inappropriate matching.
0x800704B8LDAP_CONSTRAINT_VIOLATIONERROR_EXTENDED_ERRORThere was a constrain violation.
0x800704B8LDAP_ATTRIBUTE_OR_VALUE_EXISTSERROR_EXTENDED_ERRORThe attribute exists or the value has been assigned.
0x800704B8LDAP_ALIAS_PROBLEMERROR_EXTENDED_ERRORAlias is not valid.
0x800704B8LDAP_IS_LEAFERROR_EXTENDED_ERRORObject is a leaf.
0x800704B8LDAP_ALIAS_DEREF_PROBLEMERROR_EXTENDED_ERRORCannot dereference the alias.
0x800704B8LDAP_LOOP_DETECTERROR_EXTENDED_ERRORLoop was detected.
0x800704B8LDAP_NOT_ALLOWED_ON_NONLEAFERROR_EXTENDED_ERROROperation is not allowed on a non-leaf object.
0x800704B8LDAP_NOT_ALLOWED_ON_RDNERROR_EXTENDED_ERROROperation is not allowed on RDN.
0x800704B8LDAP_NO_OBJECT_CLASS_MODSERROR_EXTENDED_ERRORCannot modify object class.
0x800704B8LDAP_AFFECTS_MULTIPLE_DSASERROR_EXTENDED_ERRORMultiple directory service agents are affected.
0x800704C7LDAP_USER_CANCELLEDERROR_CANCELLEDUser has canceled the operation.
0x80070718LDAP_TIMELIMIT_EXCEEDEDERROR_NOT_ENOUGH_QUOTAExceeded time limit.
0x80070718LDAP_SIZELIMIT_EXCEEDEDERROR_NOT_ENOUGH_QUOTAExceeded size limit.

In ADSI 2.0, several LDAP error messages are mapped to a Win32 error code as ERROR_EXTENDED_ERROR. Call ADsGetLastError to retrieve the error string returned by the server. For more information, see ADSI Extended Error Messages below.


Send comments about this topic to Microsoft

Build date: 1/15/2009

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker