Language
 
HomeKnowledge BaseMailNow! V4[PROBLEM] LDAP error code 52 and 81
Information
Article ID15
Created On11/23/2009
Modified1/11/2010
Share With Others
[PROBLEM] LDAP error code 52 and 81
Problem summary

When troubleshooting LDAP database regeneration using DebugView, I see messages such as:
[1276] InitLdapLib: Ok
[1276] FillUpLDAPServer: Deleting "domain" object (ou=optotronic.net,dc=mailnow) failed. Error code:32
[1276] FillUpLDAPServer: Adding user in personal address book failed (cn=ireneong@maxis.net.my,ou=addressbook,cn=cheran.lee,ou=people,ou=optotronic.net,dc=mailnow). Error code:52
[1276] FillUpLDAPServer: Adding user in personal address book failed (cn=iskandar@tmnet.com.my,ou=addressbook,cn=cheran.lee,ou=people,ou=optotronic.net,dc=mailnow). Error code:81

What does the error code 52 and 81 mean?

How to reproduce the problem

Solution
Please refer to the list of error code below. Be sure to convert the error code to hexadecimal (using Microsoft Calculator), e.g. for 52, the hexadecimal value is 34 (0x34)

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

Constant/value
Description
LDAP_ADMIN_LIMIT_EXCEEDED
Administration limit on the server was exceeded.
0x0b
LDAP_AFFECTS_MULTIPLE_DSAS
Multiple directory service agents are affected.
0x47
LDAP_ALIAS_DEREF_PROBLEM
Cannot dereference the alias.
0x24
LDAP_ALIAS_PROBLEM
The alias is invalid.
0x21
LDAP_ALREADY_EXISTS
The object already exists.
0x44
LDAP_ATTRIBUTE_OR_VALUE_EXISTS
The attribute exists or the value has been assigned.
0x14
LDAP_AUTH_METHOD_NOT_SUPPORTED
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.
0x07
LDAP_AUTH_UNKNOWN
Unknown authentication error occurred.
0x56
LDAP_BUSY
The server is busy.
0x33
LDAP_CLIENT_LOOP
Client loop was detected.
0x60
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.
0x05
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.
0x06
LDAP_CONFIDENTIALITY_REQUIRED
Confidentiality is required.
0x0d
LDAP_CONNECT_ERROR
Cannot establish the connection.
0x5b
LDAP_CONSTRAINT_VIOLATION
There was a constraint violation.
0x13
LDAP_CONTROL_NOT_FOUND
The LDAP function (ldap_parse_page_control, ldap_parse_sort_control, or ldap_parse_vlv_control) did not find the specified control.
0x5d
LDAP_DECODING_ERROR
Decoding error occurred.
0x54
LDAP_ENCODING_ERROR
Encoding error occurred.
0x53
LDAP_FILTER_ERROR
The search filter is bad.
0x57
LDAP_INAPPROPRIATE_AUTH
Authentication is inappropriate.
0x30
LDAP_INAPPROPRIATE_MATCHING
There was an inappropriate matching.
0x12
LDAP_INSUFFICIENT_RIGHTS
The user has insufficient access rights.
0x32
LDAP_INVALID_CREDENTIALS
The supplied credential is invalid.
0x31
LDAP_INVALID_DN_SYNTAX
The distinguished name has an invalid syntax.
0x22
LDAP_INVALID_SYNTAX
The syntax is invalid.
0x15
LDAP_IS_LEAF
The object is a leaf.
0x23
LDAP_LOCAL_ERROR
0x52
LDAP_LOOP_DETECT
The chain of referrals has looped back to a referring server.
0x36
LDAP_MORE_RESULTS_TO_RETURN
More results are to be returned.
0x5f
LDAP_NAMING_VIOLATION
There was a naming violation.
0x40
LDAP_NO_MEMORY
The system is out of memory.
0x5a
LDAP_NO_OBJECT_CLASS_MODS
Cannot modify object class.
0x45
LDAP_NO_RESULTS_RETURNED
Results are not returned.
0x5e
LDAP_NO_SUCH_ATTRIBUTE
Requested attribute does not exist.
0x10
LDAP_NO_SUCH_OBJECT
Object does not exist.
0x20
LDAP_NOT_ALLOWED_ON_NONLEAF
Operation is not allowed on a non leaf object.
0x42
LDAP_NOT_ALLOWED_ON_RDN
Operation is not allowed on RDN.
0x43
LDAP_NOT_SUPPORTED
The feature is not supported.
0x5c
LDAP_OBJECT_CLASS_VIOLATION
There was an object class violation.
0x41
LDAP_OPERATIONS_ERROR
Operations error occurred.
0x01
LDAP_OTHER
Unknown error occurred.
0x50
LDAP_PARAM_ERROR
A bad parameter was passed to a routine.
0x59
LDAP_PARTIAL_RESULTS
Partial results and referrals received.
0x09
LDAP_PROTOCOL_ERROR
Protocol error occurred.
0x02
LDAP_REFERRAL
A referral was returned from the server.
0x0a
LDAP_REFERRAL_LIMIT_EXCEEDED
The referral limit has been exceeded.
0x61
LDAP_REFERRAL_V2
A referral was returned from the server.
0x09
LDAP_RESULTS_TOO_LARGE
Results returned are too large.
0x46
LDAP_SERVER_DOWN
Cannot contact the LDAP server.
0x51
LDAP_SIZELIMIT_EXCEEDED
Size limit was exceeded.
0x04
LDAP_STRONG_AUTH_REQUIRED
Strong authentication is required.
0x08
LDAP_SUCCESS
The call completed successfully.
0x00
LDAP_TIMELIMIT_EXCEEDED
Time limit, set by the server side time limit parameter, was exceeded.
0x03
LDAP_TIMEOUT
The search was aborted due to exceeding the limit of the client side timeout parameter.
0x55
LDAP_UNAVAILABLE
The server is unavailable.
0x34
LDAP_UNAVAILABLE_CRIT_EXTENSION
The control is critical and the server does not support the control.
0x0c
LDAP_UNDEFINED_TYPE
Type is not defined.
0x11
LDAP_UNWILLING_TO_PERFORM
The server is not willing to handle directory requests.
0x35
LDAP_USER_CANCELLED
The user has cancelled the operation.
0x58
LDAP_VIRTUAL_LIST_VIEW_ERROR
0x4c