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