2 * WLDAP32 - LDAP support for Wine
4 * Copyright 2005 Hans Leidekker
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library 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 GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 * This is an internal version of winldap.h where constants, types and
21 * functions are prefixed with WLDAP32_ whenever they conflict with
26 WLDAP32_LDAP_SERVER_DOWN = 0x51,
27 WLDAP32_LDAP_LOCAL_ERROR = 0x52,
28 WLDAP32_LDAP_ENCODING_ERROR = 0x53,
29 WLDAP32_LDAP_DECODING_ERROR = 0x54,
30 WLDAP32_LDAP_TIMEOUT = 0x55,
31 WLDAP32_LDAP_AUTH_UNKNOWN = 0x56,
32 WLDAP32_LDAP_FILTER_ERROR = 0x57,
33 WLDAP32_LDAP_USER_CANCELLED = 0x58,
34 WLDAP32_LDAP_PARAM_ERROR = 0x59,
35 WLDAP32_LDAP_NO_MEMORY = 0x5a,
36 WLDAP32_LDAP_CONNECT_ERROR = 0x5b,
37 WLDAP32_LDAP_NOT_SUPPORTED = 0x5c,
38 WLDAP32_LDAP_NO_RESULTS_RETURNED = 0x5e,
39 WLDAP32_LDAP_CONTROL_NOT_FOUND = 0x5d,
40 WLDAP32_LDAP_MORE_RESULTS_TO_RETURN = 0x5f,
42 WLDAP32_LDAP_CLIENT_LOOP = 0x60,
43 WLDAP32_LDAP_REFERRAL_LIMIT_EXCEEDED = 0x61
46 typedef struct berelement
51 #define LDAP_OPT_THREAD_FN_PTRS 0x05
52 #define LDAP_OPT_REBIND_FN 0x06
53 #define LDAP_OPT_REBIND_ARG 0x07
54 #define LDAP_OPT_SSL 0x0a
55 #define LDAP_OPT_IO_FN_PTRS 0x0b
56 #define LDAP_OPT_CACHE_FN_PTRS 0x0d
57 #define LDAP_OPT_CACHE_STRATEGY 0x0e
58 #define LDAP_OPT_CACHE_ENABLE 0x0f
59 #define LDAP_OPT_REFERRAL_HOP_LIMIT 0x10
60 #define LDAP_OPT_VERSION 0x11
61 #define LDAP_OPT_SERVER_ERROR 0x33
62 #define LDAP_OPT_SERVER_EXT_ERROR 0x34
63 #define LDAP_OPT_PING_KEEP_ALIVE 0x36
64 #define LDAP_OPT_PING_WAIT_TIME 0x37
65 #define LDAP_OPT_PING_LIMIT 0x38
66 #define LDAP_OPT_DNSDOMAIN_NAME 0x3b
67 #define LDAP_OPT_GETDSNAME_FLAGS 0x3d
68 #define LDAP_OPT_HOST_REACHABLE 0x3e
69 #define LDAP_OPT_PROMPT_CREDENTIALS 0x3f
70 #define LDAP_OPT_TCP_KEEPALIVE 0x40
71 #define LDAP_OPT_FAST_CONCURRENT_BIND 0x41
72 #define LDAP_OPT_SEND_TIMEOUT 0x42
73 #define LDAP_OPT_REFERRAL_CALLBACK 0x70
74 #define LDAP_OPT_CLIENT_CERTIFICATE 0x80
75 #define LDAP_OPT_SERVER_CERTIFICATE 0x81
76 #define LDAP_OPT_AUTO_RECONNECT 0x91
77 #define LDAP_OPT_SSPI_FLAGS 0x92
78 #define LDAP_OPT_SSL_INFO 0x93
79 #define LDAP_OPT_REF_DEREF_CONN_PER_MSG 0x94
80 #define LDAP_OPT_TLS LDAP_OPT_SSL
81 #define LDAP_OPT_TLS_INFO LDAP_OPT_SSL_INFO
82 #define LDAP_OPT_SIGN 0x95
83 #define LDAP_OPT_ENCRYPT 0x96
84 #define LDAP_OPT_SASL_METHOD 0x97
85 #define LDAP_OPT_AREC_EXCLUSIVE 0x98
86 #define LDAP_OPT_SECURITY_CONTEXT 0x99
87 #define LDAP_OPT_ROOTDSE_CACHE 0x9a
101 UCHAR ld_lberoptions;
111 ULONG ld_cldaptimeout;
112 ULONG ld_refhoplimit;
114 } WLDAP32_LDAP, *WLDAP32_PLDAP;
116 typedef struct ldapmodA {
121 struct berval **modv_bvals;
123 } LDAPModA, *PLDAPModA;
125 typedef struct ldapmodW {
129 PWCHAR *modv_strvals;
130 struct berval **modv_bvals;
132 } LDAPModW, *PLDAPModW;
134 typedef struct l_timeval
138 } LDAP_TIMEVAL, *PLDAP_TIMEVAL;
140 typedef struct ldapmsg
147 struct ldapmsg *lm_chain;
148 struct ldapmsg *lm_next;
151 WLDAP32_PLDAP Connection;
157 BOOLEAN ConnectionReferenced;
158 } WLDAP32_LDAPMessage, *WLDAP32_PLDAPMessage;
160 #define LAPI_MAJOR_VER1 1
161 #define LAPI_MINOR_VER1 1
163 typedef struct ldap_version_info
168 } LDAP_VERSION_INFO, *PLDAP_VERSION_INFO;
170 typedef struct WLDAP32_berval
174 } LDAP_BERVAL, *PLDAP_BERVAL, BERVAL, *PBERVAL, WLDAP32_BerValue;
176 #define LDAP_PAGED_RESULT_OID_STRING "1.2.840.113556.1.4.319"
177 #define LDAP_PAGED_RESULT_OID_STRING_W (const WCHAR []){'1','.','2','.', \
178 '8','4','0','.','1','1','3','5','5','6','.','1','.','4','.','3','1','9',0}
180 typedef struct ldapcontrolA
183 struct WLDAP32_berval ldctl_value;
184 BOOLEAN ldctl_iscritical;
185 } LDAPControlA, *PLDAPControlA;
187 typedef struct ldapcontrolW
190 struct WLDAP32_berval ldctl_value;
191 BOOLEAN ldctl_iscritical;
192 } LDAPControlW, *PLDAPControlW;
194 typedef struct WLDAP32_ldapvlvinfo
197 ULONG ldvlv_before_count;
198 ULONG ldvlv_after_count;
201 PBERVAL ldvlv_attrvalue;
202 PBERVAL ldvlv_context;
203 VOID *ldvlv_extradata;
204 } WLDAP32_LDAPVLVInfo, *WLDAP32_PLDAPVLVInfo;
206 typedef struct ldapsearch LDAPSearch, *PLDAPSearch;
208 typedef struct ldapsortkeyA
211 PCHAR sk_matchruleoid;
212 BOOLEAN sk_reverseorder;
213 } LDAPSortKeyA, *PLDAPSortKeyA;
215 typedef struct ldapsortkeyW
218 PWCHAR sk_matchruleoid;
219 BOOLEAN sk_reverseorder;
220 } LDAPSortKeyW, *PLDAPSortKeyW;
222 typedef struct ldapapiinfoA
224 int ldapai_info_version;
225 int ldapai_api_version;
226 int ldapai_protocol_version;
227 char **ldapai_extensions;
228 char *ldapai_vendor_name;
229 int ldapai_vendor_version;
232 typedef struct ldapapiinfoW
234 int ldapai_info_version;
235 int ldapai_api_version;
236 int ldapai_protocol_version;
237 PWCHAR *ldapai_extensions;
238 PWCHAR ldapai_vendor_name;
239 int ldapai_vendor_version;
242 typedef struct ldap_apifeature_infoA
244 int ldapaif_info_version;
247 } LDAPAPIFeatureInfoA;
249 typedef struct ldap_apifeature_infoW
251 int ldapaif_info_version;
254 } LDAPAPIFeatureInfoW;
256 WLDAP32_LDAP *cldap_openA(PCHAR,ULONG);
257 WLDAP32_LDAP *cldap_openW(PWCHAR,ULONG);
258 ULONG WLDAP32_ldap_abandon(WLDAP32_LDAP*,ULONG);
259 ULONG ldap_addA(WLDAP32_LDAP*,PCHAR,LDAPModA*[]);
260 ULONG ldap_addW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[]);
261 ULONG ldap_add_extA(WLDAP32_LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
262 ULONG ldap_add_extW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
263 ULONG ldap_add_ext_sA(WLDAP32_LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
264 ULONG ldap_add_ext_sW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
265 ULONG ldap_add_sA(WLDAP32_LDAP*,PCHAR,LDAPModA*[]);
266 ULONG ldap_add_sW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[]);
267 ULONG ldap_bindA(WLDAP32_LDAP*,PCHAR,PCHAR,ULONG);
268 ULONG ldap_bindW(WLDAP32_LDAP*,PWCHAR,PWCHAR,ULONG);
269 ULONG ldap_bind_sA(WLDAP32_LDAP*,PCHAR,PCHAR,ULONG);
270 ULONG ldap_bind_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR,ULONG);
271 ULONG ldap_check_filterA(WLDAP32_LDAP*,PCHAR);
272 ULONG ldap_check_filterW(WLDAP32_LDAP*,PWCHAR);
273 ULONG ldap_cleanup(HANDLE);
274 ULONG ldap_close_extended_op(WLDAP32_LDAP*,ULONG);
275 ULONG ldap_compareA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR);
276 ULONG ldap_compareW(WLDAP32_LDAP*,PWCHAR,PWCHAR,PWCHAR);
277 ULONG ldap_compare_extA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR,struct WLDAP32_berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
278 ULONG ldap_compare_extW(WLDAP32_LDAP*,PWCHAR,PWCHAR,PWCHAR,struct WLDAP32_berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
279 ULONG ldap_compare_ext_sA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR,struct WLDAP32_berval*,PLDAPControlA*,PLDAPControlA*);
280 ULONG ldap_compare_ext_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR,PWCHAR,struct WLDAP32_berval*,PLDAPControlW*,PLDAPControlW*);
281 ULONG ldap_compare_sA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR);
282 ULONG ldap_compare_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR,PWCHAR);
283 ULONG ldap_connect(WLDAP32_LDAP*,LDAP_TIMEVAL*);
284 WLDAP32_LDAP *ldap_conn_from_msg(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
285 ULONG ldap_control_freeA(LDAPControlA*);
286 ULONG ldap_control_freeW(LDAPControlW*);
287 ULONG ldap_controls_freeA(LDAPControlA**);
288 ULONG ldap_controls_freeW(LDAPControlW**);
289 ULONG WLDAP32_ldap_count_entries(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
290 ULONG WLDAP32_ldap_count_references(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
291 ULONG ldap_count_valuesA(PCHAR*);
292 ULONG ldap_count_valuesW(PWCHAR*);
293 ULONG WLDAP32_ldap_count_values_len(PBERVAL*);
294 ULONG ldap_create_page_controlA(WLDAP32_PLDAP,ULONG,struct WLDAP32_berval*,UCHAR,PLDAPControlA*);
295 ULONG ldap_create_page_controlW(WLDAP32_PLDAP,ULONG,struct WLDAP32_berval*,UCHAR,PLDAPControlW*);
296 ULONG ldap_create_sort_controlA(WLDAP32_PLDAP,PLDAPSortKeyA*,UCHAR,PLDAPControlA*);
297 ULONG ldap_create_sort_controlW(WLDAP32_PLDAP,PLDAPSortKeyW*,UCHAR,PLDAPControlW*);
298 INT ldap_create_vlv_controlA(WLDAP32_LDAP*,WLDAP32_LDAPVLVInfo*,UCHAR,LDAPControlA**);
299 INT ldap_create_vlv_controlW(WLDAP32_LDAP*,WLDAP32_LDAPVLVInfo*,UCHAR,LDAPControlW**);
300 ULONG ldap_deleteA(WLDAP32_LDAP*,PCHAR);
301 ULONG ldap_deleteW(WLDAP32_LDAP*,PWCHAR);
302 ULONG ldap_delete_extA(WLDAP32_LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*,ULONG*);
303 ULONG ldap_delete_extW(WLDAP32_LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*,ULONG*);
304 ULONG ldap_delete_ext_sA(WLDAP32_LDAP*,PCHAR,PLDAPControlA*,PLDAPControlA*);
305 ULONG ldap_delete_ext_sW(WLDAP32_LDAP*,PWCHAR,PLDAPControlW*,PLDAPControlW*);
306 ULONG ldap_delete_sA(WLDAP32_LDAP*,PCHAR);
307 ULONG ldap_delete_sW(WLDAP32_LDAP*,PWCHAR);
308 PCHAR ldap_dn2ufnA(PCHAR);
309 PWCHAR ldap_dn2ufnW(PWCHAR);
310 ULONG ldap_encode_sort_controlA(WLDAP32_PLDAP,PLDAPSortKeyA*,PLDAPControlA,BOOLEAN);
311 ULONG ldap_encode_sort_controlW(WLDAP32_PLDAP,PLDAPSortKeyW*,PLDAPControlW,BOOLEAN);
312 PCHAR ldap_err2stringA(ULONG);
313 PWCHAR ldap_err2stringW(ULONG);
314 ULONG ldap_escape_filter_elementA(PCHAR,ULONG,PCHAR,ULONG);
315 ULONG ldap_escape_filter_elementW(PCHAR,ULONG,PWCHAR,ULONG);
316 PCHAR *ldap_explode_dnA(PCHAR,ULONG);
317 PWCHAR *ldap_explode_dnW(PWCHAR,ULONG);
318 ULONG ldap_extended_operationA(WLDAP32_LDAP*,PCHAR,struct WLDAP32_berval*,PLDAPControlA*,PLDAPControlA*,ULONG*);
319 ULONG ldap_extended_operationW(WLDAP32_LDAP*,PWCHAR,struct WLDAP32_berval*,PLDAPControlW*,PLDAPControlW*,ULONG*);
320 ULONG ldap_extended_operation_sA(WLDAP32_LDAP*,PCHAR,struct WLDAP32_berval*,PLDAPControlA*, PLDAPControlA*,
321 PCHAR*,struct WLDAP32_berval**);
322 ULONG ldap_extended_operation_sW(WLDAP32_LDAP*,PWCHAR,struct WLDAP32_berval*,PLDAPControlW*, PLDAPControlW*,
323 PWCHAR*,struct WLDAP32_berval**);
324 PCHAR ldap_first_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement**);
325 PWCHAR ldap_first_attributeW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement**);
326 WLDAP32_LDAPMessage *WLDAP32_ldap_first_entry(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
327 WLDAP32_LDAPMessage *WLDAP32_ldap_first_reference(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
328 ULONG ldap_free_controlsA(LDAPControlA**);
329 ULONG ldap_free_controlsW(LDAPControlW**);
330 PCHAR ldap_get_dnA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
331 PWCHAR ldap_get_dnW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
332 ULONG ldap_get_next_page(WLDAP32_LDAP*,PLDAPSearch,ULONG,ULONG*);
333 ULONG ldap_get_next_page_s(WLDAP32_LDAP*,PLDAPSearch,struct l_timeval*,ULONG,ULONG*,WLDAP32_LDAPMessage**);
334 ULONG ldap_get_optionA(WLDAP32_LDAP*,int,void*);
335 ULONG ldap_get_optionW(WLDAP32_LDAP*,int,void*);
336 ULONG ldap_get_paged_count(WLDAP32_LDAP*,PLDAPSearch,ULONG*,WLDAP32_LDAPMessage*);
337 PCHAR *ldap_get_valuesA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PCHAR);
338 PWCHAR *ldap_get_valuesW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PWCHAR);
339 PBERVAL *ldap_get_values_lenA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PCHAR);
340 PBERVAL *ldap_get_values_lenW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PWCHAR);
341 WLDAP32_LDAP *ldap_initA(const PCHAR,ULONG);
342 WLDAP32_LDAP *ldap_initW(const PWCHAR,ULONG);
343 void ldap_memfreeA(PCHAR);
344 void ldap_memfreeW(PWCHAR);
345 ULONG ldap_modifyA(WLDAP32_LDAP*,PCHAR,LDAPModA*[]);
346 ULONG ldap_modifyW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[]);
347 ULONG ldap_modify_extA(WLDAP32_LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*,ULONG*);
348 ULONG ldap_modify_extW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*,ULONG*);
349 ULONG ldap_modify_ext_sA(WLDAP32_LDAP*,PCHAR,LDAPModA*[],PLDAPControlA*,PLDAPControlA*);
350 ULONG ldap_modify_ext_sW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[],PLDAPControlW*,PLDAPControlW*);
351 ULONG ldap_modify_sA(WLDAP32_LDAP*,PCHAR,LDAPModA*[]);
352 ULONG ldap_modify_sW(WLDAP32_LDAP*,PWCHAR,LDAPModW*[]);
353 ULONG ldap_modrdnA(WLDAP32_LDAP*,PCHAR,PCHAR);
354 ULONG ldap_modrdnW(WLDAP32_LDAP*,PWCHAR,PWCHAR);
355 ULONG ldap_modrdn2A(WLDAP32_LDAP*,PCHAR,PCHAR,INT);
356 ULONG ldap_modrdn2W(WLDAP32_LDAP*,PWCHAR,PWCHAR,INT);
357 ULONG ldap_modrdn2_sA(WLDAP32_LDAP*,PCHAR,PCHAR,INT);
358 ULONG ldap_modrdn2_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR,INT);
359 ULONG ldap_modrdn_sA(WLDAP32_LDAP*,PCHAR,PCHAR);
360 ULONG ldap_modrdn_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR);
361 ULONG WLDAP32_ldap_msgfree(WLDAP32_LDAPMessage*);
362 PCHAR ldap_next_attributeA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement*);
363 PWCHAR ldap_next_attributeW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,WLDAP32_BerElement*);
364 WLDAP32_LDAPMessage *WLDAP32_ldap_next_entry(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
365 WLDAP32_LDAPMessage *WLDAP32_ldap_next_reference(WLDAP32_LDAP*,WLDAP32_LDAPMessage*);
366 WLDAP32_LDAP *ldap_openA(PCHAR,ULONG);
367 WLDAP32_LDAP *ldap_openW(PWCHAR,ULONG);
368 ULONG ldap_parse_extended_resultA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PCHAR*,struct WLDAP32_berval**,BOOLEAN);
369 ULONG ldap_parse_extended_resultW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PWCHAR*,struct WLDAP32_berval**,BOOLEAN);
370 ULONG ldap_parse_page_controlA(WLDAP32_LDAP*,PLDAPControlA*,ULONG*,struct WLDAP32_berval**);
371 ULONG ldap_parse_page_controlW(WLDAP32_LDAP*,PLDAPControlW*,ULONG*,struct WLDAP32_berval**);
372 ULONG ldap_parse_referenceA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PCHAR**);
373 ULONG ldap_parse_referenceW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,PWCHAR**);
374 ULONG ldap_parse_resultA(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,ULONG*,PCHAR*,PCHAR*,PCHAR**,PLDAPControlA**,BOOLEAN);
375 ULONG ldap_parse_resultW(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,ULONG*,PWCHAR*,PWCHAR*,PWCHAR**,PLDAPControlW**,BOOLEAN);
376 ULONG ldap_parse_sort_controlA(WLDAP32_LDAP*,PLDAPControlA*,ULONG*,PCHAR*);
377 ULONG ldap_parse_sort_controlW(WLDAP32_LDAP*,PLDAPControlW*,ULONG*,PWCHAR*);
378 int ldap_parse_vlv_controlA(WLDAP32_LDAP*,LDAPControlA**,ULONG*,ULONG*,struct WLDAP32_berval**,INT*);
379 int ldap_parse_vlv_controlW(WLDAP32_LDAP*,LDAPControlW**,ULONG*,ULONG*,struct WLDAP32_berval**,INT*);
380 void WLDAP32_ldap_perror(WLDAP32_LDAP*,const PCHAR);
381 ULONG ldap_rename_extA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*,ULONG*);
382 ULONG ldap_rename_extW(WLDAP32_LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*,ULONG*);
383 ULONG ldap_rename_ext_sA(WLDAP32_LDAP*,PCHAR,PCHAR,PCHAR,INT,PLDAPControlA*,PLDAPControlA*);
384 ULONG ldap_rename_ext_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR,PWCHAR,INT,PLDAPControlW*,PLDAPControlW*);
385 ULONG WLDAP32_ldap_result(WLDAP32_LDAP*,ULONG,ULONG,struct l_timeval*,WLDAP32_LDAPMessage**);
386 ULONG WLDAP32_ldap_result2error(WLDAP32_LDAP*,WLDAP32_LDAPMessage*,ULONG);
387 ULONG ldap_sasl_bindA(WLDAP32_LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,int*);
388 ULONG ldap_sasl_bindW(WLDAP32_LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,int*);
389 ULONG ldap_sasl_bind_sA(WLDAP32_LDAP*,const PCHAR,const PCHAR,const BERVAL*,PLDAPControlA*,PLDAPControlA*,PBERVAL*);
390 ULONG ldap_sasl_bind_sW(WLDAP32_LDAP*,const PWCHAR,const PWCHAR,const BERVAL*,PLDAPControlW*,PLDAPControlW*,PBERVAL*);
391 ULONG ldap_search_abandon_page(WLDAP32_PLDAP,PLDAPSearch);
392 ULONG ldap_searchA(WLDAP32_LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG);
393 ULONG ldap_searchW(WLDAP32_LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG);
394 ULONG ldap_search_extA(WLDAP32_LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
395 PLDAPControlA*,ULONG,ULONG,ULONG*);
396 ULONG ldap_search_extW(WLDAP32_LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
397 PLDAPControlW*,ULONG,ULONG,ULONG*);
398 ULONG ldap_search_ext_sA(WLDAP32_LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
399 PLDAPControlA*,struct l_timeval*,ULONG,WLDAP32_LDAPMessage**);
400 ULONG ldap_search_ext_sW(WLDAP32_LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
401 PLDAPControlW*,struct l_timeval*,ULONG,WLDAP32_LDAPMessage**);
402 PLDAPSearch ldap_search_init_pageA(WLDAP32_PLDAP,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,PLDAPControlA*,
403 PLDAPControlA*,ULONG,ULONG,PLDAPSortKeyA*);
404 PLDAPSearch ldap_search_init_pageW(WLDAP32_PLDAP,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,PLDAPControlW*,
405 PLDAPControlW*,ULONG,ULONG, PLDAPSortKeyW*);
406 ULONG ldap_search_sA(WLDAP32_LDAP*,PCHAR,ULONG,PCHAR,PCHAR[],ULONG,WLDAP32_LDAPMessage**);
407 ULONG ldap_search_sW(WLDAP32_LDAP*,PWCHAR,ULONG,PWCHAR,PWCHAR[],ULONG,WLDAP32_LDAPMessage**);
408 ULONG ldap_search_stA(WLDAP32_LDAP*,const PCHAR,ULONG,const PCHAR,PCHAR[],ULONG,
409 struct l_timeval*,WLDAP32_LDAPMessage**);
410 ULONG ldap_search_stW(WLDAP32_LDAP*,const PWCHAR,ULONG,const PWCHAR,PWCHAR[],ULONG,
411 struct l_timeval*,WLDAP32_LDAPMessage**);
412 ULONG ldap_set_optionA(WLDAP32_LDAP*,int,void*);
413 ULONG ldap_set_optionW(WLDAP32_LDAP*,int,void*);
414 ULONG ldap_simple_bindA(WLDAP32_LDAP*,PCHAR,PCHAR);
415 ULONG ldap_simple_bindW(WLDAP32_LDAP*,PWCHAR,PWCHAR);
416 ULONG ldap_simple_bind_sA(WLDAP32_LDAP*,PCHAR,PCHAR);
417 ULONG ldap_simple_bind_sW(WLDAP32_LDAP*,PWCHAR,PWCHAR);
418 WLDAP32_LDAP *ldap_sslinitA(PCHAR,ULONG,int);
419 WLDAP32_LDAP *ldap_sslinitW(PWCHAR,ULONG,int);
420 ULONG ldap_start_tls_sA(WLDAP32_PLDAP,PULONG,WLDAP32_LDAPMessage**,PLDAPControlA*,PLDAPControlA*);
421 ULONG ldap_start_tls_sW(WLDAP32_PLDAP,PULONG,WLDAP32_LDAPMessage**,PLDAPControlW*,PLDAPControlW*);
422 ULONG ldap_startup(PLDAP_VERSION_INFO,HANDLE*);
423 BOOLEAN ldap_stop_tls_s(WLDAP32_PLDAP);
424 ULONG ldap_ufn2dnA(PCHAR,PCHAR*);
425 ULONG ldap_ufn2dnW(PWCHAR,PWCHAR*);
426 ULONG WLDAP32_ldap_unbind(WLDAP32_LDAP*);
427 ULONG WLDAP32_ldap_unbind_s(WLDAP32_LDAP*);
428 ULONG ldap_value_freeA(PCHAR*);
429 ULONG ldap_value_freeW(PWCHAR*);
430 ULONG WLDAP32_ldap_value_free_len(struct WLDAP32_berval**);
432 ULONG LdapGetLastError(void);
433 ULONG LdapMapErrorToWin32(ULONG);
434 int LdapUnicodeToUTF8(LPCWSTR,int,LPSTR,int);
435 int LdapUTF8ToUnicode(LPCSTR,int,LPWSTR,int);