LDAP_RETCODE
A version of this page is also available for
4/8/2010
This enumeration defines a list of possible return codes for the LDAP protocol.
Syntax
typedef enum {
LDAP_SUCCESS = 0x00,
LDAP_OPERATIONS_ERROR = 0x01,
LDAP_PROTOCOL_ERROR = 0x02,
LDAP_TIMELIMIT_EXCEEDED = 0x03,
LDAP_SIZELIMIT_EXCEEDED = 0x04,
LDAP_COMPARE_FALSE = 0x05,
LDAP_COMPARE_TRUE = 0x06,
LDAP_AUTH_METHOD_NOT_SUPPORTED = 0x07,
LDAP_STRONG_AUTH_REQUIRED = 0x08,
LDAP_REFERRAL_V2 = 0x09,
LDAP_PARTIAL_RESULTS = 0x09,
LDAP_REFERRAL = 0x0a,
LDAP_ADMIN_LIMIT_EXCEEDED = 0x0b,
LDAP_UNAVAILABLE_CRIT_EXTENSION = 0x0c,
LDAP_CONFIDENTIALITY_REQUIRED = 0x0d,
LDAP_SASL_BIND_IN_PROGRESS = 0x0e,
LDAP_NO_SUCH_ATTRIBUTE = 0x10,
LDAP_UNDEFINED_TYPE = 0x11,
LDAP_INAPPROPRIATE_MATCHING = 0x12,
LDAP_CONSTRAINT_VIOLATION = 0x13,
LDAP_ATTRIBUTE_OR_VALUE_EXISTS = 0x14,
LDAP_INVALID_SYNTAX = 0x15,
LDAP_NO_SUCH_OBJECT = 0x20,
LDAP_ALIAS_PROBLEM = 0x21,
LDAP_INVALID_DN_SYNTAX = 0x22,
LDAP_IS_LEAF = 0x23,
LDAP_ALIAS_DEREF_PROBLEM = 0x24,
LDAP_INAPPROPRIATE_AUTH = 0x30,
LDAP_INVALID_CREDENTIALS = 0x31,
LDAP_INSUFFICIENT_RIGHTS = 0x32,
LDAP_BUSY = 0x33,
LDAP_UNAVAILABLE = 0x34,
LDAP_UNWILLING_TO_PERFORM = 0x35,
LDAP_LOOP_DETECT = 0x36,
LDAP_NAMING_VIOLATION = 0x40,
LDAP_OBJECT_CLASS_VIOLATION = 0x41,
LDAP_NOT_ALLOWED_ON_NONLEAF = 0x42,
LDAP_NOT_ALLOWED_ON_RDN = 0x43,
LDAP_ALREADY_EXISTS = 0x44,
LDAP_NO_OBJECT_CLASS_MODS = 0x45,
LDAP_RESULTS_TOO_LARGE = 0x46,
LDAP_AFFECTS_MULTIPLE_DSAS = 0x47,
LDAP_OTHER = 0x50,
LDAP_SERVER_DOWN = 0x51,
LDAP_LOCAL_ERROR = 0x52,
LDAP_ENCODING_ERROR = 0x53,
LDAP_DECODING_ERROR = 0x54,
LDAP_TIMEOUT = 0x55,
LDAP_AUTH_UNKNOWN = 0x56,
LDAP_FILTER_ERROR = 0x57,
LDAP_USER_CANCELLED = 0x58,
LDAP_PARAM_ERROR = 0x59,
LDAP_NO_MEMORY = 0x5a,
LDAP_CONNECT_ERROR = 0x5b,
LDAP_NOT_SUPPORTED = 0x5c,
LDAP_CONTROL_NOT_FOUND = 0x5d,
LDAP_NO_RESULTS_RETURNED = 0x5e,
LDAP_MORE_RESULTS_TO_RETURN = 0x5f,
LDAP_CLIENT_LOOP = 0x60,
LDAP_REFERRAL_LIMIT_EXCEEDED = 0x61
} LDAP_RETCODE;
Elements in Alphabetical Order
- LDAP_ADMIN_LIMIT_EXCEEDED
Administration limit on the server was exceeded.
- LDAP_AFFECTS_MULTIPLE_DSAS
Multiple directory service agents are affected.
- LDAP_ALIAS_DEREF_PROBLEM
Cannot dereference the alias.
- LDAP_ALIAS_PROBLEM
Alias is invalid.
- LDAP_ALREADY_EXISTS
Object already exists.
- LDAP_ATTRIBUTE_OR_VALUE_EXISTS
Attribute exists or the value has been assigned.
- LDAP_AUTH_METHOD_NOT_SUPPORTED
Authentication method is not supported.
- LDAP_AUTH_UNKNOWN
Unknown authentication error occurred.
- LDAP_BUSY
Server is busy.
- LDAP_CLIENT_LOOP
Client loop was detected.
- LDAP_COMPARE_FALSE
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
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
Confidentiality is required.
- LDAP_CONNECT_ERROR
Cannot establish the connection.
- LDAP_CONSTRAINT_VIOLATION
There was a constraint violation.
- LDAP_CONTROL_NOT_FOUND
The LDAP function (ldap_parse_page_control or ldap_parse_sort_control) did not find the specified control.
- LDAP_DECODING_ERROR
Decoding error occurred.
- LDAP_ENCODING_ERROR
Encoding error occurred.
- LDAP_FILTER_ERROR
Search filter is bad.
- LDAP_INAPPROPRIATE_AUTH
Authentication is inappropriate.
- LDAP_INAPPROPRIATE_MATCHING
There was an inappropriate matching.
- LDAP_INSUFFICIENT_RIGHTS
User has insufficient access rights.
- LDAP_INVALID_CREDENTIALS
Supplied credential is invalid.
- LDAP_INVALID_DN_SYNTAX
Distinguished name has an invalid syntax.
- LDAP_INVALID_SYNTAX
Syntax is invalid.
- LDAP_IS_LEAF
Object is a leaf.
- LDAP_LOCAL_ERROR
Local error occurred.
- LDAP_LOOP_DETECT
Chain of referrals has looped back to a referring server.
- LDAP_MORE_RESULTS_TO_RETURN
More results are to be returned.
- LDAP_NAMING_VIOLATION
There was a naming violation.
- LDAP_NO_MEMORY
System is out of memory.
- LDAP_NO_OBJECT_CLASS_MODS
Cannot modify object class.
- LDAP_NO_RESULTS_RETURNED
Results are not returned.
- LDAP_NO_SUCH_ATTRIBUTE
Requested attribute does not exist.
- LDAP_NO_SUCH_OBJECT
Object does not exist.
- LDAP_NOT_ALLOWED_ON_NONLEAF
Operation is not allowed on a nonleaf object.
- LDAP_NOT_ALLOWED_ON_RDN
Operation is not allowed on RDN.
- LDAP_NOT_SUPPORTED
Feature is not supported.
- LDAP_OBJECT_CLASS_VIOLATION
There was an object class violation.
- LDAP_OPERATIONS_ERROR
Operations error occurred.
- LDAP_OTHER
Unknown error occurred.
- LDAP_PARAM_ERROR
Bad parameter was passed to a routine.
- LDAP_PARTIAL_RESULTS
Partial results and referrals received.
- LDAP_PROTOCOL_ERROR
Protocol error occurred.
- LDAP_REFERRAL
Referral was returned from the server.
- LDAP_REFERRAL_LIMIT_EXCEEDED
Referral limit has been exceeded.
- LDAP_REFERRAL_V2
Referral was returned from the server.
- LDAP_RESULTS_TOO_LARGE
Results returned are too large.
- LDAP_SASL_BIND_IN_PROGRESS
Authentication process has not yet completed. This result code is used in multi-stage SASL bind operations.
- LDAP_SERVER_DOWN
Cannot contact the LDAP server.
- LDAP_SIZELIMIT_EXCEEDED
Size limit was exceeded
- LDAP_STRONG_AUTH_REQUIRED
Strong authentication is required.
- LDAP_SUCCESS
Call completed successfully.
- LDAP_TIMELIMIT_EXCEEDED
Time limit, set by the server-side time limit parameter, was exceeded.
- LDAP_TIMEOUT
Search was aborted because the limit of the client-side timeout parameter was exceeded.
- LDAP_UNAVAILABLE
Server is unavailable.
- LDAP_UNAVAILABLE_CRIT_EXTENSION
Control is critical and the server does not support the control.
- LDAP_UNDEFINED_TYPE
Type is not defined.
- LDAP_UNWILLING_TO_PERFORM
Server is not willing to handle directory requests.
- LDAP_USER_CANCELLED
User has canceled the operation.
Requirements
Header | winldap.h |
Windows Embedded CE | Windows CE .NET 4.0 and later |
Windows Mobile | Windows Mobile Version 5.0 and later |
See Also
Reference
ldap_compare_ext_s
ldap_compare_s
ldap_parse_page_control
ldap_parse_sort_control