Share via


Return Values

The following list lists error codes encountered in LDAP applications. For more information about error handling, see the set of links following this list.

LDAP_ADMIN_LIMIT_EXCEEDED

0x0b

Administration limit on the server was exceeded.

LDAP_AFFECTS_MULTIPLE_DSAS

0x47

Multiple directory service agents are affected.

LDAP_ALIAS_DEREF_PROBLEM

0x24

Cannot dereference the alias.

LDAP_ALIAS_PROBLEM

0x21

The alias is invalid.

LDAP_ALREADY_EXISTS

0x44

The object already exists.

LDAP_ATTRIBUTE_OR_VALUE_EXISTS

0x14

The attribute exists or the value has been assigned.

LDAP_AUTH_METHOD_NOT_SUPPORTED

0x07

The authentication method is not supported. To determine the authentication methods supported by an Active Directory server, retrieve the SupportedSASLMechanisms property of rootDSE. For more information, see Serverless Binding and RootDSE.

LDAP_AUTH_UNKNOWN

0x56

Unknown authentication error occurred.

LDAP_BUSY

0x33

The server is busy.

LDAP_CLIENT_LOOP

0x60

Client loop was detected.

LDAP_COMPARE_FALSE

0x05

For ldap_compare_ext_s and ldap_compare_s, this message is returned if the function succeeds, and the attribute and known values do not match.

LDAP_COMPARE_TRUE

0x06

For ldap_compare_ext_s and ldap_compare_s, this message is returned if the function succeeds, and the attribute and known values match.

LDAP_CONFIDENTIALITY_REQUIRED

0x0d

Confidentiality is required.

LDAP_CONNECT_ERROR

0x5b

Cannot establish the connection.

LDAP_CONSTRAINT_VIOLATION

0x13

There was a constraint violation.

LDAP_CONTROL_NOT_FOUND

0x5d

The LDAP function (ldap_parse_page_control, ldap_parse_sort_control, or ldap_parse_vlv_control) did not find the specified control.

LDAP_DECODING_ERROR

0x54

Decoding error occurred.

LDAP_ENCODING_ERROR

0x53

Encoding error occurred.

LDAP_FILTER_ERROR

0x57

The search filter is bad.

LDAP_INAPPROPRIATE_AUTH

0x30

Authentication is inappropriate.

LDAP_INAPPROPRIATE_MATCHING

0x12

There was an inappropriate matching.

LDAP_INSUFFICIENT_RIGHTS

0x32

The user has insufficient access rights.

LDAP_INVALID_CREDENTIALS

0x31

The supplied credential is invalid.

LDAP_INVALID_DN_SYNTAX

0x22

The distinguished name has an invalid syntax.

LDAP_INVALID_SYNTAX

0x15

The syntax is invalid.

LDAP_IS_LEAF

0x23

The object is a leaf.

LDAP_LOCAL_ERROR

0x52

Local error occurred. If this error occurs during a binding operation, for more information, see ldap_bind_s.

LDAP_LOOP_DETECT

0x36

The chain of referrals has looped back to a referring server.

LDAP_MORE_RESULTS_TO_RETURN

0x5f

More results are to be returned.

LDAP_NAMING_VIOLATION

0x40

There was a naming violation.

LDAP_NO_MEMORY

0x5a

The system is out of memory.

LDAP_NO_OBJECT_CLASS_MODS

0x45

Cannot modify object class.

LDAP_NO_RESULTS_RETURNED

0x5e

Results are not returned.

LDAP_NO_SUCH_ATTRIBUTE

0x10

Requested attribute does not exist.

LDAP_NO_SUCH_OBJECT

0x20

Object does not exist.

LDAP_NOT_ALLOWED_ON_NONLEAF

0x42

Operation is not allowed on a nonleaf object.

LDAP_NOT_ALLOWED_ON_RDN

0x43

Operation is not allowed on RDN.

LDAP_NOT_SUPPORTED

0x5c

The feature is not supported.

LDAP_OBJECT_CLASS_VIOLATION

0x41

There was an object class violation.

LDAP_OPERATIONS_ERROR

0x01

Operations error occurred.

LDAP_OTHER

0x50

Unknown error occurred.

LDAP_PARAM_ERROR

0x59

A bad parameter was passed to a routine.

LDAP_PARTIAL_RESULTS

0x09

Partial results and referrals received.

Note: Same error code as LDAP_REFERRAL_V2. The server returns the same result code for these two similar instances, v2 referral and continuation references.

For further information, see the protocol reference, Referrals in LDAPv2 and LDAPv3.

LDAP_PROTOCOL_ERROR

0x02

Protocol error occurred.

LDAP_REFERRAL

0x0a

A referral was returned from the server.

LDAP_REFERRAL_LIMIT_EXCEEDED

0x61

The referral limit has been exceeded.

LDAP_REFERRAL_V2

0x09

A referral was returned from the server.

Note: Same error code as LDAP_PARTIAL_RESULTS. The server returns the same result code for these two similar instances, v2 referral and continuation references.

For further information, see the protocol reference, Referrals in LDAPv2 and LDAPv3.

LDAP_RESULTS_TOO_LARGE

0x46

Results returned are too large.

LDAP_SERVER_DOWN

0x51

Cannot contact the LDAP server.

LDAP_SIZELIMIT_EXCEEDED

0x04

Size limit was exceeded.

LDAP_STRONG_AUTH_REQUIRED

0x08

Strong authentication is required.

LDAP_SUCCESS

0x00

The call completed successfully.

LDAP_TIMELIMIT_EXCEEDED

0x03

Time limit, set by the server side time limit parameter, was exceeded.

LDAP_TIMEOUT

0x55

The search was aborted due to exceeding the limit of the client side timeout parameter.

LDAP_UNAVAILABLE

0x34

The server is unavailable.

LDAP_UNAVAILABLE_CRIT_EXTENSION

0x0c

The control is critical and the server does not support the control.

LDAP_UNDEFINED_TYPE

0x11

Type is not defined.

LDAP_UNWILLING_TO_PERFORM

0x35

The server is not willing to handle directory requests.

LDAP_USER_CANCELLED

0x58

The user has canceled the operation.

LDAP_VIRTUAL_LIST_VIEW_ERROR

0x4c

An error occurred when attempting to perform a requested Virtual List View operation. A detailed error code is returned in the ldctl_value field of the LDAP_CONTROL_VLVRESPONSE control.

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
Winldap.h

See also

Understanding Return Values

ldap_err2string

LdapGetLastError

LdapMapErrorToWin32

ldap_result2error