Appendix E. LDAP Error Codes

The error codes that an LDAP server may return are defined in RFC 2251. In addition, a few error codes may be returned by the LDAP client (the SDK)—for example, to indicate that the server could not be reached. However, no document exactly defines the circumstances in which a server will return each possible error code in LDAP.

The following error codes apply to Netscape Directory Server, and probably to many other LDAP servers, but not to all. The list is not comprehensive. Codes without comments in the third column are not currently returned to clients by Netscape Directory Server or generated by the SDK.

ERROR CODELDAPEXCEPTION CONSTANTPOSSIBLE CAUSE(S)
0SUCCESSThe operation completed successfully
1OPERATION_ERROR ...

Get LDAP Programming with Java™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.