1pub mod results {
6 pub static LDAP_SUCCESS: i32 = 0x00;
7 pub static LDAP_OPERATIONS_ERROR: i32 = 0x01;
8 pub static LDAP_PROTOCOL_ERROR: i32 = 0x02;
9 pub static LDAP_TIMELIMIT_EXCEEDED: i32 = 0x03;
10 pub static LDAP_SIZELIMIT_EXCEEDED: i32 = 0x04;
11 pub static LDAP_COMPARE_FALSE: i32 = 0x05;
12 pub static LDAP_COMPARE_TRUE: i32 = 0x06;
13 pub static LDAP_AUTH_METHOD_NOT_SUPPORTED: i32 = 0x07;
14 pub static LDAP_STRONG_AUTH_NOT_SUPPORTED: i32 = 0x07;
15 pub static LDAP_STRONG_AUTH_REQUIRED: i32 = 0x08;
16 pub static LDAP_STRONGER_AUTH_REQUIRED: i32 = 0x08;
17 pub static LDAP_PARTIAL_RESULTS: i32 = 0x09;
18
19 pub static LDAP_REFERRAL: i32 = 0x0a;
20 pub static LDAP_ADMINLIMIT_EXCEEDED: i32 = 0x0b;
21 pub static LDAP_UNAVAILABLE_CRITICAL_EXTENSION: i32 = 0x0c;
22 pub static LDAP_CONFIDENTIALITY_REQUIRED: i32 = 0x0d;
23 pub static LDAP_SASL_BIND_IN_PROGRESS: i32 = 0x0e;
24
25 pub static LDAP_NO_SUCH_ATTRIBUTE: i32 = 0x10;
26 pub static LDAP_UNDEFINED_TYPE: i32 = 0x11;
27 pub static LDAP_INAPPROPRIATE_MATCHING: i32 = 0x12;
28 pub static LDAP_CONSTRAINT_VIOLATION: i32 = 0x13;
29 pub static LDAP_TYPE_OR_VALUE_EXISTS: i32 = 0x14;
30 pub static LDAP_INVALID_SYNTAX: i32 = 0x15;
31
32 pub static LDAP_NO_SUCH_OBJECT: i32 = 0x20;
33 pub static LDAP_ALIAS_PROBLEM: i32 = 0x21;
34 pub static LDAP_INVALID_DN_SYNTAX: i32 = 0x22;
35 pub static LDAP_IS_LEAF: i32 = 0x23;
36 pub static LDAP_ALIAS_DEREF_PROBLEM: i32 = 0x24;
37
38 pub static LDAP_X_PROXY_AUTHZ_FAILURE: i32 = 0x2f;
39 pub static LDAP_INAPPROPRIATE_AUTH: i32 = 0x30;
40 pub static LDAP_INVALID_CREDENTIALS: i32 = 0x31;
41 pub static LDAP_INSUFFICIENT_ACCESS: i32 = 0x32;
42
43 pub static LDAP_BUSY: i32 = 0x33;
44 pub static LDAP_UNAVAILABLE: i32 = 0x34;
45 pub static LDAP_UNWILLING_TO_PERFORM: i32 = 0x35;
46 pub static LDAP_LOOP_DETECT: i32 = 0x36;
47
48 pub static LDAP_NAMING_VIOLATION: i32 = 0x40;
49 pub static LDAP_OBJECT_CLASS_VIOLATION: i32 = 0x41;
50 pub static LDAP_NOT_ALLOWED_ON_NONLEAF: i32 = 0x42;
51 pub static LDAP_NOT_ALLOWED_ON_RDN: i32 = 0x43;
52 pub static LDAP_ALREADY_EXISTS: i32 = 0x44;
53 pub static LDAP_NO_OBJECT_CLASS_MODS: i32 = 0x45;
54 pub static LDAP_RESULTS_TOO_LARGE: i32 = 0x46;
55 pub static LDAP_AFFECTS_MULTIPLE_DSAS: i32 = 0x47;
56
57 pub static LDAP_VLV_ERROR: i32 = 0x4c;
58
59 pub static LDAP_OTHER: i32 = 0x50;
60}
61
62pub mod errors {
63 pub static LDAP_SERVER_DOWN: i32 = -1;
65 pub static LDAP_LOCAL_ERROR: i32 = -2;
66 pub static LDAP_ENCODING_ERROR: i32 = -3;
67 pub static LDAP_DECODING_ERROR: i32 = -4;
68 pub static LDAP_TIMEOUT: i32 = -5;
69 pub static LDAP_AUTH_UNKNOWN: i32 = -6;
70 pub static LDAP_FILTER_ERROR: i32 = -7;
71 pub static LDAP_USER_CANCELLED: i32 = -8;
72 pub static LDAP_PARAM_ERROR: i32 = -9;
73 pub static LDAP_NO_MEMORY: i32 = -10;
74 pub static LDAP_CONNECT_ERROR: i32 = -11;
75 pub static LDAP_NOT_SUPPORTED: i32 = -12;
76 pub static LDAP_CONTROL_NOT_FOUND: i32 = -13;
77 pub static LDAP_NO_RESULTS_RETURNED: i32 = -14;
78 pub static LDAP_MORE_RESULTS_TO_RETURN: i32 = -15; pub static LDAP_CLIENT_LOOP: i32 = -16;
80 pub static LDAP_REFERRAL_LIMIT_EXCEEDED: i32 = -17;
81 pub static LDAP_X_CONNECTING: i32 = -18;
82}
83
84pub mod filters {
85 pub static LDAP_FILTER_AND: u32 = 0xa0;
86 pub static LDAP_FILTER_OR: u32 = 0xa1;
87 pub static LDAP_FILTER_NOT: u32 = 0xa2;
88 pub static LDAP_FILTER_EQUALITY: u32 = 0xa3;
89 pub static LDAP_FILTER_SUBSTRINGS: u32 = 0xa4;
90 pub static LDAP_FILTER_GE: u32 = 0xa5;
91 pub static LDAP_FILTER_LE: u32 = 0xa6;
92 pub static LDAP_FILTER_PRESENT: u32 = 0x87;
93 pub static LDAP_FILTER_APPROX: u32 = 0xa8;
94 pub static LDAP_FILTER_EXT: u32 = 0xa9;
95
96 pub static LDAP_FILTER_EXT_OID: u32 = 0x81;
97 pub static LDAP_FILTER_EXT_TYPE: u32 = 0x82;
98 pub static LDAP_FILTER_EXT_VALUE: u32 = 0x83;
99 pub static LDAP_FILTER_EXT_DNATTRS: u32 = 0x84;
100
101 pub static LDAP_SUBSTRING_INITIAL: u32 = 0x80;
102 pub static LDAP_SUBSTRING_ANY: u32 = 0x81;
103 pub static LDAP_SUBSTRING_FINAL: u32 = 0x82;
104}
105
106pub mod scopes {
107 pub static LDAP_SCOPE_BASE: i32 = 0x0000;
108 pub static LDAP_SCOPE_BASEOBJECT: i32 = 0x0000;
109 pub static LDAP_SCOPE_ONELEVEL: i32 = 0x0001;
110 pub static LDAP_SCOPE_ONE: i32 = 0x0001;
111 pub static LDAP_SCOPE_SUBTREE: i32 = 0x0002;
112 pub static LDAP_SCOPE_SUB: i32 = 0x0002;
113 pub static LDAP_SCOPE_SUBORDINATE: i32 = 0x0003;
114 pub static LDAP_SCOPE_CHILDREN: i32 = 0x0003;
115 pub static LDAP_SCOPE_DEFAULT: i32 = -1;
116}
117
118pub mod versions {
119 pub static LDAP_VERSION1: i32 = 1;
120 pub static LDAP_VERSION2: i32 = 2;
121 pub static LDAP_VERSION3: i32 = 3;
122}
123
124pub mod options {
125 pub static LDAP_OPT_API_INFO: i32 = 0x0000;
126 pub static LDAP_OPT_DESC: i32 = 0x0001;
127 pub static LDAP_OPT_DEREF: i32 = 0x0002;
128 pub static LDAP_OPT_SIZELIMIT: i32 = 0x0003;
129 pub static LDAP_OPT_TIMELIMIT: i32 = 0x0004;
130 pub static LDAP_OPT_REFERRALS: i32 = 0x0008;
132 pub static LDAP_OPT_RESTART: i32 = 0x0009;
133 pub static LDAP_OPT_PROTOCOL_VERSION: i32 = 0x0011;
135 pub static LDAP_OPT_SERVER_CONTROLS: i32 = 0x0012;
136 pub static LDAP_OPT_CLIENT_CONTROLS: i32 = 0x0013;
137 pub static LDAP_OPT_API_FEATURE_INFO: i32 = 0x0015;
139 pub static LDAP_OPT_HOST_NAME: i32 = 0x0030;
141 pub static LDAP_OPT_RESULT_CODE: i32 = 0x0031;
142 pub static LDAP_OPT_ERROR_NUMBER: i32 = 0x0031;
143 pub static LDAP_OPT_DIAGNOSTIC_MESSAGE: i32 = 0x0032;
144 pub static LDAP_OPT_ERROR_STRING: i32 = 0x0032;
145 pub static LDAP_OPT_MATCHED_DN: i32 = 0x0033;
146 pub static LDAP_OPT_SSPI_FLAGS: i32 = 0x0092;
148 pub static LDAP_OPT_SIGN: i32 = 0x0095;
149 pub static LDAP_OPT_ENCRYPT: i32 = 0x0096;
150 pub static LDAP_OPT_SASL_METHOD: i32 = 0x0097;
151 pub static LDAP_OPT_SECURITY_CONTEXT: i32 = 0x0099;
152
153 pub static LDAP_OPT_API_EXTENSION_BASE: i32 = 0x4000;
154
155 pub static LDAP_OPT_X_TLS_CACERTDIR: i32 = 0x6003;
156 pub static LDAP_OPT_X_TLS_CACERTFILE: i32 = 0x6002;
157 pub static LDAP_OPT_X_TLS_CERTFILE: i32 = 0x6004;
158 pub static LDAP_OPT_X_TLS_KEYFILE: i32 = 0x6005;
159 pub static LDAP_OPT_X_TLS_NEWCTX: i32 = 0x600f;
160 pub static LDAP_OPT_X_TLS_REQUIRE_CERT: i32 = 0x6006;
161
162 pub static LDAP_OPT_X_TLS_NEVER: i32 = 0x0000;
163 pub static LDAP_OPT_X_TLS_HARD: i32 = 0x0001;
164 pub static LDAP_OPT_X_TLS_DEMAND: i32 = 0x0002;
165 pub static LDAP_OPT_X_TLS_ALLOW: i32 = 0x0003;
166 pub static LDAP_OPT_X_TLS_TRY: i32 = 0x0004;
167}