LDAP Client API Error Conditions

When most LDAP APIs fail to complete successfully, ld_errno usually indicates one of the following errors. Under some conditions, ld_errno could indicate an error other than those listed here.

LDAP_SUCCESS 0x00 - The request was successful.
LDAP_OPERATIONS_ERROR 0x01 - An operations error occurred.
LDAP_PROTOCOL_ERROR 0x02 - A protocol violation was detected.
LDAP_TIMELIMIT_EXCEEDED 0x03 - An LDAP time limit was exceeded.
LDAP_SIZELIMIT_EXCEEDED 0x04 - An LDAP size limit was exceeded.
LDAP_COMPARE_FALSE 0x05 - A compare operation returned false.
LDAP_COMPARE_TRUE 0x06 - A compare operation returned true.
LDAP_STRONG_AUTH_NOT_ SUPPORTED 0x07 - The LDAP server does not support strong authentication.
LDAP_STRONG_AUTH_REQUIRED 0x08 - Strong authentication is required for the operation.
LDAP_PARTIAL_RESULTS 0x09 - Partial results only returned.
LDAP_REFERRAL 0X0A - Referral returned.
LDAP_ADMIN_LIMIT_EXCEEDED 0X0B - Administration limit exceeded.
LDAP_UNAVAILABLE_CRITICAL_ EXTENSION 0X0C - Critical extension not supported.
LDAP_NO_SUCH_ATTRIBUTE 0x10 - The attribute type specified does not exist in the entry.
LDAP_UNDEFINED_TYPE 0x11 - The attribute type specified is not valid.
LDAP_INAPPROPRIATE_MATCHING 0x12 - Filter type not supported for the specified attribute.
LDAP_CONSTRAINT_VIOLATION 0x13 - An attribute value specified violates some constraint (for example, a postal address has too many lines, or a line that is too long).
LDAP_TYPE_OR_VALUE_EXISTS 0x14 - An attribute type or attribute value specified already exists in the entry.
LDAP_INVALID_SYNTAX 0x15 - An attribute value was specified that is not valid.
LDAP_NO_SUCH_OBJECT 0x20 - The specified object does not exist in the directory.
LDAP_ALIAS_PROBLEM 0x21 - An alias in the directory points to a nonexistent entry.
LDAP_INVALID_DN_SYNTAX 0x22 - A distinguished name was specified that is syntactically not valid.
LDAP_IS_LEAF 0x23 - The object specified is a leaf.
LDAP_ALIAS_DEREF_PROBLEM 0x24 - A problem was encountered when dereferencing an alias.
LDAP_INAPPROPRIATE_AUTH 0x30 - Inappropriate authentication was specified (for example, LDAP_AUTH_SIMPLE was specified and the entry does not have a user password attribute).
LDAP_INVALID_CREDENTIALS 0x31 - Credentials that are not valid were presented (for example, the wrong password).
LDAP_INSUFFICIENT_ACCESS 0x32 - The user has insufficient access to perform the operation.
LDAP_BUSY 0x33 - The directory system agent is busy.
LDAP_UNAVAILABLE 0x34 - The directory system agent is unavailable.
LDAP_UNWILLING_TO_PERFORM 0x35 - The directory system agent is unwilling to perform the operation.
LDAP_LOOP_DETECT 0x36 - A loop was detected.
LDAP_NAMING_VIOLATION 0x40 - A naming violation occurred.
LDAP_OBJECT_CLASS_VIOLATION 0x41 - An object class violation occurred (for example, a must attribute was missing from the entry).
LDAP_NOT_ALLOWED_ON_NONLEAF 0x42 - The operation is not allowed on a nonleaf object.
LDAP_NOT_ALLOWED_ON_RDN 0x43 - The operation is not allowed on a relative distinguished name.
LDAP_ALREADY_EXISTS 0x44 - The entry already exists.
LDAP_NO_OBJECT_CLASS_MODS 0x45 - Object class modifications are not allowed.
LDAP_RESULTS_TOO_LARGE 0x46 - Results too large.
LDAP_AFFECTS_MULTIPLE_DSAS 0X47 - Affects multiple DSAS.
LDAP_OTHER 0x50 - An unknown error occurred.
LDAP_SERVER_DOWN 0x51 - The LDAP API cannot contact the LDAP server.
LDAP_LOCAL_ERROR 0x52 - Some local error occurred. This usually indicates that either the LDAP support (IBM® i option 32) is not installed on the system, or a malloc() operation has failed
LDAP_ENCODING_ERROR 0x53 - An error was encountered while the API was encoding parameters to send to the LDAP server.
LDAP_DECODING_ERROR 0x54 - An error was encountered while the API was decoding a result from the LDAP server.
LDAP_TIMEOUT 0x55 - A time limit was exceeded while API was waiting for a result.
LDAP_AUTH_UNKNOWN 0x56 - The authentication method specified to ldap_bind() is not known.
LDAP_FILTER_ERROR 0x57 - A filter that is not valid was supplied to ldap_search() (for example, unbalanced parentheses).
LDAP_USER_CANCELLED 0x58 - User cancelled
LDAP_PARAM_ERROR 0x59 - An LDAP API was called with a bad parameter (for example, a NULL ld pointer).
LDAP_NO_MEMORY 0x5A - A memory allocation (for example, a malloc() call) failed in an LDAP API.
LDAP_CONNECT_ERROR 0x5b - Connection error
LDAP_NOT_SUPPORTED 0x5c - Not Supported
LDAP_CONTROL_NOT_FOUND 0x5d - Control not found
LDAP_NO_RESULTS_RETURNED 0x5e - No results returned
LDAP_MORE_RESULTS_TO_RETURN 0x5f - More result to return
LDAP_URL_ERR_NOTLDAP 0x60 - URL doesn't begin with ldap://
LDAP_URL_ERR_NODN 0x61 - URL has no DN (required).
LDAP_URL_ERR_BADSCOPE 0x62 - URL scope string is invalid.
LDAP_URL_ERR_MEM 0x63 - can't allocate memory space.
LDAP_CLIENT_LOOP 0x64 - Client loop
LDAP_REFERRAL_LIMIT_EXCEEDED 0x65 - Referral limit exceeded
LDAP_SSL_ALREADY_INITIALIZED 0x70 - ldap_ssl_client_init successfully called previously in this process.
LDAP_SSL_INITIALIZE_FAILED 0x71 - SSL initialization call failed.
LDAP_SSL_INITIALIZE_NOT_CALLED 0x72 - Call ldap_ssl_client_init before attempting to use an ssl connection.
LDAP_SSL_PARAM_ERROR 0x73 - An invalid ssl parameter was previously specified.
LDAP_SSL_HANDSHAKE_FAILED 0x74 - Failed to connect to ssl server.
LDAP_SSL_GET_CIPHER_FAILED 0x75 - Failed to identify the maximum SSL encryption level for this host.
LDAP_SSL_NOT_AVAILABLE 0x76 - The SSL library cannot be loaded.
LDAP_SSL_KEYRING_NOT_FOUND 0x77 - SSL Keyring file not found
LDAP_SSL_PASSWORD_NOT_ SPECIFIED 0x78 - SSL password not specified
LDAP_NO_EXPLICIT_OWNER 0x80 - No explicit owner found
LDAP_NO_LOCK 0x81 - Could not obtain lock
LDAP_DNS_NO_SERVERS 0x85 - No LDAP servers found
LDAP_DNS_TRUNCATED 0x86 - Warning truncated DNS results
LDAP_DNS_INVALID_DATA 0x87 - Invalid DNS Data
LDAP_DNS_RESOLVE_ERROR 0x88 - Can't resolve system domain or nameserver
LDAP_DNS_CONF_FILE_ERROR 0x89 - DNS Configuration file error
LDAP_XLATE_E2BIG 0xA0 - Output buffer overflow
LDAP_XLATE_EINVAL 0xA1 - Input buffer truncated
LDAP_XLATE_EILSEQ 0xA2 - Unusable input character
LDAP_XLATE_NO_ENTRY 0xA3 - No codeset point to map to
LDAP_REG_FILE_NOT_FOUND 0xB0 - NT Registry - file not found
LDAP_REG_CANNOT_OPEN 0xB1 - NT Registry - cannot open
LDAP_REG_ENTRY_NOT_FOUND 0xB2 - NT Registry entry not found
LDAP_CONF_FILE_NOT_OPENED 0xC0 - Plugin configuration file not opened
LDAP_PLUGIN_NOT_LOADED 0xC1 - Plugin library not loaded
LDAP_PLUGIN_FUNCTION_NOT_ RESOLVED 0xC2 - Plugin function not resolved
LDAP_PLUGIN_NOT_INITIALIZED 0xC3 - Plugin library not initialized
LDAP_PLUGIN_COULD_NOT_BIND 0xC4 - Plugin function could not bind
LDAP_SASL_GSS_NO_SEC_CONTEXT 0xD0 - gss_init_sec_context failed


[ Back to top | LDAP APIs | APIs by category ]