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_SUCCESS
= 0x00,
27 WLDAP32_LDAP_UNWILLING_TO_PERFORM
= 0x35,
28 WLDAP32_LDAP_SERVER_DOWN
= 0x51,
29 WLDAP32_LDAP_LOCAL_ERROR
= 0x52,
30 WLDAP32_LDAP_ENCODING_ERROR
= 0x53,
31 WLDAP32_LDAP_DECODING_ERROR
= 0x54,
32 WLDAP32_LDAP_TIMEOUT
= 0x55,
33 WLDAP32_LDAP_AUTH_UNKNOWN
= 0x56,
34 WLDAP32_LDAP_FILTER_ERROR
= 0x57,
35 WLDAP32_LDAP_USER_CANCELLED
= 0x58,
36 WLDAP32_LDAP_PARAM_ERROR
= 0x59,
37 WLDAP32_LDAP_NO_MEMORY
= 0x5a,
38 WLDAP32_LDAP_CONNECT_ERROR
= 0x5b,
39 WLDAP32_LDAP_NOT_SUPPORTED
= 0x5c,
40 WLDAP32_LDAP_NO_RESULTS_RETURNED
= 0x5e,
41 WLDAP32_LDAP_CONTROL_NOT_FOUND
= 0x5d,
42 WLDAP32_LDAP_MORE_RESULTS_TO_RETURN
= 0x5f,
44 WLDAP32_LDAP_CLIENT_LOOP
= 0x60,
45 WLDAP32_LDAP_REFERRAL_LIMIT_EXCEEDED
= 0x61
48 typedef struct berelement
53 #define WLDAP32_LDAP_OPT_API_INFO 0x00
54 #define WLDAP32_LDAP_OPT_DESC 0x01
55 #define WLDAP32_LDAP_OPT_DEREF 0x02
56 #define WLDAP32_LDAP_OPT_SIZELIMIT 0x03
57 #define WLDAP32_LDAP_OPT_TIMELIMIT 0x04
58 #define WLDAP32_LDAP_OPT_THREAD_FN_PTRS 0x05
59 #define WLDAP32_LDAP_OPT_REBIND_FN 0x06
60 #define WLDAP32_LDAP_OPT_REBIND_ARG 0x07
61 #define WLDAP32_LDAP_OPT_REFERRALS 0x08
62 #define WLDAP32_LDAP_OPT_RESTART 0x09
63 #define WLDAP32_LDAP_OPT_SSL 0x0a
64 #define WLDAP32_LDAP_OPT_IO_FN_PTRS 0x0b
65 #define WLDAP32_LDAP_OPT_CACHE_FN_PTRS 0x0d
66 #define WLDAP32_LDAP_OPT_CACHE_STRATEGY 0x0e
67 #define WLDAP32_LDAP_OPT_CACHE_ENABLE 0x0f
68 #define WLDAP32_LDAP_OPT_REFERRAL_HOP_LIMIT 0x10
69 #define WLDAP32_LDAP_OPT_VERSION 0x11
70 #define WLDAP32_LDAP_OPT_PROTOCOL_VERSION WLDAP32_LDAP_OPT_VERSION
71 #define WLDAP32_LDAP_OPT_SERVER_CONTROLS 0x12
72 #define WLDAP32_LDAP_OPT_API_FEATURE_INFO 0x15
73 #define WLDAP32_LDAP_OPT_HOST_NAME 0x30
74 #define WLDAP32_LDAP_OPT_ERROR_NUMBER 0x31
75 #define WLDAP32_LDAP_OPT_ERROR_STRING 0x32
76 #define WLDAP32_LDAP_OPT_SERVER_ERROR 0x33
77 #define WLDAP32_LDAP_OPT_SERVER_EXT_ERROR 0x34
78 #define WLDAP32_LDAP_OPT_PING_KEEP_ALIVE 0x36
79 #define WLDAP32_LDAP_OPT_PING_WAIT_TIME 0x37
80 #define WLDAP32_LDAP_OPT_PING_LIMIT 0x38
81 #define WLDAP32_LDAP_OPT_DNSDOMAIN_NAME 0x3b
82 #define WLDAP32_LDAP_OPT_GETDSNAME_FLAGS 0x3d
83 #define WLDAP32_LDAP_OPT_HOST_REACHABLE 0x3e
84 #define WLDAP32_LDAP_OPT_PROMPT_CREDENTIALS 0x3f
85 #define WLDAP32_LDAP_OPT_TCP_KEEPALIVE 0x40
86 #define WLDAP32_LDAP_OPT_FAST_CONCURRENT_BIND 0x41
87 #define WLDAP32_LDAP_OPT_SEND_TIMEOUT 0x42
88 #define WLDAP32_LDAP_OPT_REFERRAL_CALLBACK 0x70
89 #define WLDAP32_LDAP_OPT_CLIENT_CERTIFICATE 0x80
90 #define WLDAP32_LDAP_OPT_SERVER_CERTIFICATE 0x81
91 #define WLDAP32_LDAP_OPT_AUTO_RECONNECT 0x91
92 #define WLDAP32_LDAP_OPT_SSPI_FLAGS 0x92
93 #define WLDAP32_LDAP_OPT_SSL_INFO 0x93
94 #define WLDAP32_LDAP_OPT_REF_DEREF_CONN_PER_MSG 0x94
95 #define WLDAP32_LDAP_OPT_TLS WLDAP32_LDAP_OPT_SSL
96 #define WLDAP32_LDAP_OPT_TLS_INFO WLDAP32_LDAP_OPT_SSL_INFO
97 #define WLDAP32_LDAP_OPT_SIGN 0x95
98 #define WLDAP32_LDAP_OPT_ENCRYPT 0x96
99 #define WLDAP32_LDAP_OPT_SASL_METHOD 0x97
100 #define WLDAP32_LDAP_OPT_AREC_EXCLUSIVE 0x98
101 #define WLDAP32_LDAP_OPT_SECURITY_CONTEXT 0x99
102 #define WLDAP32_LDAP_OPT_ROOTDSE_CACHE 0x9a
104 #define WLDAP32_LDAP_AUTH_NEGOTIATE 0x486
106 typedef struct wldap32
121 UCHAR ld_lberoptions
;
131 ULONG ld_cldaptimeout
;
132 ULONG ld_refhoplimit
;
134 struct berval
**ld_server_ctrls
;
135 } WLDAP32_LDAP
, *WLDAP32_PLDAP
;
137 typedef struct ldapmodA
{
142 struct berval
**modv_bvals
;
144 } LDAPModA
, *PLDAPModA
;
146 typedef struct ldapmodW
{
150 PWCHAR
*modv_strvals
;
151 struct berval
**modv_bvals
;
153 } LDAPModW
, *PLDAPModW
;
155 typedef struct l_timeval
159 } LDAP_TIMEVAL
, *PLDAP_TIMEVAL
;
161 typedef struct ldapmsg
168 struct ldapmsg
*lm_chain
;
169 struct ldapmsg
*lm_next
;
172 WLDAP32_PLDAP Connection
;
178 BOOLEAN ConnectionReferenced
;
179 } WLDAP32_LDAPMessage
, *WLDAP32_PLDAPMessage
;
181 #define LAPI_MAJOR_VER1 1
182 #define LAPI_MINOR_VER1 1
184 typedef struct ldap_version_info
189 } LDAP_VERSION_INFO
, *PLDAP_VERSION_INFO
;
191 typedef struct WLDAP32_berval
195 } LDAP_BERVAL
, *PLDAP_BERVAL
, BERVAL
, *PBERVAL
, WLDAP32_BerValue
;
197 #define LDAP_PAGED_RESULT_OID_STRING "1.2.840.113556.1.4.319"
198 #define LDAP_SERVER_RESP_SORT_OID "1.2.840.113556.1.4.474"
199 #define LDAP_CONTROL_VLVRESPONSE "2.16.840.1.113730.3.4.10"
201 #if defined(_MSC_VER) || defined(__MINGW32__)
202 #define LDAP_PAGED_RESULT_OID_STRING_W L"1.2.840.113556.1.4.319"
203 #define LDAP_SERVER_RESP_SORT_OID_W L"1.2.840.113556.1.4.474"
204 #define LDAP_CONTROL_VLVRESPONSE_W L"2.16.840.1.113730.3.4.10"
206 static const WCHAR LDAP_PAGED_RESULT_OID_STRING_W
[] = {'1','.','2','.','8','4','0','.','1','1','3','5','5','6','.','1','.','4','.','3','1','9',0};
207 static const WCHAR LDAP_SERVER_RESP_SORT_OID_W
[] = {'1','.','2','.','8','4','0','.','1','1','3','5','5','6','.','1','.','4','.','4','7','4',0};
208 static const WCHAR LDAP_CONTROL_VLVRESPONSE_W
[] = {'2','.','1','6','.','8','4','0','.','1','.','1','1','3','7','3','0','.','3','.','4','.','1','0',0};
211 typedef struct ldapcontrolA
214 struct WLDAP32_berval ldctl_value
;
215 BOOLEAN ldctl_iscritical
;
216 } LDAPControlA
, *PLDAPControlA
;
218 typedef struct ldapcontrolW
221 struct WLDAP32_berval ldctl_value
;
222 BOOLEAN ldctl_iscritical
;
223 } LDAPControlW
, *PLDAPControlW
;
225 typedef struct WLDAP32_ldapvlvinfo
228 ULONG ldvlv_before_count
;
229 ULONG ldvlv_after_count
;
232 PBERVAL ldvlv_attrvalue
;
233 PBERVAL ldvlv_context
;
234 VOID
*ldvlv_extradata
;
235 } WLDAP32_LDAPVLVInfo
, *WLDAP32_PLDAPVLVInfo
;
237 typedef struct ldapsearch
239 WCHAR
*dn
, *filter
, **attrs
;
240 ULONG scope
, attrsonly
;
241 LDAPControlW
**serverctrls
;
242 LDAPControlW
**clientctrls
;
243 struct l_timeval timeout
;
245 struct berval
*cookie
;
246 } LDAPSearch
, *PLDAPSearch
;
248 typedef struct ldapsortkeyA
251 PCHAR sk_matchruleoid
;
252 BOOLEAN sk_reverseorder
;
253 } LDAPSortKeyA
, *PLDAPSortKeyA
;
255 typedef struct ldapsortkeyW
258 PWCHAR sk_matchruleoid
;
259 BOOLEAN sk_reverseorder
;
260 } LDAPSortKeyW
, *PLDAPSortKeyW
;
262 typedef struct ldapapiinfoA
264 int ldapai_info_version
;
265 int ldapai_api_version
;
266 int ldapai_protocol_version
;
267 char **ldapai_extensions
;
268 char *ldapai_vendor_name
;
269 int ldapai_vendor_version
;
272 typedef struct ldapapiinfoW
274 int ldapai_info_version
;
275 int ldapai_api_version
;
276 int ldapai_protocol_version
;
277 PWCHAR
*ldapai_extensions
;
278 PWCHAR ldapai_vendor_name
;
279 int ldapai_vendor_version
;
282 typedef struct ldap_apifeature_infoA
284 int ldapaif_info_version
;
287 } LDAPAPIFeatureInfoA
;
289 typedef struct ldap_apifeature_infoW
291 int ldapaif_info_version
;
294 } LDAPAPIFeatureInfoW
;
296 WLDAP32_LDAP
* CDECL
cldap_openA(PCHAR
,ULONG
);
297 WLDAP32_LDAP
* CDECL
cldap_openW(PWCHAR
,ULONG
);
298 ULONG CDECL
WLDAP32_ldap_abandon(WLDAP32_LDAP
*,ULONG
);
299 ULONG CDECL
ldap_addA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[]);
300 ULONG CDECL
ldap_addW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[]);
301 ULONG CDECL
ldap_add_extA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[],PLDAPControlA
*,PLDAPControlA
*,ULONG
*);
302 ULONG CDECL
ldap_add_extW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[],PLDAPControlW
*,PLDAPControlW
*,ULONG
*);
303 ULONG CDECL
ldap_add_ext_sA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[],PLDAPControlA
*,PLDAPControlA
*);
304 ULONG CDECL
ldap_add_ext_sW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[],PLDAPControlW
*,PLDAPControlW
*);
305 ULONG CDECL
ldap_add_sA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[]);
306 ULONG CDECL
ldap_add_sW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[]);
307 ULONG CDECL
ldap_bindA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,ULONG
);
308 ULONG CDECL
ldap_bindW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,ULONG
);
309 ULONG CDECL
ldap_bind_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,ULONG
);
310 ULONG CDECL
ldap_bind_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,ULONG
);
311 ULONG CDECL
ldap_check_filterA(WLDAP32_LDAP
*,PCHAR
);
312 ULONG CDECL
ldap_check_filterW(WLDAP32_LDAP
*,PWCHAR
);
313 ULONG CDECL
ldap_cleanup(HANDLE
);
314 ULONG CDECL
ldap_close_extended_op(WLDAP32_LDAP
*,ULONG
);
315 ULONG CDECL
ldap_compareA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,PCHAR
);
316 ULONG CDECL
ldap_compareW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,PWCHAR
);
317 ULONG CDECL
ldap_compare_extA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,PCHAR
,struct WLDAP32_berval
*,PLDAPControlA
*,PLDAPControlA
*,ULONG
*);
318 ULONG CDECL
ldap_compare_extW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,PWCHAR
,struct WLDAP32_berval
*,PLDAPControlW
*,PLDAPControlW
*,ULONG
*);
319 ULONG CDECL
ldap_compare_ext_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,PCHAR
,struct WLDAP32_berval
*,PLDAPControlA
*,PLDAPControlA
*);
320 ULONG CDECL
ldap_compare_ext_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,PWCHAR
,struct WLDAP32_berval
*,PLDAPControlW
*,PLDAPControlW
*);
321 ULONG CDECL
ldap_compare_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,PCHAR
);
322 ULONG CDECL
ldap_compare_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,PWCHAR
);
323 ULONG CDECL
ldap_connect(WLDAP32_LDAP
*,LDAP_TIMEVAL
*);
324 WLDAP32_LDAP
* CDECL
ldap_conn_from_msg(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
325 ULONG CDECL
ldap_control_freeA(LDAPControlA
*);
326 ULONG CDECL
ldap_control_freeW(LDAPControlW
*);
327 ULONG CDECL
ldap_controls_freeA(LDAPControlA
**);
328 ULONG CDECL
ldap_controls_freeW(LDAPControlW
**);
329 ULONG CDECL
WLDAP32_ldap_count_entries(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
330 ULONG CDECL
WLDAP32_ldap_count_references(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
331 ULONG CDECL
ldap_count_valuesA(PCHAR
*);
332 ULONG CDECL
ldap_count_valuesW(PWCHAR
*);
333 ULONG CDECL
WLDAP32_ldap_count_values_len(PBERVAL
*);
334 ULONG CDECL
ldap_create_page_controlA(WLDAP32_PLDAP
,ULONG
,struct WLDAP32_berval
*,UCHAR
,PLDAPControlA
*);
335 ULONG CDECL
ldap_create_page_controlW(WLDAP32_PLDAP
,ULONG
,struct WLDAP32_berval
*,UCHAR
,PLDAPControlW
*);
336 ULONG CDECL
ldap_create_sort_controlA(WLDAP32_PLDAP
,PLDAPSortKeyA
*,UCHAR
,PLDAPControlA
*);
337 ULONG CDECL
ldap_create_sort_controlW(WLDAP32_PLDAP
,PLDAPSortKeyW
*,UCHAR
,PLDAPControlW
*);
338 INT CDECL
ldap_create_vlv_controlA(WLDAP32_LDAP
*,WLDAP32_LDAPVLVInfo
*,UCHAR
,LDAPControlA
**);
339 INT CDECL
ldap_create_vlv_controlW(WLDAP32_LDAP
*,WLDAP32_LDAPVLVInfo
*,UCHAR
,LDAPControlW
**);
340 ULONG CDECL
ldap_deleteA(WLDAP32_LDAP
*,PCHAR
);
341 ULONG CDECL
ldap_deleteW(WLDAP32_LDAP
*,PWCHAR
);
342 ULONG CDECL
ldap_delete_extA(WLDAP32_LDAP
*,PCHAR
,PLDAPControlA
*,PLDAPControlA
*,ULONG
*);
343 ULONG CDECL
ldap_delete_extW(WLDAP32_LDAP
*,PWCHAR
,PLDAPControlW
*,PLDAPControlW
*,ULONG
*);
344 ULONG CDECL
ldap_delete_ext_sA(WLDAP32_LDAP
*,PCHAR
,PLDAPControlA
*,PLDAPControlA
*);
345 ULONG CDECL
ldap_delete_ext_sW(WLDAP32_LDAP
*,PWCHAR
,PLDAPControlW
*,PLDAPControlW
*);
346 ULONG CDECL
ldap_delete_sA(WLDAP32_LDAP
*,PCHAR
);
347 ULONG CDECL
ldap_delete_sW(WLDAP32_LDAP
*,PWCHAR
);
348 PCHAR CDECL
ldap_dn2ufnA(PCHAR
);
349 PWCHAR CDECL
ldap_dn2ufnW(PWCHAR
);
350 ULONG CDECL
ldap_encode_sort_controlA(WLDAP32_PLDAP
,PLDAPSortKeyA
*,PLDAPControlA
,BOOLEAN
);
351 ULONG CDECL
ldap_encode_sort_controlW(WLDAP32_PLDAP
,PLDAPSortKeyW
*,PLDAPControlW
,BOOLEAN
);
352 PCHAR CDECL
ldap_err2stringA(ULONG
);
353 PWCHAR CDECL
ldap_err2stringW(ULONG
);
354 ULONG CDECL
ldap_escape_filter_elementA(PCHAR
,ULONG
,PCHAR
,ULONG
);
355 ULONG CDECL
ldap_escape_filter_elementW(PCHAR
,ULONG
,PWCHAR
,ULONG
);
356 PCHAR
* CDECL
ldap_explode_dnA(PCHAR
,ULONG
);
357 PWCHAR
* CDECL
ldap_explode_dnW(PWCHAR
,ULONG
);
358 ULONG CDECL
ldap_extended_operationA(WLDAP32_LDAP
*,PCHAR
,struct WLDAP32_berval
*,PLDAPControlA
*,PLDAPControlA
*,ULONG
*);
359 ULONG CDECL
ldap_extended_operationW(WLDAP32_LDAP
*,PWCHAR
,struct WLDAP32_berval
*,PLDAPControlW
*,PLDAPControlW
*,ULONG
*);
360 ULONG CDECL
ldap_extended_operation_sA(WLDAP32_LDAP
*,PCHAR
,struct WLDAP32_berval
*,PLDAPControlA
*, PLDAPControlA
*,
361 PCHAR
*,struct WLDAP32_berval
**);
362 ULONG CDECL
ldap_extended_operation_sW(WLDAP32_LDAP
*,PWCHAR
,struct WLDAP32_berval
*,PLDAPControlW
*, PLDAPControlW
*,
363 PWCHAR
*,struct WLDAP32_berval
**);
364 PCHAR CDECL
ldap_first_attributeA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,WLDAP32_BerElement
**);
365 PWCHAR CDECL
ldap_first_attributeW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,WLDAP32_BerElement
**);
366 WLDAP32_LDAPMessage
* CDECL
WLDAP32_ldap_first_entry(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
367 WLDAP32_LDAPMessage
* CDECL
WLDAP32_ldap_first_reference(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
368 ULONG CDECL
ldap_free_controlsA(LDAPControlA
**);
369 ULONG CDECL
ldap_free_controlsW(LDAPControlW
**);
370 PCHAR CDECL
ldap_get_dnA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
371 PWCHAR CDECL
ldap_get_dnW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
372 ULONG CDECL
ldap_get_next_page(WLDAP32_LDAP
*,PLDAPSearch
,ULONG
,ULONG
*);
373 ULONG CDECL
ldap_get_next_page_s(WLDAP32_LDAP
*,PLDAPSearch
,struct l_timeval
*,ULONG
,ULONG
*,WLDAP32_LDAPMessage
**);
374 ULONG CDECL
ldap_get_optionA(WLDAP32_LDAP
*,int,void*);
375 ULONG CDECL
ldap_get_optionW(WLDAP32_LDAP
*,int,void*);
376 ULONG CDECL
ldap_get_paged_count(WLDAP32_LDAP
*,PLDAPSearch
,ULONG
*,WLDAP32_LDAPMessage
*);
377 PCHAR
* CDECL
ldap_get_valuesA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PCHAR
);
378 PWCHAR
* CDECL
ldap_get_valuesW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PWCHAR
);
379 PBERVAL
* CDECL
ldap_get_values_lenA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PCHAR
);
380 PBERVAL
* CDECL
ldap_get_values_lenW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PWCHAR
);
381 WLDAP32_LDAP
* CDECL
ldap_initA(const PCHAR
,ULONG
);
382 WLDAP32_LDAP
* CDECL
ldap_initW(const PWCHAR
,ULONG
);
383 void CDECL
ldap_memfreeA(PCHAR
);
384 void CDECL
ldap_memfreeW(PWCHAR
);
385 ULONG CDECL
ldap_modifyA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[]);
386 ULONG CDECL
ldap_modifyW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[]);
387 ULONG CDECL
ldap_modify_extA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[],PLDAPControlA
*,PLDAPControlA
*,ULONG
*);
388 ULONG CDECL
ldap_modify_extW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[],PLDAPControlW
*,PLDAPControlW
*,ULONG
*);
389 ULONG CDECL
ldap_modify_ext_sA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[],PLDAPControlA
*,PLDAPControlA
*);
390 ULONG CDECL
ldap_modify_ext_sW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[],PLDAPControlW
*,PLDAPControlW
*);
391 ULONG CDECL
ldap_modify_sA(WLDAP32_LDAP
*,PCHAR
,LDAPModA
*[]);
392 ULONG CDECL
ldap_modify_sW(WLDAP32_LDAP
*,PWCHAR
,LDAPModW
*[]);
393 ULONG CDECL
ldap_modrdnA(WLDAP32_LDAP
*,PCHAR
,PCHAR
);
394 ULONG CDECL
ldap_modrdnW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
);
395 ULONG CDECL
ldap_modrdn2A(WLDAP32_LDAP
*,PCHAR
,PCHAR
,INT
);
396 ULONG CDECL
ldap_modrdn2W(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,INT
);
397 ULONG CDECL
ldap_modrdn2_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,INT
);
398 ULONG CDECL
ldap_modrdn2_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,INT
);
399 ULONG CDECL
ldap_modrdn_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
);
400 ULONG CDECL
ldap_modrdn_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
);
401 ULONG CDECL
WLDAP32_ldap_msgfree(WLDAP32_LDAPMessage
*);
402 PCHAR CDECL
ldap_next_attributeA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,WLDAP32_BerElement
*);
403 PWCHAR CDECL
ldap_next_attributeW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,WLDAP32_BerElement
*);
404 WLDAP32_LDAPMessage
* CDECL
WLDAP32_ldap_next_entry(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
405 WLDAP32_LDAPMessage
* CDECL
WLDAP32_ldap_next_reference(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*);
406 WLDAP32_LDAP
* CDECL
ldap_openA(PCHAR
,ULONG
);
407 WLDAP32_LDAP
* CDECL
ldap_openW(PWCHAR
,ULONG
);
408 ULONG CDECL
ldap_parse_extended_resultA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PCHAR
*,struct WLDAP32_berval
**,BOOLEAN
);
409 ULONG CDECL
ldap_parse_extended_resultW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PWCHAR
*,struct WLDAP32_berval
**,BOOLEAN
);
410 ULONG CDECL
ldap_parse_page_controlA(WLDAP32_LDAP
*,PLDAPControlA
*,ULONG
*,struct WLDAP32_berval
**);
411 ULONG CDECL
ldap_parse_page_controlW(WLDAP32_LDAP
*,PLDAPControlW
*,ULONG
*,struct WLDAP32_berval
**);
412 ULONG CDECL
ldap_parse_referenceA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PCHAR
**);
413 ULONG CDECL
ldap_parse_referenceW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,PWCHAR
**);
414 ULONG CDECL
ldap_parse_resultA(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,ULONG
*,PCHAR
*,PCHAR
*,PCHAR
**,PLDAPControlA
**,BOOLEAN
);
415 ULONG CDECL
ldap_parse_resultW(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,ULONG
*,PWCHAR
*,PWCHAR
*,PWCHAR
**,PLDAPControlW
**,BOOLEAN
);
416 ULONG CDECL
ldap_parse_sort_controlA(WLDAP32_LDAP
*,PLDAPControlA
*,ULONG
*,PCHAR
*);
417 ULONG CDECL
ldap_parse_sort_controlW(WLDAP32_LDAP
*,PLDAPControlW
*,ULONG
*,PWCHAR
*);
418 int CDECL
ldap_parse_vlv_controlA(WLDAP32_LDAP
*,LDAPControlA
**,ULONG
*,ULONG
*,struct WLDAP32_berval
**,INT
*);
419 int CDECL
ldap_parse_vlv_controlW(WLDAP32_LDAP
*,LDAPControlW
**,ULONG
*,ULONG
*,struct WLDAP32_berval
**,INT
*);
420 void CDECL
WLDAP32_ldap_perror(WLDAP32_LDAP
*,const PCHAR
);
421 ULONG CDECL
ldap_rename_extA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,PCHAR
,INT
,PLDAPControlA
*,PLDAPControlA
*,ULONG
*);
422 ULONG CDECL
ldap_rename_extW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,PWCHAR
,INT
,PLDAPControlW
*,PLDAPControlW
*,ULONG
*);
423 ULONG CDECL
ldap_rename_ext_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
,PCHAR
,INT
,PLDAPControlA
*,PLDAPControlA
*);
424 ULONG CDECL
ldap_rename_ext_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
,PWCHAR
,INT
,PLDAPControlW
*,PLDAPControlW
*);
425 ULONG CDECL
WLDAP32_ldap_result(WLDAP32_LDAP
*,ULONG
,ULONG
,struct l_timeval
*,WLDAP32_LDAPMessage
**);
426 ULONG CDECL
WLDAP32_ldap_result2error(WLDAP32_LDAP
*,WLDAP32_LDAPMessage
*,ULONG
);
427 ULONG CDECL
ldap_sasl_bindA(WLDAP32_LDAP
*,const PCHAR
,const PCHAR
,const BERVAL
*,PLDAPControlA
*,PLDAPControlA
*,int*);
428 ULONG CDECL
ldap_sasl_bindW(WLDAP32_LDAP
*,const PWCHAR
,const PWCHAR
,const BERVAL
*,PLDAPControlW
*,PLDAPControlW
*,int*);
429 ULONG CDECL
ldap_sasl_bind_sA(WLDAP32_LDAP
*,const PCHAR
,const PCHAR
,const BERVAL
*,PLDAPControlA
*,PLDAPControlA
*,PBERVAL
*);
430 ULONG CDECL
ldap_sasl_bind_sW(WLDAP32_LDAP
*,const PWCHAR
,const PWCHAR
,const BERVAL
*,PLDAPControlW
*,PLDAPControlW
*,PBERVAL
*);
431 ULONG CDECL
ldap_search_abandon_page(WLDAP32_PLDAP
,PLDAPSearch
);
432 ULONG CDECL
ldap_searchA(WLDAP32_LDAP
*,PCHAR
,ULONG
,PCHAR
,PCHAR
[],ULONG
);
433 ULONG CDECL
ldap_searchW(WLDAP32_LDAP
*,PWCHAR
,ULONG
,PWCHAR
,PWCHAR
[],ULONG
);
434 ULONG CDECL
ldap_search_extA(WLDAP32_LDAP
*,PCHAR
,ULONG
,PCHAR
,PCHAR
[],ULONG
,PLDAPControlA
*,
435 PLDAPControlA
*,ULONG
,ULONG
,ULONG
*);
436 ULONG CDECL
ldap_search_extW(WLDAP32_LDAP
*,PWCHAR
,ULONG
,PWCHAR
,PWCHAR
[],ULONG
,PLDAPControlW
*,
437 PLDAPControlW
*,ULONG
,ULONG
,ULONG
*);
438 ULONG CDECL
ldap_search_ext_sA(WLDAP32_LDAP
*,PCHAR
,ULONG
,PCHAR
,PCHAR
[],ULONG
,PLDAPControlA
*,
439 PLDAPControlA
*,struct l_timeval
*,ULONG
,WLDAP32_LDAPMessage
**);
440 ULONG CDECL
ldap_search_ext_sW(WLDAP32_LDAP
*,PWCHAR
,ULONG
,PWCHAR
,PWCHAR
[],ULONG
,PLDAPControlW
*,
441 PLDAPControlW
*,struct l_timeval
*,ULONG
,WLDAP32_LDAPMessage
**);
442 PLDAPSearch CDECL
ldap_search_init_pageA(WLDAP32_PLDAP
,PCHAR
,ULONG
,PCHAR
,PCHAR
[],ULONG
,PLDAPControlA
*,
443 PLDAPControlA
*,ULONG
,ULONG
,PLDAPSortKeyA
*);
444 PLDAPSearch CDECL
ldap_search_init_pageW(WLDAP32_PLDAP
,PWCHAR
,ULONG
,PWCHAR
,PWCHAR
[],ULONG
,PLDAPControlW
*,
445 PLDAPControlW
*,ULONG
,ULONG
, PLDAPSortKeyW
*);
446 ULONG CDECL
ldap_search_sA(WLDAP32_LDAP
*,PCHAR
,ULONG
,PCHAR
,PCHAR
[],ULONG
,WLDAP32_LDAPMessage
**);
447 ULONG CDECL
ldap_search_sW(WLDAP32_LDAP
*,PWCHAR
,ULONG
,PWCHAR
,PWCHAR
[],ULONG
,WLDAP32_LDAPMessage
**);
448 ULONG CDECL
ldap_search_stA(WLDAP32_LDAP
*,const PCHAR
,ULONG
,const PCHAR
,PCHAR
[],ULONG
,
449 struct l_timeval
*,WLDAP32_LDAPMessage
**);
450 ULONG CDECL
ldap_search_stW(WLDAP32_LDAP
*,const PWCHAR
,ULONG
,const PWCHAR
,PWCHAR
[],ULONG
,
451 struct l_timeval
*,WLDAP32_LDAPMessage
**);
452 ULONG CDECL
ldap_set_optionA(WLDAP32_LDAP
*,int,void*);
453 ULONG CDECL
ldap_set_optionW(WLDAP32_LDAP
*,int,void*);
454 ULONG CDECL
ldap_simple_bindA(WLDAP32_LDAP
*,PCHAR
,PCHAR
);
455 ULONG CDECL
ldap_simple_bindW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
);
456 ULONG CDECL
ldap_simple_bind_sA(WLDAP32_LDAP
*,PCHAR
,PCHAR
);
457 ULONG CDECL
ldap_simple_bind_sW(WLDAP32_LDAP
*,PWCHAR
,PWCHAR
);
458 WLDAP32_LDAP
* CDECL
ldap_sslinitA(PCHAR
,ULONG
,int);
459 WLDAP32_LDAP
* CDECL
ldap_sslinitW(PWCHAR
,ULONG
,int);
460 ULONG CDECL
ldap_start_tls_sA(WLDAP32_PLDAP
,PULONG
,WLDAP32_LDAPMessage
**,PLDAPControlA
*,PLDAPControlA
*);
461 ULONG CDECL
ldap_start_tls_sW(WLDAP32_PLDAP
,PULONG
,WLDAP32_LDAPMessage
**,PLDAPControlW
*,PLDAPControlW
*);
462 ULONG CDECL
ldap_startup(PLDAP_VERSION_INFO
,HANDLE
*);
463 BOOLEAN CDECL
ldap_stop_tls_s(WLDAP32_PLDAP
);
464 ULONG CDECL
ldap_ufn2dnA(PCHAR
,PCHAR
*);
465 ULONG CDECL
ldap_ufn2dnW(PWCHAR
,PWCHAR
*);
466 ULONG CDECL
WLDAP32_ldap_unbind(WLDAP32_LDAP
*);
467 ULONG CDECL
WLDAP32_ldap_unbind_s(WLDAP32_LDAP
*);
468 ULONG CDECL
ldap_value_freeA(PCHAR
*);
469 ULONG CDECL
ldap_value_freeW(PWCHAR
*);
470 ULONG CDECL
WLDAP32_ldap_value_free_len(struct WLDAP32_berval
**);
472 ULONG CDECL
LdapGetLastError(void);
473 ULONG CDECL
LdapMapErrorToWin32(ULONG
);
474 int CDECL
LdapUnicodeToUTF8(LPCWSTR
,int,LPSTR
,int);
475 int CDECL
LdapUTF8ToUnicode(LPCSTR
,int,LPWSTR
,int);