Ldap_success = 0 // success
Ldap_operations_error = 1 // operation Error
Ldap_protocol_error = 2 // Protocol Error
Ldap_time_limit_exceeded = 3 // exceeds the maximum time limit
Ldap_size_limit_exceeded = 4 // exceeds the maximum number of returned entries
Ldap_compare_false = 5 // The comparison does not match.
Ldap_compare_true = 6 // comparison matching
Ldap_auth_method_not_supported = 7 // The authentication method is not supported.
Ldap_strong_auth_required = 8 // strong authentication required
Ldap_partial_results = 9 // null
Ldap_referral = 10 // referral
Ldap_admin_limit_exceeded = 11 // The administrator privilege is exceeded.
Ldap_unavailable_critical_extension = 12 // The critical extension is invalid.
Ldap_confidentiality_required = 13 // confidentiality is required
Ldap_sasl_bind_in_progress = 14 // SASL binding required
Ldap_no_such_attribute = 16 // This attribute is not found
Ldap_undefined_attribute_type = 17 // undefined attribute type
Ldap_inappropriate_matching = 18 // inappropriate match
Ldap_constraint_violation = 19 // constraints conflict
Ldap_attribute_or_value_exists = 20 // the property or value already exists.
Ldap_invalid_attribute_syntax = 21 // invalid attribute syntax
Ldap_no_such_object = 32 // This object is not found
Ldap_alias_problem = 33 // the alias is incorrect.
Ldap_invalid_dn_syntax = 34 // invalid dn syntax
Ldap_is_leaf = 35 // null
Ldap_alias_dereferencing_problem = 36 // the alias dereference is incorrect.
Ldap_inappropriate_authentication = 48 // inappropriate Authentication
Ldap_invalid_credentials = 49 // invalid credential
Ldap_insufficient_access_rights = 50 // insufficient access permissions
Ldap_busy = 51 // busy
Ldap_unavailable = 52 // invalid
Ldap_unwilling_to_perform = 53 // unexpected problem
Ldap_loop_detect = 54 // an infinite loop is found.
Ldap_naming_violation = 64 // Name Conflict
Ldap_object_class_violation = 65 // object class conflict
Ldap_not_allowed_on_non_leaf = 66 // This operation cannot be performed on a non-leaf node.
Ldap_not_allowed_on_rdn = 67 // you cannot perform this operation on rdn.
Ldap_entry_already_exists = 68 // The entry already exists.
Ldap_object_class_mods_prohibited = 69 // The object class cannot be modified.
Ldap_affects_multiple_dsas = 71 // null
Ldap_other = 80 // others
Check for LDAP errors and keep the backup at the bottom.
From: http://hi.baidu.com/0pawpaw/blog/item/5e69f603d17c1bec09fa93c9.html