Remove unneeded initializations (we already talloc_zero).
[Samba.git] / libcli / ldap / ldap_errors.h
blobfa929c69364e80b95a2b4a864d1a10f2b4cdec8d
1 /*
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 #ifndef LDAP_SUCCESS
25 enum ldap_result_code {
26 LDAP_SUCCESS = 0,
27 LDAP_OPERATIONS_ERROR = 1,
28 LDAP_PROTOCOL_ERROR = 2,
29 LDAP_TIME_LIMIT_EXCEEDED = 3,
30 LDAP_SIZE_LIMIT_EXCEEDED = 4,
31 LDAP_COMPARE_FALSE = 5,
32 LDAP_COMPARE_TRUE = 6,
33 LDAP_AUTH_METHOD_NOT_SUPPORTED = 7,
34 LDAP_STRONG_AUTH_REQUIRED = 8,
35 LDAP_REFERRAL = 10,
36 LDAP_ADMIN_LIMIT_EXCEEDED = 11,
37 LDAP_UNAVAILABLE_CRITICAL_EXTENSION = 12,
38 LDAP_CONFIDENTIALITY_REQUIRED = 13,
39 LDAP_SASL_BIND_IN_PROGRESS = 14,
40 LDAP_NO_SUCH_ATTRIBUTE = 16,
41 LDAP_UNDEFINED_ATTRIBUTE_TYPE = 17,
42 LDAP_INAPPROPRIATE_MATCHING = 18,
43 LDAP_CONSTRAINT_VIOLATION = 19,
44 LDAP_ATTRIBUTE_OR_VALUE_EXISTS = 20,
45 LDAP_INVALID_ATTRIBUTE_SYNTAX = 21,
46 LDAP_NO_SUCH_OBJECT = 32,
47 LDAP_ALIAS_PROBLEM = 33,
48 LDAP_INVALID_DN_SYNTAX = 34,
49 LDAP_ALIAS_DEREFERENCING_PROBLEM = 36,
50 LDAP_INAPPROPRIATE_AUTHENTICATION = 48,
51 LDAP_INVALID_CREDENTIALS = 49,
52 LDAP_INSUFFICIENT_ACCESS_RIGHTS = 50,
53 LDAP_BUSY = 51,
54 LDAP_UNAVAILABLE = 52,
55 LDAP_UNWILLING_TO_PERFORM = 53,
56 LDAP_LOOP_DETECT = 54,
57 LDAP_NAMING_VIOLATION = 64,
58 LDAP_OBJECT_CLASS_VIOLATION = 65,
59 LDAP_NOT_ALLOWED_ON_NON_LEAF = 66,
60 LDAP_NOT_ALLOWED_ON_RDN = 67,
61 LDAP_ENTRY_ALREADY_EXISTS = 68,
62 LDAP_OBJECT_CLASS_MODS_PROHIBITED = 69,
63 LDAP_AFFECTS_MULTIPLE_DSAS = 71,
64 LDAP_OTHER = 80
66 #endif
68 #endif /* _SMB_LDAP_ERRORS_H_ */