1 .TH LDAP_ERROR 3 "22 September 1998" "OpenLDAP LDVERSION"
3 .\" Copyright 1998-1999 The OpenLDAP Foundation All Rights Reserved.
4 .\" Copying restrictions apply. See COPYRIGHT/LICENSE.
6 ldap_perror, ld_errno, ldap_result2error, ldap_errlist, ldap_err2string \- LDAP protocol error handling routines
20 struct ldaperror ldap_errlist[];
23 char *ldap_err2string(err)
28 void ldap_perror(ld, s)
34 int ldap_result2error(ld, res, freeit)
40 These routines provide interpretation of the various error codes
41 returned by the LDAP protocol and LDAP library routines, and assigned
44 field in the \fIld\fP structure.
47 .B ldap_result2error()
48 routine takes \fIres\fP, a result as produced by
51 .BR ldap_search_s (3),
53 the corresponding error code. Possible error codes are listed
54 below. If the \fIfreeit\fP parameter is non zero it indicates that the
55 \fIres\fP parameter should be freed by a call to
57 after the error code has been extracted. The
59 field in \fIld\fP is set and returned.
61 The returned value can be passed to
65 to get a text description of the message. The string
68 is a pointer to a static area that
69 should not be modified. The last element in the
71 array is signaled by an error code of -1.
75 routine can be called to print an indication of
76 the error on standard error, similar to the way
80 The possible values for an ldap error code are:
84 The request was successful.
86 .SM LDAP_OPERATIONS_ERROR
87 An operations error occurred.
89 .SM LDAP_PROTOCOL_ERROR
90 A protocol violation was detected.
92 .SM LDAP_TIMELIMIT_EXCEEDED
93 An LDAP time limit was exceeded.
95 .SM LDAP_SIZELIMIT_EXCEEDED
96 An LDAP size limit was exceeded.
98 .SM LDAP_COMPARE_FALSE
99 A compare operation returned false.
101 .SM LDAP_COMPARE_TRUE
102 A compare operation returned true.
104 .SM LDAP_STRONG_AUTH_NOT_SUPPORTED
105 The LDAP server does not support strong authentication.
107 .SM LDAP_STRONG_AUTH_REQUIRED
108 Strong authentication is required for the operation.
110 .SM LDAP_PARTIAL_RESULTS
111 Partial results only returned.
113 .SM LDAP_NO_SUCH_ATTRIBUTE
114 The attribute type specified does not exist in the entry.
116 .SM LDAP_UNDEFINED_TYPE
117 The attribute type specified is invalid.
119 .SM LDAP_INAPPROPRIATE_MATCHING
120 Filter type not supported for the specified attribute.
122 .SM LDAP_CONSTRAINT_VIOLATION
123 An attribute value specified violates some constraint (e.g., a postalAddress
124 has too many lines, or a line that is too long).
126 .SM LDAP_TYPE_OR_VALUE_EXISTS
127 An attribute type or attribute value specified already exists in the entry.
129 .SM LDAP_INVALID_SYNTAX
130 An invalid attribute value was specified.
132 .SM LDAP_NO_SUCH_OBJECT
133 The specified object does not exist in The Directory.
135 .SM LDAP_ALIAS_PROBLEM
136 An alias in The Directory points to a nonexistent entry.
138 .SM LDAP_INVALID_DN_SYNTAX
139 A syntactically invalid DN was specified.
142 The object specified is a leaf.
144 .SM LDAP_ALIAS_DEREF_PROBLEM
145 A problem was encountered when dereferencing an alias.
147 .SM LDAP_INAPPROPRIATE_AUTH
148 Inappropriate authentication was specified (e.g., LDAP_AUTH_SIMPLE was
149 specified and the entry does not have a userPassword attribute).
151 .SM LDAP_INVALID_CREDENTIALS
152 Invalid credentials were presented (e.g., the wrong password).
154 .SM LDAP_INSUFFICIENT_ACCESS
155 The user has insufficient access to perform the operation.
161 The DSA is unavailable.
163 .SM LDAP_UNWILLING_TO_PERFORM
164 The DSA is unwilling to perform the operation.
169 .SM LDAP_NAMING_VIOLATION
170 A naming violation occurred.
172 .SM LDAP_OBJECT_CLASS_VIOLATION
173 An object class violation occurred (e.g., a "must" attribute was missing
176 .SM LDAP_NOT_ALLOWED_ON_NONLEAF
177 The operation is not allowed on a nonleaf object.
179 .SM LDAP_NOT_ALLOWED_ON_RDN
180 The operation is not allowed on an RDN.
182 .SM LDAP_ALREADY_EXISTS
183 The entry already exists.
185 .SM LDAP_NO_OBJECT_CLASS_MODS
186 Object class modifications are not allowed.
189 An unknown error occurred.
192 The LDAP library can't contact the LDAP server.
195 Some local error occurred. This is usually a failed dynamic memory allocation.
197 .SM LDAP_ENCODING_ERROR
198 An error was encountered encoding parameters to send to the LDAP server.
200 .SM LDAP_DECODING_ERROR
201 An error was encountered decoding a result from the LDAP server.
204 A timelimit was exceeded while waiting for a result.
206 .SM LDAP_AUTH_UNKNOWN
207 The authentication method specified to ldap_bind() is not known.
209 .SM LDAP_FILTER_ERROR
210 An invalid filter was supplied to ldap_search() (e.g., unbalanced
214 An ldap routine was called with a bad parameter (e.g., a NULL ld
218 An memory allocation (e.g., malloc(3) or other dynamic memory
219 allocator) call failed in an ldap
226 is developed and maintained by The OpenLDAP Project (http://www.openldap.org/).
228 is derived from University of Michigan LDAP 3.3 Release.