LDAP Error Codes w/ Description

Code Value Description
LDAP_SUCCESS 0x00 The call completed successfully.
LDAP_OPERATIONS_ERROR 0x01 Operations error occurred.
LDAP_PROTOCOL_ERROR 0x02 Protocol error occurred.
LDAP_TIMELIMIT_EXCEEDED 0x03 Time limit has exceeded.
LDAP_SIZELIMIT_EXCEEDED 0x04 Size limit has exceeded.
LDAP_COMPARE_FALSE 0x05 Compare yielded FALSE.
LDAP_COMPARE_TRUE 0x06 Compare yielded TRUE.
LDAP_AUTH_METHOD_NOT_SUPPORTED 0x07 The authentication method is not supported.
LDAP_STRONG_AUTH_REQUIRED 0x08 Strong authentication is required.
LDAP_REFERRAL_V2 0x09 LDAP v. 2 referral.
LDAP_PARTIAL_RESULTS 0x09 Partial results and referrals received.
LDAP_REFERRAL 0x0a Referral occurred.
LDAP_ADMIN_LIMIT_EXCEEDED 0x0b Administration limit on the server has exceeded.
LDAP_UNAVAILABLE_CRIT_EXTENSION 0x0c Critical extension is unavailable.
LDAP_CONFIDENTIALITY_REQUIRED 0x0d Confidentiality is required.
LDAP_NO_SUCH_ATTRIBUTE 0x10 Requested attribute does not exist.
LDAP_UNDEFINED_TYPE 0x11 The type is not defined.
LDAP_INAPPROPRIATE_MATCHING 0x12 An inappropriate matching occurred.
LDAP_CONSTRAINT_VIOLATION 0x13 A constraint violation occurred.
LDAP_ATTRIBUTE_OR_VALUE_EXISTS 0x14 The attribute exists or the value has been assigned.
LDAP_INVALID_SYNTAX 0x15 The syntax is invalid.
LDAP_NO_SUCH_OBJECT 0x20 Object does not exist.
LDAP_ALIAS_PROBLEM 0x21 The alias is invalid.
LDAP_INVALID_DN_SYNTAX 0x22 The distinguished name has an invalid syntax.
LDAP_IS_LEAF 0x23 The object is a leaf.
LDAP_ALIAS_DEREF_PROBLEM 0x24 Can not de-reference the alias.
LDAP_INAPPROPRIATE_AUTH 0x30 Authentication is inappropriate.
LDAP_INVALID_CREDENTIALS 0x31 The supplied credential is invalid.
LDAP_INSUFFICIENT_RIGHTS 0x32 The user has insufficient access right.
LDAP_BUSY 0x33 The server is busy.
LDAP_UNAVAILABLE 0x34 The server is unavailable.
LDAP_UNWILLING_TO_PERFORM 0x35 The server is not willing to handle directory requests.
Code Value Description
LDAP_LOOP_DETECT 0x36 The chain of referrals has looped back to a referring server.
LDAP_NAMING_VIOLATION 0x40 There was a naming violation.
LDAP_OBJECT_CLASS_VIOLATION 0x41 There was an object class violation.
LDAP_NOT_ALLOWED_ON_NONLEAF 0x42 Operation is not allowed on a non-leaf object.
LDAP_NOT_ALLOWED_ON_RDN 0x43 Operation is not allowed on RDN.
LDAP_ALREADY_EXISTS 0x44 The object already exists.
LDAP_NO_OBJECT_CLASS_MODS 0x45 Cannot modify object class.
LDAP_RESULTS_TOO_LARGE 0x46 Results returned are too large.
LDAP_AFFECTS_MULTIPLE_DSAS 0x47 Multiple directory service agents are affected.
LDAP_OTHER 0x50 Unknown error occurred.
LDAP_SERVER_DOWN 0x51 Cannot contact the LDAP server.
LDAP_LOCAL_ERROR 0x52 Local error occurred.
LDAP_ENCODING_ERROR 0x53 Encoding error occurred.
LDAP_DECODING_ERROR 0x54 Decoding error occurred.
LDAP_TIMEOUT 0x55 The search was timed out.
LDAP_AUTH_UNKNOWN 0x56 Unknown authentication error occurred.
LDAP_FILTER_ERROR 0x57 The search filter is incorrect.
LDAP_USER_CANCELLED 0x58 The user has canceled the operation.
LDAP_PARAM_ERROR 0x59 An incorrect parameter was passed to a routine.
LDAP_NO_MEMORY 0x5a The system is out of memory.
LDAP_CONNECT_ERROR 0x5b Cannot establish a connection to the server.
LDAP_NOT_SUPPORTED 0x5c The feature is not supported.
LDAP_NO_RESULTS_RETURNED 0x5e The feature is not supported.
LDAP_CONTROL_NOT_FOUND 0x5d The ldap function (either ldap_parse_page_control or ldap_parse_sort_control) did not find the specified control.
LDAP_MORE_RESULTS_TO_RETURN 0x5f Additional results are to be returned.
LDAP_CLIENT_LOOP 0x60 Client loop was detected.
LDAP_REFERRAL_LIMIT_EXCEEDED 0x61 The referral limit was exceeded.

Leave a Reply

Your email address will not be published. Required fields are marked *