2 Unix SMB/CIFS Implementation.
3 LDAP protocol helper functions for SAMBA
4 Copyright (C) Volker Lendecke 2004
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _SMB_LDAP_ERRORS_H_
22 #define _SMB_LDAP_ERRORS_H_
24 enum ldap_result_code
{
26 LDAP_OPERATIONS_ERROR
= 1,
27 LDAP_PROTOCOL_ERROR
= 2,
28 LDAP_TIME_LIMIT_EXCEEDED
= 3,
29 LDAP_SIZE_LIMIT_EXCEEDED
= 4,
30 LDAP_COMPARE_FALSE
= 5,
31 LDAP_COMPARE_TRUE
= 6,
32 LDAP_AUTH_METHOD_NOT_SUPPORTED
= 7,
33 LDAP_STRONG_AUTH_REQUIRED
= 8,
35 LDAP_ADMIN_LIMIT_EXCEEDED
= 11,
36 LDAP_UNAVAILABLE_CRITICAL_EXTENSION
= 12,
37 LDAP_CONFIDENTIALITY_REQUIRED
= 13,
38 LDAP_SASL_BIND_IN_PROGRESS
= 14,
39 LDAP_NO_SUCH_ATTRIBUTE
= 16,
40 LDAP_UNDEFINED_ATTRIBUTE_TYPE
= 17,
41 LDAP_INAPPROPRIATE_MATCHING
= 18,
42 LDAP_CONSTRAINT_VIOLATION
= 19,
43 LDAP_ATTRIBUTE_OR_VALUE_EXISTS
= 20,
44 LDAP_INVALID_ATTRIBUTE_SYNTAX
= 21,
45 LDAP_NO_SUCH_OBJECT
= 32,
46 LDAP_ALIAS_PROBLEM
= 33,
47 LDAP_INVALID_DN_SYNTAX
= 34,
48 LDAP_ALIAS_DEREFERENCING_PROBLEM
= 36,
49 LDAP_INAPPROPRIATE_AUTHENTICATION
= 48,
50 LDAP_INVALID_CREDENTIALS
= 49,
51 LDAP_INSUFFICIENT_ACCESS_RIGHTS
= 50,
53 LDAP_UNAVAILABLE
= 52,
54 LDAP_UNWILLING_TO_PERFORM
= 53,
55 LDAP_LOOP_DETECT
= 54,
56 LDAP_NAMING_VIOLATION
= 64,
57 LDAP_OBJECT_CLASS_VIOLATION
= 65,
58 LDAP_NOT_ALLOWED_ON_NON_LEAF
= 66,
59 LDAP_NOT_ALLOWED_ON_RDN
= 67,
60 LDAP_ENTRY_ALREADY_EXISTS
= 68,
61 LDAP_OBJECT_CLASS_MODS_PROHIBITED
= 69,
62 LDAP_AFFECTS_MULTIPLE_DSAS
= 71,
66 #endif /* _SMB_LDAP_ERRORS_H_ */