Artifact 62fd1c79ab82711670b2d4f454ec5aeb1a190e89:
- File
src/win32/winldap.d
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
The problem was __gshared. Replacing it with TLS fixed the issue. Remaining problem is that "hack.d"'s CloseHandle hack is not working anymore.
(user: kinaba) [annotate]
-
2015-05-05 06:49:05
- part of checkin
[9b639cf2d6]
on branch trunk
- Working version for update to 2.067.
0000: 2f 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a /*************** 0010: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0020: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0030: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 0040: 2a 2a 2a 2a 2a 2a 2a 2a 5c 0d 0a 2a 20 20 20 20 ********\..* 0050: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0060: 20 20 20 20 20 20 20 20 20 20 20 77 69 6e 6c 64 winld 0070: 61 70 2e 64 20 20 20 20 20 20 20 20 20 20 20 20 ap.d 0080: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0090: 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 20 *..* 00a0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00c0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 00d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a 0d *. 00e0: 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 20 .* 00f0: 20 20 20 20 20 20 20 20 20 57 69 6e 64 6f 77 73 Windows 0100: 20 41 50 49 20 68 65 61 64 65 72 20 6d 6f 64 75 API header modu 0110: 6c 65 20 20 20 20 20 20 20 20 20 20 20 20 20 20 le 0120: 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 20 *..* 0130: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0140: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0150: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0160: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0170: 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 20 *..* 0180: 20 20 20 20 20 20 20 20 20 54 72 61 6e 73 6c 61 Transla 0190: 74 65 64 20 66 72 6f 6d 20 4d 69 6e 47 57 20 57 ted from MinGW W 01a0: 69 6e 64 6f 77 73 20 68 65 61 64 65 72 73 20 20 indows headers 01b0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2a * 01c0: 0d 0a 2a 20 20 20 20 20 20 20 20 20 20 20 20 20 ..* 01d0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 62 79 by 01e0: 20 53 74 65 77 61 72 74 20 47 6f 72 64 6f 6e 20 Stewart Gordon 01f0: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0200: 20 20 20 20 20 20 20 20 20 20 2a 0d 0a 2a 20 20 *..* 0210: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0220: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0230: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0240: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0250: 20 20 20 20 20 2a 0d 0a 2a 20 20 20 20 20 20 20 *..* 0260: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0270: 50 6c 61 63 65 64 20 69 6e 74 6f 20 70 75 62 6c Placed into publ 0280: 69 63 20 64 6f 6d 61 69 6e 20 20 20 20 20 20 20 ic domain 0290: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 02a0: 2a 0d 0a 5c 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a *..\************ 02b0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02c0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02d0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a **************** 02e0: 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2a 2f 0d 0a 6d 6f ***********/..mo 02f0: 64 75 6c 65 20 77 69 6e 33 32 2e 77 69 6e 6c 64 dule win32.winld 0300: 61 70 3b 0d 0a 0d 0a 2f 2a 20 43 6f 6d 6d 65 6e ap;..../* Commen 0310: 74 20 66 72 6f 6d 20 4d 69 6e 47 57 0d 0a 20 20 t from MinGW.. 0320: 77 69 6e 6c 64 61 70 2e 68 20 2d 20 48 65 61 64 winldap.h - Head 0330: 65 72 20 66 69 6c 65 20 66 6f 72 20 74 68 65 20 er file for the 0340: 57 69 6e 64 6f 77 73 20 4c 44 41 50 20 41 50 49 Windows LDAP API 0350: 0d 0a 0d 0a 20 20 57 72 69 74 74 65 6e 20 62 79 .... Written by 0360: 20 46 69 6c 69 70 20 4e 61 76 61 72 61 20 3c 78 Filip Navara <x 0370: 6e 61 76 61 72 61 40 76 6f 6c 6e 79 2e 63 7a 3e navara@volny.cz> 0380: 0d 0a 0d 0a 20 20 52 65 66 65 72 65 6e 63 65 73 .... References 0390: 3a 0d 0a 20 20 20 20 54 68 65 20 43 20 4c 44 41 :.. The C LDA 03a0: 50 20 41 70 70 6c 69 63 61 74 69 6f 6e 20 50 72 P Application Pr 03b0: 6f 67 72 61 6d 20 49 6e 74 65 72 66 61 63 65 0d ogram Interface. 03c0: 0a 20 20 20 20 68 74 74 70 3a 2f 2f 77 77 77 2e . http://www. 03d0: 77 61 74 65 72 73 70 72 69 6e 67 73 2e 6f 72 67 watersprings.org 03e0: 2f 70 75 62 2f 69 64 2f 64 72 61 66 74 2d 69 65 /pub/id/draft-ie 03f0: 74 66 2d 6c 64 61 70 65 78 74 2d 6c 64 61 70 2d tf-ldapext-ldap- 0400: 63 2d 61 70 69 2d 30 35 2e 74 78 74 0d 0a 0d 0a c-api-05.txt.... 0410: 20 20 20 20 4c 69 67 68 74 77 65 69 67 68 74 20 Lightweight 0420: 44 69 72 65 63 74 6f 72 79 20 41 63 63 65 73 73 Directory Access 0430: 20 50 72 6f 74 6f 63 6f 6c 20 52 65 66 65 72 65 Protocol Refere 0440: 6e 63 65 0d 0a 20 20 20 20 68 74 74 70 3a 2f 2f nce.. http:// 0450: 6d 73 64 6e 2e 6d 69 63 72 6f 73 6f 66 74 2e 63 msdn.microsoft.c 0460: 6f 6d 2f 6c 69 62 72 61 72 79 2f 65 6e 2d 75 73 om/library/en-us 0470: 2f 6e 65 74 64 69 72 2f 6c 64 61 70 2f 6c 64 61 /netdir/ldap/lda 0480: 70 5f 72 65 66 65 72 65 6e 63 65 2e 61 73 70 0d p_reference.asp. 0490: 0a 0d 0a 20 20 54 68 69 73 20 6c 69 62 72 61 72 ... This librar 04a0: 79 20 69 73 20 64 69 73 74 72 69 62 75 74 65 64 y is distributed 04b0: 20 69 6e 20 74 68 65 20 68 6f 70 65 20 74 68 61 in the hope tha 04c0: 74 20 69 74 20 77 69 6c 6c 20 62 65 20 75 73 65 t it will be use 04d0: 66 75 6c 2c 0d 0a 20 20 62 75 74 20 57 49 54 48 ful,.. but WITH 04e0: 4f 55 54 20 41 4e 59 20 57 41 52 52 41 4e 54 59 OUT ANY WARRANTY 04f0: 3b 20 77 69 74 68 6f 75 74 20 65 76 65 6e 20 74 ; without even t 0500: 68 65 20 69 6d 70 6c 69 65 64 20 77 61 72 72 61 he implied warra 0510: 6e 74 79 20 6f 66 0d 0a 20 20 4d 45 52 43 48 41 nty of.. MERCHA 0520: 4e 54 41 42 49 4c 49 54 59 20 6f 72 20 46 49 54 NTABILITY or FIT 0530: 4e 45 53 53 20 46 4f 52 20 41 20 50 41 52 54 49 NESS FOR A PARTI 0540: 43 55 4c 41 52 20 50 55 52 50 4f 53 45 2e 0d 0a CULAR PURPOSE... 0550: 2a 2f 0d 0a 0d 0a 69 6d 70 6f 72 74 20 77 69 6e */....import win 0560: 33 32 2e 73 63 68 61 6e 6e 65 6c 2c 20 77 69 6e 32.schannel, win 0570: 33 32 2e 77 69 6e 62 65 72 3b 0d 0a 70 72 69 76 32.winber;..priv 0580: 61 74 65 20 69 6d 70 6f 72 74 20 77 69 6e 33 32 ate import win32 0590: 2e 77 69 6e 63 72 79 70 74 2c 20 77 69 6e 33 32 .wincrypt, win32 05a0: 2e 77 69 6e 64 65 66 3b 0d 0a 76 65 72 73 69 6f .windef;..versio 05b0: 6e 28 54 61 6e 67 6f 29 7b 0d 0a 20 20 20 20 70 n(Tango){.. p 05c0: 72 69 76 61 74 65 20 69 6d 70 6f 72 74 20 74 61 rivate import ta 05d0: 6e 67 6f 2e 73 74 64 63 2e 73 74 64 69 6f 3b 0d ngo.stdc.stdio;. 05e0: 0a 7d 0d 0a 0d 0a 61 6c 69 67 6e 28 34 29 3a 0d .}....align(4):. 05f0: 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 4c 44 41 50 ...enum {...LDAP 0600: 5f 56 45 52 53 49 4f 4e 31 20 20 20 20 3d 20 31 _VERSION1 = 1 0610: 2c 0d 0a 09 4c 44 41 50 5f 56 45 52 53 49 4f 4e ,...LDAP_VERSION 0620: 32 20 20 20 20 3d 20 32 2c 0d 0a 09 4c 44 41 50 2 = 2,...LDAP 0630: 5f 56 45 52 53 49 4f 4e 33 20 20 20 20 3d 20 33 _VERSION3 = 3 0640: 2c 0d 0a 09 4c 44 41 50 5f 56 45 52 53 49 4f 4e ,...LDAP_VERSION 0650: 20 20 20 20 20 3d 20 4c 44 41 50 5f 56 45 52 53 = LDAP_VERS 0660: 49 4f 4e 32 2c 0d 0a 09 4c 44 41 50 5f 56 45 52 ION2,...LDAP_VER 0670: 53 49 4f 4e 5f 4d 49 4e 20 3d 20 4c 44 41 50 5f SION_MIN = LDAP_ 0680: 56 45 52 53 49 4f 4e 32 2c 0d 0a 09 4c 44 41 50 VERSION2,...LDAP 0690: 5f 56 45 52 53 49 4f 4e 5f 4d 41 58 20 3d 20 4c _VERSION_MAX = L 06a0: 44 41 50 5f 56 45 52 53 49 4f 4e 33 0d 0a 7d 0d DAP_VERSION3..}. 06b0: 0a 0d 0a 2f 2a 09 4d 69 6e 47 57 20 64 65 66 69 .../*.MinGW defi 06c0: 6e 65 73 20 41 4e 53 49 20 61 6e 64 20 55 6e 69 nes ANSI and Uni 06d0: 63 6f 64 65 20 76 65 72 73 69 6f 6e 73 20 61 73 code versions as 06e0: 20 4c 44 41 50 5f 56 45 4e 44 4f 52 5f 4e 41 4d LDAP_VENDOR_NAM 06f0: 45 20 61 6e 64 0d 0a 20 2a 09 4c 44 41 50 5f 56 E and.. *.LDAP_V 0700: 45 4e 44 4f 52 5f 4e 41 4d 45 5f 57 20 72 65 73 ENDOR_NAME_W res 0710: 70 65 63 74 69 76 65 6c 79 3b 20 73 69 6d 69 6c pectively; simil 0720: 61 72 6c 79 20 77 69 74 68 20 6f 74 68 65 72 20 arly with other 0730: 73 74 72 69 6e 67 20 63 6f 6e 73 74 61 6e 74 73 string constants 0740: 0d 0a 20 2a 09 64 65 66 69 6e 65 64 20 69 6e 20 .. *.defined in 0750: 74 68 69 73 20 6d 6f 64 75 6c 65 2e 0d 0a 20 2a this module... * 0760: 2f 0d 0a 63 6f 6e 73 74 20 54 43 48 41 52 5b 5d /..const TCHAR[] 0770: 20 4c 44 41 50 5f 56 45 4e 44 4f 52 5f 4e 41 4d LDAP_VENDOR_NAM 0780: 45 20 3d 20 22 4d 69 63 72 6f 73 6f 66 74 20 43 E = "Microsoft C 0790: 6f 72 70 6f 72 61 74 69 6f 6e 2e 22 3b 0d 0a 0d orporation.";... 07a0: 0a 63 6f 6e 73 74 20 4c 44 41 50 5f 41 50 49 5f .const LDAP_API_ 07b0: 56 45 52 53 49 4f 4e 20 20 20 20 20 20 20 20 20 VERSION 07c0: 20 3d 20 32 30 30 34 3b 0d 0a 63 6f 6e 73 74 20 = 2004;..const 07d0: 4c 44 41 50 5f 56 45 4e 44 4f 52 5f 56 45 52 53 LDAP_VENDOR_VERS 07e0: 49 4f 4e 20 20 20 20 20 20 20 3d 20 20 35 31 30 ION = 510 07f0: 3b 0d 0a 63 6f 6e 73 74 20 4c 44 41 50 5f 41 50 ;..const LDAP_AP 0800: 49 5f 49 4e 46 4f 5f 56 45 52 53 49 4f 4e 20 20 I_INFO_VERSION 0810: 20 20 20 3d 20 20 20 20 31 3b 0d 0a 63 6f 6e 73 = 1;..cons 0820: 74 20 4c 44 41 50 5f 46 45 41 54 55 52 45 5f 49 t LDAP_FEATURE_I 0830: 4e 46 4f 5f 56 45 52 53 49 4f 4e 20 3d 20 20 20 NFO_VERSION = 0840: 20 31 3b 0d 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 1;....enum {... 0850: 4c 44 41 50 5f 53 55 43 43 45 53 53 20 20 20 20 LDAP_SUCCESS 0860: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0870: 3d 20 30 78 30 30 2c 0d 0a 09 4c 44 41 50 5f 4f = 0x00,...LDAP_O 0880: 50 54 5f 53 55 43 43 45 53 53 20 20 20 20 20 20 PT_SUCCESS 0890: 20 20 20 20 20 20 20 20 20 20 3d 20 4c 44 41 50 = LDAP 08a0: 5f 53 55 43 43 45 53 53 2c 0d 0a 09 4c 44 41 50 _SUCCESS,...LDAP 08b0: 5f 4f 50 45 52 41 54 49 4f 4e 53 5f 45 52 52 4f _OPERATIONS_ERRO 08c0: 52 2c 0d 0a 09 4c 44 41 50 5f 50 52 4f 54 4f 43 R,...LDAP_PROTOC 08d0: 4f 4c 5f 45 52 52 4f 52 2c 0d 0a 09 4c 44 41 50 OL_ERROR,...LDAP 08e0: 5f 54 49 4d 45 4c 49 4d 49 54 5f 45 58 43 45 45 _TIMELIMIT_EXCEE 08f0: 44 45 44 2c 0d 0a 09 4c 44 41 50 5f 53 49 5a 45 DED,...LDAP_SIZE 0900: 4c 49 4d 49 54 5f 45 58 43 45 45 44 45 44 2c 0d LIMIT_EXCEEDED,. 0910: 0a 09 4c 44 41 50 5f 43 4f 4d 50 41 52 45 5f 46 ..LDAP_COMPARE_F 0920: 41 4c 53 45 2c 0d 0a 09 4c 44 41 50 5f 43 4f 4d ALSE,...LDAP_COM 0930: 50 41 52 45 5f 54 52 55 45 2c 0d 0a 09 4c 44 41 PARE_TRUE,...LDA 0940: 50 5f 53 54 52 4f 4e 47 5f 41 55 54 48 5f 4e 4f P_STRONG_AUTH_NO 0950: 54 5f 53 55 50 50 4f 52 54 45 44 2c 0d 0a 09 4c T_SUPPORTED,...L 0960: 44 41 50 5f 41 55 54 48 5f 4d 45 54 48 4f 44 5f DAP_AUTH_METHOD_ 0970: 4e 4f 54 5f 53 55 50 50 4f 52 54 45 44 20 20 3d NOT_SUPPORTED = 0980: 20 4c 44 41 50 5f 53 54 52 4f 4e 47 5f 41 55 54 LDAP_STRONG_AUT 0990: 48 5f 4e 4f 54 5f 53 55 50 50 4f 52 54 45 44 2c H_NOT_SUPPORTED, 09a0: 0d 0a 09 4c 44 41 50 5f 53 54 52 4f 4e 47 5f 41 ...LDAP_STRONG_A 09b0: 55 54 48 5f 52 45 51 55 49 52 45 44 2c 0d 0a 09 UTH_REQUIRED,... 09c0: 4c 44 41 50 5f 52 45 46 45 52 52 41 4c 5f 56 32 LDAP_REFERRAL_V2 09d0: 2c 0d 0a 09 4c 44 41 50 5f 50 41 52 54 49 41 4c ,...LDAP_PARTIAL 09e0: 5f 52 45 53 55 4c 54 53 20 20 20 20 20 20 20 20 _RESULTS 09f0: 20 20 20 20 3d 20 4c 44 41 50 5f 52 45 46 45 52 = LDAP_REFER 0a00: 52 41 4c 5f 56 32 2c 0d 0a 09 4c 44 41 50 5f 52 RAL_V2,...LDAP_R 0a10: 45 46 45 52 52 41 4c 2c 0d 0a 09 4c 44 41 50 5f EFERRAL,...LDAP_ 0a20: 41 44 4d 49 4e 5f 4c 49 4d 49 54 5f 45 58 43 45 ADMIN_LIMIT_EXCE 0a30: 45 44 45 44 2c 0d 0a 09 4c 44 41 50 5f 55 4e 41 EDED,...LDAP_UNA 0a40: 56 41 49 4c 41 42 4c 45 5f 43 52 49 54 5f 45 58 VAILABLE_CRIT_EX 0a50: 54 45 4e 53 49 4f 4e 2c 0d 0a 09 4c 44 41 50 5f TENSION,...LDAP_ 0a60: 43 4f 4e 46 49 44 45 4e 54 49 41 4c 49 54 59 5f CONFIDENTIALITY_ 0a70: 52 45 51 55 49 52 45 44 2c 0d 0a 09 4c 44 41 50 REQUIRED,...LDAP 0a80: 5f 53 41 53 4c 5f 42 49 4e 44 5f 49 4e 5f 50 52 _SASL_BIND_IN_PR 0a90: 4f 47 52 45 53 53 2c 20 20 2f 2f 20 3d 20 30 78 OGRESS, // = 0x 0aa0: 30 65 0d 0a 09 4c 44 41 50 5f 4e 4f 5f 53 55 43 0e...LDAP_NO_SUC 0ab0: 48 5f 41 54 54 52 49 42 55 54 45 20 20 20 20 20 H_ATTRIBUTE 0ac0: 20 20 20 20 20 3d 20 30 78 31 30 2c 0d 0a 09 4c = 0x10,...L 0ad0: 44 41 50 5f 55 4e 44 45 46 49 4e 45 44 5f 54 59 DAP_UNDEFINED_TY 0ae0: 50 45 2c 0d 0a 09 4c 44 41 50 5f 49 4e 41 50 50 PE,...LDAP_INAPP 0af0: 52 4f 50 52 49 41 54 45 5f 4d 41 54 43 48 49 4e ROPRIATE_MATCHIN 0b00: 47 2c 0d 0a 09 4c 44 41 50 5f 43 4f 4e 53 54 52 G,...LDAP_CONSTR 0b10: 41 49 4e 54 5f 56 49 4f 4c 41 54 49 4f 4e 2c 0d AINT_VIOLATION,. 0b20: 0a 09 4c 44 41 50 5f 54 59 50 45 5f 4f 52 5f 56 ..LDAP_TYPE_OR_V 0b30: 41 4c 55 45 5f 45 58 49 53 54 53 2c 0d 0a 09 4c ALUE_EXISTS,...L 0b40: 44 41 50 5f 41 54 54 52 49 42 55 54 45 5f 4f 52 DAP_ATTRIBUTE_OR 0b50: 5f 56 41 4c 55 45 5f 45 58 49 53 54 53 20 20 3d _VALUE_EXISTS = 0b60: 20 4c 44 41 50 5f 54 59 50 45 5f 4f 52 5f 56 41 LDAP_TYPE_OR_VA 0b70: 4c 55 45 5f 45 58 49 53 54 53 2c 0d 0a 09 4c 44 LUE_EXISTS,...LD 0b80: 41 50 5f 49 4e 56 41 4c 49 44 5f 53 59 4e 54 41 AP_INVALID_SYNTA 0b90: 58 2c 20 20 20 20 20 20 20 20 20 2f 2f 20 3d 20 X, // = 0ba0: 30 78 31 35 0d 0a 09 4c 44 41 50 5f 4e 4f 5f 53 0x15...LDAP_NO_S 0bb0: 55 43 48 5f 4f 42 4a 45 43 54 20 20 20 20 20 20 UCH_OBJECT 0bc0: 20 20 20 20 20 20 20 3d 20 30 78 32 30 2c 0d 0a = 0x20,.. 0bd0: 09 4c 44 41 50 5f 41 4c 49 41 53 5f 50 52 4f 42 .LDAP_ALIAS_PROB 0be0: 4c 45 4d 2c 0d 0a 09 4c 44 41 50 5f 49 4e 56 41 LEM,...LDAP_INVA 0bf0: 4c 49 44 5f 44 4e 5f 53 59 4e 54 41 58 2c 0d 0a LID_DN_SYNTAX,.. 0c00: 09 4c 44 41 50 5f 49 53 5f 4c 45 41 46 2c 0d 0a .LDAP_IS_LEAF,.. 0c10: 09 4c 44 41 50 5f 41 4c 49 41 53 5f 44 45 52 45 .LDAP_ALIAS_DERE 0c20: 46 5f 50 52 4f 42 4c 45 4d 2c 20 20 20 20 2f 2f F_PROBLEM, // 0c30: 20 3d 20 30 78 32 34 0d 0a 09 4c 44 41 50 5f 49 = 0x24...LDAP_I 0c40: 4e 41 50 50 52 4f 50 52 49 41 54 45 5f 41 55 54 NAPPROPRIATE_AUT 0c50: 48 20 20 20 20 20 20 20 20 20 3d 20 30 78 33 30 H = 0x30 0c60: 2c 0d 0a 09 4c 44 41 50 5f 49 4e 56 41 4c 49 44 ,...LDAP_INVALID 0c70: 5f 43 52 45 44 45 4e 54 49 41 4c 53 2c 0d 0a 09 _CREDENTIALS,... 0c80: 4c 44 41 50 5f 49 4e 53 55 46 46 49 43 49 45 4e LDAP_INSUFFICIEN 0c90: 54 5f 41 43 43 45 53 53 2c 0d 0a 09 4c 44 41 50 T_ACCESS,...LDAP 0ca0: 5f 49 4e 53 55 46 46 49 43 49 45 4e 54 5f 52 49 _INSUFFICIENT_RI 0cb0: 47 48 54 53 20 20 20 20 20 20 20 20 3d 20 4c 44 GHTS = LD 0cc0: 41 50 5f 49 4e 53 55 46 46 49 43 49 45 4e 54 5f AP_INSUFFICIENT_ 0cd0: 41 43 43 45 53 53 2c 0d 0a 09 4c 44 41 50 5f 42 ACCESS,...LDAP_B 0ce0: 55 53 59 2c 0d 0a 09 4c 44 41 50 5f 55 4e 41 56 USY,...LDAP_UNAV 0cf0: 41 49 4c 41 42 4c 45 2c 0d 0a 09 4c 44 41 50 5f AILABLE,...LDAP_ 0d00: 55 4e 57 49 4c 4c 49 4e 47 5f 54 4f 5f 50 45 52 UNWILLING_TO_PER 0d10: 46 4f 52 4d 2c 0d 0a 09 4c 44 41 50 5f 4c 4f 4f FORM,...LDAP_LOO 0d20: 50 5f 44 45 54 45 43 54 2c 20 20 20 20 20 20 20 P_DETECT, 0d30: 20 20 20 20 20 2f 2f 20 3d 20 30 78 33 36 0d 0a // = 0x36.. 0d40: 09 4c 44 41 50 5f 4e 41 4d 49 4e 47 5f 56 49 4f .LDAP_NAMING_VIO 0d50: 4c 41 54 49 4f 4e 20 20 20 20 20 20 20 20 20 20 LATION 0d60: 20 3d 20 30 78 34 30 2c 0d 0a 09 4c 44 41 50 5f = 0x40,...LDAP_ 0d70: 4f 42 4a 45 43 54 5f 43 4c 41 53 53 5f 56 49 4f OBJECT_CLASS_VIO 0d80: 4c 41 54 49 4f 4e 2c 0d 0a 09 4c 44 41 50 5f 4e LATION,...LDAP_N 0d90: 4f 54 5f 41 4c 4c 4f 57 45 44 5f 4f 4e 5f 4e 4f OT_ALLOWED_ON_NO 0da0: 4e 4c 45 41 46 2c 0d 0a 09 4c 44 41 50 5f 4e 4f NLEAF,...LDAP_NO 0db0: 54 5f 41 4c 4c 4f 57 45 44 5f 4f 4e 5f 52 44 4e T_ALLOWED_ON_RDN 0dc0: 2c 0d 0a 09 4c 44 41 50 5f 41 4c 52 45 41 44 59 ,...LDAP_ALREADY 0dd0: 5f 45 58 49 53 54 53 2c 0d 0a 09 4c 44 41 50 5f _EXISTS,...LDAP_ 0de0: 4e 4f 5f 4f 42 4a 45 43 54 5f 43 4c 41 53 53 5f NO_OBJECT_CLASS_ 0df0: 4d 4f 44 53 2c 0d 0a 09 4c 44 41 50 5f 52 45 53 MODS,...LDAP_RES 0e00: 55 4c 54 53 5f 54 4f 4f 5f 4c 41 52 47 45 2c 0d ULTS_TOO_LARGE,. 0e10: 0a 09 4c 44 41 50 5f 41 46 46 45 43 54 53 5f 4d ..LDAP_AFFECTS_M 0e20: 55 4c 54 49 50 4c 45 5f 44 53 41 53 2c 20 20 2f ULTIPLE_DSAS, / 0e30: 2f 20 3d 20 30 78 34 37 0d 0a 09 4c 44 41 50 5f / = 0x47...LDAP_ 0e40: 4f 54 48 45 52 20 20 20 20 20 20 20 20 20 20 20 OTHER 0e50: 20 20 20 20 20 20 20 20 20 20 20 3d 20 30 78 35 = 0x5 0e60: 30 2c 0d 0a 09 4c 44 41 50 5f 53 45 52 56 45 52 0,...LDAP_SERVER 0e70: 5f 44 4f 57 4e 2c 0d 0a 09 4c 44 41 50 5f 4c 4f _DOWN,...LDAP_LO 0e80: 43 41 4c 5f 45 52 52 4f 52 2c 0d 0a 09 4c 44 41 CAL_ERROR,...LDA 0e90: 50 5f 45 4e 43 4f 44 49 4e 47 5f 45 52 52 4f 52 P_ENCODING_ERROR 0ea0: 2c 0d 0a 09 4c 44 41 50 5f 44 45 43 4f 44 49 4e ,...LDAP_DECODIN 0eb0: 47 5f 45 52 52 4f 52 2c 0d 0a 09 4c 44 41 50 5f G_ERROR,...LDAP_ 0ec0: 54 49 4d 45 4f 55 54 2c 0d 0a 09 4c 44 41 50 5f TIMEOUT,...LDAP_ 0ed0: 41 55 54 48 5f 55 4e 4b 4e 4f 57 4e 2c 0d 0a 09 AUTH_UNKNOWN,... 0ee0: 4c 44 41 50 5f 46 49 4c 54 45 52 5f 45 52 52 4f LDAP_FILTER_ERRO 0ef0: 52 2c 0d 0a 09 4c 44 41 50 5f 55 53 45 52 5f 43 R,...LDAP_USER_C 0f00: 41 4e 43 45 4c 4c 45 44 2c 0d 0a 09 4c 44 41 50 ANCELLED,...LDAP 0f10: 5f 50 41 52 41 4d 5f 45 52 52 4f 52 2c 0d 0a 09 _PARAM_ERROR,... 0f20: 4c 44 41 50 5f 4e 4f 5f 4d 45 4d 4f 52 59 2c 0d LDAP_NO_MEMORY,. 0f30: 0a 09 4c 44 41 50 5f 43 4f 4e 4e 45 43 54 5f 45 ..LDAP_CONNECT_E 0f40: 52 52 4f 52 2c 0d 0a 09 4c 44 41 50 5f 4e 4f 54 RROR,...LDAP_NOT 0f50: 5f 53 55 50 50 4f 52 54 45 44 2c 0d 0a 09 4c 44 _SUPPORTED,...LD 0f60: 41 50 5f 43 4f 4e 54 52 4f 4c 5f 4e 4f 54 5f 46 AP_CONTROL_NOT_F 0f70: 4f 55 4e 44 2c 0d 0a 09 4c 44 41 50 5f 4e 4f 5f OUND,...LDAP_NO_ 0f80: 52 45 53 55 4c 54 53 5f 52 45 54 55 52 4e 45 44 RESULTS_RETURNED 0f90: 2c 0d 0a 09 4c 44 41 50 5f 4d 4f 52 45 5f 52 45 ,...LDAP_MORE_RE 0fa0: 53 55 4c 54 53 5f 54 4f 5f 52 45 54 55 52 4e 2c SULTS_TO_RETURN, 0fb0: 0d 0a 09 4c 44 41 50 5f 43 4c 49 45 4e 54 5f 4c ...LDAP_CLIENT_L 0fc0: 4f 4f 50 2c 0d 0a 09 4c 44 41 50 5f 52 45 46 45 OOP,...LDAP_REFE 0fd0: 52 52 41 4c 5f 4c 49 4d 49 54 5f 45 58 43 45 45 RRAL_LIMIT_EXCEE 0fe0: 44 45 44 20 2f 2f 20 3d 20 30 78 36 31 0d 0a 7d DED // = 0x61..} 0ff0: 0d 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 4c 44 41 ....enum {...LDA 1000: 50 5f 50 4f 52 54 20 20 20 20 20 20 20 20 3d 20 P_PORT = 1010: 20 33 38 39 2c 0d 0a 09 4c 44 41 50 5f 53 53 4c 389,...LDAP_SSL 1020: 5f 50 4f 52 54 20 20 20 20 3d 20 20 36 33 36 2c _PORT = 636, 1030: 0d 0a 09 4c 44 41 50 5f 47 43 5f 50 4f 52 54 20 ...LDAP_GC_PORT 1040: 20 20 20 20 3d 20 33 32 36 38 2c 0d 0a 09 4c 44 = 3268,...LD 1050: 41 50 5f 53 53 4c 5f 47 43 5f 50 4f 52 54 20 3d AP_SSL_GC_PORT = 1060: 20 33 32 36 39 0d 0a 7d 0d 0a 0d 0a 63 6f 6e 73 3269..}....cons 1070: 74 20 76 6f 69 64 2a 0d 0a 09 4c 44 41 50 5f 4f t void*...LDAP_O 1080: 50 54 5f 4f 46 46 20 3d 20 6e 75 6c 6c 2c 0d 0a PT_OFF = null,.. 1090: 09 4c 44 41 50 5f 4f 50 54 5f 4f 4e 20 3d 20 63 .LDAP_OPT_ON = c 10a0: 61 73 74 28 76 6f 69 64 2a 29 20 31 3b 0d 0a 0d ast(void*) 1;... 10b0: 0a 65 6e 75 6d 20 7b 0d 0a 09 4c 44 41 50 5f 4f .enum {...LDAP_O 10c0: 50 54 5f 41 50 49 5f 49 4e 46 4f 20 20 20 20 20 PT_API_INFO 10d0: 20 20 20 20 20 20 20 20 20 20 3d 20 30 78 30 30 = 0x00 10e0: 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 44 45 53 ,...LDAP_OPT_DES 10f0: 43 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 44 45 C,...LDAP_OPT_DE 1100: 52 45 46 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f REF,...LDAP_OPT_ 1110: 53 49 5a 45 4c 49 4d 49 54 2c 0d 0a 09 4c 44 41 SIZELIMIT,...LDA 1120: 50 5f 4f 50 54 5f 54 49 4d 45 4c 49 4d 49 54 2c P_OPT_TIMELIMIT, 1130: 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 54 48 52 45 ...LDAP_OPT_THRE 1140: 41 44 5f 46 4e 5f 50 54 52 53 2c 0d 0a 09 4c 44 AD_FN_PTRS,...LD 1150: 41 50 5f 4f 50 54 5f 52 45 42 49 4e 44 5f 46 4e AP_OPT_REBIND_FN 1160: 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 52 45 42 ,...LDAP_OPT_REB 1170: 49 4e 44 5f 41 52 47 2c 0d 0a 09 4c 44 41 50 5f IND_ARG,...LDAP_ 1180: 4f 50 54 5f 52 45 46 45 52 52 41 4c 53 2c 0d 0a OPT_REFERRALS,.. 1190: 09 4c 44 41 50 5f 4f 50 54 5f 52 45 53 54 41 52 .LDAP_OPT_RESTAR 11a0: 54 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 53 53 T,...LDAP_OPT_SS 11b0: 4c 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 54 4c L,...LDAP_OPT_TL 11c0: 53 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 S 11d0: 20 20 20 20 20 3d 20 4c 44 41 50 5f 4f 50 54 5f = LDAP_OPT_ 11e0: 53 53 4c 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f SSL,...LDAP_OPT_ 11f0: 49 4f 5f 46 4e 5f 50 54 52 53 2c 20 20 20 20 20 IO_FN_PTRS, 1200: 20 20 20 20 2f 2f 20 3d 20 30 78 30 62 0d 0a 09 // = 0x0b... 1210: 4c 44 41 50 5f 4f 50 54 5f 43 41 43 48 45 5f 46 LDAP_OPT_CACHE_F 1220: 4e 5f 50 54 52 53 20 20 20 20 20 20 20 20 20 20 N_PTRS 1230: 3d 20 30 78 30 64 2c 0d 0a 09 4c 44 41 50 5f 4f = 0x0d,...LDAP_O 1240: 50 54 5f 43 41 43 48 45 5f 53 54 52 41 54 45 47 PT_CACHE_STRATEG 1250: 59 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 43 41 Y,...LDAP_OPT_CA 1260: 43 48 45 5f 45 4e 41 42 4c 45 2c 0d 0a 09 4c 44 CHE_ENABLE,...LD 1270: 41 50 5f 4f 50 54 5f 52 45 46 45 52 52 41 4c 5f AP_OPT_REFERRAL_ 1280: 48 4f 50 5f 4c 49 4d 49 54 2c 0d 0a 09 4c 44 41 HOP_LIMIT,...LDA 1290: 50 5f 4f 50 54 5f 50 52 4f 54 4f 43 4f 4c 5f 56 P_OPT_PROTOCOL_V 12a0: 45 52 53 49 4f 4e 2c 0d 0a 09 4c 44 41 50 5f 4f ERSION,...LDAP_O 12b0: 50 54 5f 56 45 52 53 49 4f 4e 20 20 20 20 20 20 PT_VERSION 12c0: 20 20 20 20 20 20 20 20 20 20 3d 20 4c 44 41 50 = LDAP 12d0: 5f 4f 50 54 5f 50 52 4f 54 4f 43 4f 4c 5f 56 45 _OPT_PROTOCOL_VE 12e0: 52 53 49 4f 4e 2c 0d 0a 09 4c 44 41 50 5f 4f 50 RSION,...LDAP_OP 12f0: 54 5f 53 45 52 56 45 52 5f 43 4f 4e 54 52 4f 4c T_SERVER_CONTROL 1300: 53 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 43 4c S,...LDAP_OPT_CL 1310: 49 45 4e 54 5f 43 4f 4e 54 52 4f 4c 53 2c 20 20 IENT_CONTROLS, 1320: 20 20 2f 2f 20 3d 20 30 78 31 33 0d 0a 09 4c 44 // = 0x13...LD 1330: 41 50 5f 4f 50 54 5f 41 50 49 5f 46 45 41 54 55 AP_OPT_API_FEATU 1340: 52 45 5f 49 4e 46 4f 20 20 20 20 20 20 20 3d 20 RE_INFO = 1350: 30 78 31 35 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 0x15,...LDAP_OPT 1360: 5f 48 4f 53 54 5f 4e 41 4d 45 20 20 20 20 20 20 _HOST_NAME 1370: 20 20 20 20 20 20 20 20 3d 20 30 78 33 30 2c 0d = 0x30,. 1380: 0a 09 4c 44 41 50 5f 4f 50 54 5f 45 52 52 4f 52 ..LDAP_OPT_ERROR 1390: 5f 4e 55 4d 42 45 52 2c 0d 0a 09 4c 44 41 50 5f _NUMBER,...LDAP_ 13a0: 4f 50 54 5f 45 52 52 4f 52 5f 53 54 52 49 4e 47 OPT_ERROR_STRING 13b0: 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 53 45 52 ,...LDAP_OPT_SER 13c0: 56 45 52 5f 45 52 52 4f 52 2c 0d 0a 09 4c 44 41 VER_ERROR,...LDA 13d0: 50 5f 4f 50 54 5f 53 45 52 56 45 52 5f 45 58 54 P_OPT_SERVER_EXT 13e0: 5f 45 52 52 4f 52 2c 20 20 20 2f 2f 20 3d 20 30 _ERROR, // = 0 13f0: 78 33 34 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 50 x34...LDAP_OPT_P 1400: 49 4e 47 5f 4b 45 45 50 5f 41 4c 49 56 45 20 20 ING_KEEP_ALIVE 1410: 20 20 20 20 20 20 3d 20 30 78 33 36 2c 0d 0a 09 = 0x36,... 1420: 4c 44 41 50 5f 4f 50 54 5f 50 49 4e 47 5f 57 41 LDAP_OPT_PING_WA 1430: 49 54 5f 54 49 4d 45 2c 0d 0a 09 4c 44 41 50 5f IT_TIME,...LDAP_ 1440: 4f 50 54 5f 50 49 4e 47 5f 4c 49 4d 49 54 2c 20 OPT_PING_LIMIT, 1450: 20 20 20 20 20 20 20 20 2f 2f 20 3d 20 30 78 33 // = 0x3 1460: 38 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 44 4e 53 8...LDAP_OPT_DNS 1470: 44 4f 4d 41 49 4e 5f 4e 41 4d 45 20 20 20 20 20 DOMAIN_NAME 1480: 20 20 20 20 3d 20 30 78 33 62 2c 0d 0a 09 4c 44 = 0x3b,...LD 1490: 41 50 5f 4f 50 54 5f 47 45 54 44 53 4e 41 4d 45 AP_OPT_GETDSNAME 14a0: 5f 46 4c 41 47 53 20 20 20 20 20 20 20 20 3d 20 _FLAGS = 14b0: 30 78 33 64 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 0x3d,...LDAP_OPT 14c0: 5f 48 4f 53 54 5f 52 45 41 43 48 41 42 4c 45 2c _HOST_REACHABLE, 14d0: 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 50 52 4f 4d ...LDAP_OPT_PROM 14e0: 50 54 5f 43 52 45 44 45 4e 54 49 41 4c 53 2c 0d PT_CREDENTIALS,. 14f0: 0a 09 4c 44 41 50 5f 4f 50 54 5f 54 43 50 5f 4b ..LDAP_OPT_TCP_K 1500: 45 45 50 41 4c 49 56 45 2c 20 20 20 20 20 20 2f EEPALIVE, / 1510: 2f 20 3d 20 30 78 34 30 0d 0a 09 4c 44 41 50 5f / = 0x40...LDAP_ 1520: 4f 50 54 5f 52 45 46 45 52 52 41 4c 5f 43 41 4c OPT_REFERRAL_CAL 1530: 4c 42 41 43 4b 20 20 20 20 20 20 3d 20 30 78 37 LBACK = 0x7 1540: 30 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 43 4c 0,...LDAP_OPT_CL 1550: 49 45 4e 54 5f 43 45 52 54 49 46 49 43 41 54 45 IENT_CERTIFICATE 1560: 20 20 20 20 20 3d 20 30 78 38 30 2c 0d 0a 09 4c = 0x80,...L 1570: 44 41 50 5f 4f 50 54 5f 53 45 52 56 45 52 5f 43 DAP_OPT_SERVER_C 1580: 45 52 54 49 46 49 43 41 54 45 2c 20 2f 2f 20 3d ERTIFICATE, // = 1590: 20 30 78 38 31 0d 0a 09 4c 44 41 50 5f 4f 50 54 0x81...LDAP_OPT 15a0: 5f 41 55 54 4f 5f 52 45 43 4f 4e 4e 45 43 54 20 _AUTO_RECONNECT 15b0: 20 20 20 20 20 20 20 20 3d 20 30 78 39 31 2c 0d = 0x91,. 15c0: 0a 09 4c 44 41 50 5f 4f 50 54 5f 53 53 50 49 5f ..LDAP_OPT_SSPI_ 15d0: 46 4c 41 47 53 2c 0d 0a 09 4c 44 41 50 5f 4f 50 FLAGS,...LDAP_OP 15e0: 54 5f 53 53 4c 5f 49 4e 46 4f 2c 0d 0a 09 4c 44 T_SSL_INFO,...LD 15f0: 41 50 5f 4f 50 54 5f 54 4c 53 5f 49 4e 46 4f 20 AP_OPT_TLS_INFO 1600: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 3d 20 = 1610: 4c 44 41 50 5f 4f 50 54 5f 53 53 4c 5f 49 4e 46 LDAP_OPT_SSL_INF 1620: 4f 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 52 45 O,...LDAP_OPT_RE 1630: 46 5f 44 45 52 45 46 5f 43 4f 4e 4e 5f 50 45 52 F_DEREF_CONN_PER 1640: 5f 4d 53 47 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 _MSG,...LDAP_OPT 1650: 5f 53 49 47 4e 2c 0d 0a 09 4c 44 41 50 5f 4f 50 _SIGN,...LDAP_OP 1660: 54 5f 45 4e 43 52 59 50 54 2c 0d 0a 09 4c 44 41 T_ENCRYPT,...LDA 1670: 50 5f 4f 50 54 5f 53 41 53 4c 5f 4d 45 54 48 4f P_OPT_SASL_METHO 1680: 44 2c 0d 0a 09 4c 44 41 50 5f 4f 50 54 5f 41 52 D,...LDAP_OPT_AR 1690: 45 43 5f 45 58 43 4c 55 53 49 56 45 2c 0d 0a 09 EC_EXCLUSIVE,... 16a0: 4c 44 41 50 5f 4f 50 54 5f 53 45 43 55 52 49 54 LDAP_OPT_SECURIT 16b0: 59 5f 43 4f 4e 54 45 58 54 2c 0d 0a 09 4c 44 41 Y_CONTEXT,...LDA 16c0: 50 5f 4f 50 54 5f 52 4f 4f 54 44 53 45 5f 43 41 P_OPT_ROOTDSE_CA 16d0: 43 48 45 20 20 20 20 20 20 20 2f 2f 20 3d 20 30 CHE // = 0 16e0: 78 39 61 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 7b x9a..}....enum { 16f0: 0d 0a 09 4c 44 41 50 5f 44 45 52 45 46 5f 4e 45 ...LDAP_DEREF_NE 1700: 56 45 52 2c 0d 0a 09 4c 44 41 50 5f 44 45 52 45 VER,...LDAP_DERE 1710: 46 5f 53 45 41 52 43 48 49 4e 47 2c 0d 0a 09 4c F_SEARCHING,...L 1720: 44 41 50 5f 44 45 52 45 46 5f 46 49 4e 44 49 4e DAP_DEREF_FINDIN 1730: 47 2c 0d 0a 09 4c 44 41 50 5f 44 45 52 45 46 5f G,...LDAP_DEREF_ 1740: 41 4c 57 41 59 53 0d 0a 7d 0d 0a 0d 0a 63 6f 6e ALWAYS..}....con 1750: 73 74 20 4c 44 41 50 5f 4e 4f 5f 4c 49 4d 49 54 st LDAP_NO_LIMIT 1760: 20 3d 20 30 3b 0d 0a 0d 0a 63 6f 6e 73 74 20 54 = 0;....const T 1770: 43 48 41 52 5b 5d 20 4c 44 41 50 5f 43 4f 4e 54 CHAR[] LDAP_CONT 1780: 52 4f 4c 5f 52 45 46 45 52 52 41 4c 53 20 3d 20 ROL_REFERRALS = 1790: 22 31 2e 32 2e 38 34 30 2e 31 31 33 35 35 36 2e "1.2.840.113556. 17a0: 31 2e 34 2e 36 31 36 22 3b 0d 0a 0d 0a 2f 2f 20 1.4.616";....// 17b0: 46 49 58 4d 45 3a 20 63 68 65 63 6b 20 74 79 70 FIXME: check typ 17c0: 65 20 28 64 65 63 6c 61 72 65 64 20 77 69 74 68 e (declared with 17d0: 20 55 20 73 75 66 66 69 78 20 69 6e 20 4d 69 6e U suffix in Min 17e0: 47 57 29 0d 0a 65 6e 75 6d 20 3a 20 75 69 6e 74 GW)..enum : uint 17f0: 20 7b 0d 0a 09 4c 44 41 50 5f 43 48 41 53 45 5f {...LDAP_CHASE_ 1800: 53 55 42 4f 52 44 49 4e 41 54 45 5f 52 45 46 45 SUBORDINATE_REFE 1810: 52 52 41 4c 53 20 3d 20 30 78 32 30 2c 0d 0a 09 RRALS = 0x20,... 1820: 4c 44 41 50 5f 43 48 41 53 45 5f 45 58 54 45 52 LDAP_CHASE_EXTER 1830: 4e 41 4c 5f 52 45 46 45 52 52 41 4c 53 20 20 20 NAL_REFERRALS 1840: 20 3d 20 30 78 34 30 0d 0a 7d 0d 0a 0d 0a 65 6e = 0x40..}....en 1850: 75 6d 20 7b 0d 0a 09 4c 44 41 50 5f 53 43 4f 50 um {...LDAP_SCOP 1860: 45 5f 44 45 46 41 55 4c 54 20 3d 20 2d 31 2c 0d E_DEFAULT = -1,. 1870: 0a 09 4c 44 41 50 5f 53 43 4f 50 45 5f 42 41 53 ..LDAP_SCOPE_BAS 1880: 45 2c 0d 0a 09 4c 44 41 50 5f 53 43 4f 50 45 5f E,...LDAP_SCOPE_ 1890: 4f 4e 45 4c 45 56 45 4c 2c 0d 0a 09 4c 44 41 50 ONELEVEL,...LDAP 18a0: 5f 53 43 4f 50 45 5f 53 55 42 54 52 45 45 0d 0a _SCOPE_SUBTREE.. 18b0: 7d 0d 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 4c 44 }....enum {...LD 18c0: 41 50 5f 4d 4f 44 5f 41 44 44 2c 0d 0a 09 4c 44 AP_MOD_ADD,...LD 18d0: 41 50 5f 4d 4f 44 5f 44 45 4c 45 54 45 2c 0d 0a AP_MOD_DELETE,.. 18e0: 09 4c 44 41 50 5f 4d 4f 44 5f 52 45 50 4c 41 43 .LDAP_MOD_REPLAC 18f0: 45 2c 0d 0a 09 4c 44 41 50 5f 4d 4f 44 5f 42 56 E,...LDAP_MOD_BV 1900: 41 4c 55 45 53 20 3d 20 30 78 38 30 0d 0a 7d 0d ALUES = 0x80..}. 1910: 0a 0d 0a 65 6e 75 6d 20 3a 20 69 6e 74 20 7b 0d ...enum : int {. 1920: 0a 09 4c 44 41 50 5f 52 45 53 5f 42 49 4e 44 20 ..LDAP_RES_BIND 1930: 20 20 20 20 20 20 20 20 20 20 20 20 3d 20 30 78 = 0x 1940: 36 31 2c 0d 0a 09 4c 44 41 50 5f 52 45 53 5f 53 61,...LDAP_RES_S 1950: 45 41 52 43 48 5f 45 4e 54 52 59 20 20 20 20 20 EARCH_ENTRY 1960: 3d 20 30 78 36 34 2c 0d 0a 09 4c 44 41 50 5f 52 = 0x64,...LDAP_R 1970: 45 53 5f 53 45 41 52 43 48 5f 52 45 53 55 4c 54 ES_SEARCH_RESULT 1980: 20 20 20 20 3d 20 30 78 36 35 2c 0d 0a 09 4c 44 = 0x65,...LD 1990: 41 50 5f 52 45 53 5f 4d 4f 44 49 46 59 20 20 20 AP_RES_MODIFY 19a0: 20 20 20 20 20 20 20 20 3d 20 30 78 36 37 2c 0d = 0x67,. 19b0: 0a 09 4c 44 41 50 5f 52 45 53 5f 41 44 44 20 20 ..LDAP_RES_ADD 19c0: 20 20 20 20 20 20 20 20 20 20 20 20 3d 20 30 78 = 0x 19d0: 36 39 2c 0d 0a 09 4c 44 41 50 5f 52 45 53 5f 44 69,...LDAP_RES_D 19e0: 45 4c 45 54 45 20 20 20 20 20 20 20 20 20 20 20 ELETE 19f0: 3d 20 30 78 36 62 2c 0d 0a 09 4c 44 41 50 5f 52 = 0x6b,...LDAP_R 1a00: 45 53 5f 4d 4f 44 52 44 4e 20 20 20 20 20 20 20 ES_MODRDN 1a10: 20 20 20 20 3d 20 30 78 36 64 2c 0d 0a 09 4c 44 = 0x6d,...LD 1a20: 41 50 5f 52 45 53 5f 43 4f 4d 50 41 52 45 20 20 AP_RES_COMPARE 1a30: 20 20 20 20 20 20 20 20 3d 20 30 78 36 66 2c 0d = 0x6f,. 1a40: 0a 09 4c 44 41 50 5f 52 45 53 5f 53 45 41 52 43 ..LDAP_RES_SEARC 1a50: 48 5f 52 45 46 45 52 45 4e 43 45 20 3d 20 30 78 H_REFERENCE = 0x 1a60: 37 33 2c 0d 0a 09 4c 44 41 50 5f 52 45 53 5f 45 73,...LDAP_RES_E 1a70: 58 54 45 4e 44 45 44 20 20 20 20 20 20 20 20 20 XTENDED 1a80: 3d 20 30 78 37 38 2c 0d 0a 09 4c 44 41 50 5f 52 = 0x78,...LDAP_R 1a90: 45 53 5f 41 4e 59 20 20 20 20 20 20 20 20 20 20 ES_ANY 1aa0: 20 20 20 20 3d 20 2d 31 0d 0a 7d 0d 0a 0d 0a 65 = -1..}....e 1ab0: 6e 75 6d 20 7b 0d 0a 09 4c 44 41 50 5f 4d 53 47 num {...LDAP_MSG 1ac0: 5f 4f 4e 45 2c 0d 0a 09 4c 44 41 50 5f 4d 53 47 _ONE,...LDAP_MSG 1ad0: 5f 41 4c 4c 2c 0d 0a 09 4c 44 41 50 5f 4d 53 47 _ALL,...LDAP_MSG 1ae0: 5f 52 45 43 45 49 56 45 44 0d 0a 7d 0d 0a 0d 0a _RECEIVED..}.... 1af0: 63 6f 6e 73 74 20 54 43 48 41 52 5b 5d 0d 0a 09 const TCHAR[]... 1b00: 4c 44 41 50 5f 53 45 52 56 45 52 5f 53 4f 52 54 LDAP_SERVER_SORT 1b10: 5f 4f 49 44 20 20 20 20 20 20 20 20 20 3d 20 22 _OID = " 1b20: 31 2e 32 2e 38 34 30 2e 31 31 33 35 35 36 2e 31 1.2.840.113556.1 1b30: 2e 34 2e 34 37 33 22 2c 0d 0a 09 4c 44 41 50 5f .4.473",...LDAP_ 1b40: 53 45 52 56 45 52 5f 52 45 53 50 5f 53 4f 52 54 SERVER_RESP_SORT 1b50: 5f 4f 49 44 20 20 20 20 3d 20 22 31 2e 32 2e 38 _OID = "1.2.8 1b60: 34 30 2e 31 31 33 35 35 36 2e 31 2e 34 2e 34 37 40.113556.1.4.47 1b70: 34 22 2c 0d 0a 09 4c 44 41 50 5f 50 41 47 45 44 4",...LDAP_PAGED 1b80: 5f 52 45 53 55 4c 54 5f 4f 49 44 5f 53 54 52 49 _RESULT_OID_STRI 1b90: 4e 47 20 3d 20 22 31 2e 32 2e 38 34 30 2e 31 31 NG = "1.2.840.11 1ba0: 33 35 35 36 2e 31 2e 34 2e 33 31 39 22 2c 0d 0a 3556.1.4.319",.. 1bb0: 09 4c 44 41 50 5f 43 4f 4e 54 52 4f 4c 5f 56 4c .LDAP_CONTROL_VL 1bc0: 56 52 45 51 55 45 53 54 20 20 20 20 20 20 3d 20 VREQUEST = 1bd0: 22 32 2e 31 36 2e 38 34 30 2e 31 2e 31 31 33 37 "2.16.840.1.1137 1be0: 33 30 2e 33 2e 34 2e 39 22 2c 0d 0a 09 4c 44 41 30.3.4.9",...LDA 1bf0: 50 5f 43 4f 4e 54 52 4f 4c 5f 56 4c 56 52 45 53 P_CONTROL_VLVRES 1c00: 50 4f 4e 53 45 20 20 20 20 20 3d 20 22 32 2e 31 PONSE = "2.1 1c10: 36 2e 38 34 30 2e 31 2e 31 31 33 37 33 30 2e 33 6.840.1.113730.3 1c20: 2e 34 2e 31 30 22 2c 0d 0a 09 4c 44 41 50 5f 53 .4.10",...LDAP_S 1c30: 54 41 52 54 5f 54 4c 53 5f 4f 49 44 20 20 20 20 TART_TLS_OID 1c40: 20 20 20 20 20 20 20 3d 20 22 31 2e 33 2e 36 2e = "1.3.6. 1c50: 31 2e 34 2e 31 2e 31 34 36 36 2e 32 30 30 33 37 1.4.1.1466.20037 1c60: 22 2c 0d 0a 09 4c 44 41 50 5f 54 54 4c 5f 45 58 ",...LDAP_TTL_EX 1c70: 54 45 4e 44 45 44 5f 4f 50 5f 4f 49 44 20 20 20 TENDED_OP_OID 1c80: 20 20 3d 20 22 31 2e 33 2e 36 2e 31 2e 34 2e 31 = "1.3.6.1.4.1 1c90: 2e 31 34 36 36 2e 31 30 31 2e 31 31 39 2e 31 22 .1466.101.119.1" 1ca0: 3b 0d 0a 0d 0a 65 6e 75 6d 20 7b 0d 0a 09 4c 44 ;....enum {...LD 1cb0: 41 50 5f 41 55 54 48 5f 4e 4f 4e 45 20 20 20 20 AP_AUTH_NONE 1cc0: 20 20 3d 20 30 78 30 30 55 2c 0d 0a 09 4c 44 41 = 0x00U,...LDA 1cd0: 50 5f 41 55 54 48 5f 53 49 4d 50 4c 45 20 20 20 P_AUTH_SIMPLE 1ce0: 20 3d 20 30 78 38 30 55 2c 0d 0a 09 4c 44 41 50 = 0x80U,...LDAP 1cf0: 5f 41 55 54 48 5f 53 41 53 4c 20 20 20 20 20 20 _AUTH_SASL 1d00: 3d 20 30 78 38 33 55 2c 0d 0a 09 4c 44 41 50 5f = 0x83U,...LDAP_ 1d10: 41 55 54 48 5f 4f 54 48 45 52 4b 49 4e 44 20 3d AUTH_OTHERKIND = 1d20: 20 30 78 38 36 55 2c 0d 0a 09 4c 44 41 50 5f 41 0x86U,...LDAP_A 1d30: 55 54 48 5f 45 58 54 45 52 4e 41 4c 20 20 3d 20 UTH_EXTERNAL = 1d40: 4c 44 41 50 5f 41 55 54 48 5f 4f 54 48 45 52 4b LDAP_AUTH_OTHERK 1d50: 49 4e 44 20 7c 20 30 78 30 30 32 30 55 2c 0d 0a IND | 0x0020U,.. 1d60: 09 4c 44 41 50 5f 41 55 54 48 5f 53 49 43 49 4c .LDAP_AUTH_SICIL 1d70: 59 20 20 20 20 3d 20 4c 44 41 50 5f 41 55 54 48 Y = LDAP_AUTH 1d80: 5f 4f 54 48 45 52 4b 49 4e 44 20 7c 20 30 78 30 _OTHERKIND | 0x0 1d90: 32 30 30 55 2c 0d 0a 09 4c 44 41 50 5f 41 55 54 200U,...LDAP_AUT 1da0: 48 5f 4e 45 47 4f 54 49 41 54 45 20 3d 20 4c 44 H_NEGOTIATE = LD 1db0: 41 50 5f 41 55 54 48 5f 4f 54 48 45 52 4b 49 4e AP_AUTH_OTHERKIN 1dc0: 44 20 7c 20 30 78 30 34 30 30 55 2c 0d 0a 09 4c D | 0x0400U,...L 1dd0: 44 41 50 5f 41 55 54 48 5f 4d 53 4e 20 20 20 20 DAP_AUTH_MSN 1de0: 20 20 20 3d 20 4c 44 41 50 5f 41 55 54 48 5f 4f = LDAP_AUTH_O 1df0: 54 48 45 52 4b 49 4e 44 20 7c 20 30 78 30 38 30 THERKIND | 0x080 1e00: 30 55 2c 0d 0a 09 4c 44 41 50 5f 41 55 54 48 5f 0U,...LDAP_AUTH_ 1e10: 4e 54 4c 4d 20 20 20 20 20 20 3d 20 4c 44 41 50 NTLM = LDAP 1e20: 5f 41 55 54 48 5f 4f 54 48 45 52 4b 49 4e 44 20 _AUTH_OTHERKIND 1e30: 7c 20 30 78 31 30 30 30 55 2c 0d 0a 09 4c 44 41 | 0x1000U,...LDA 1e40: 50 5f 41 55 54 48 5f 44 49 47 45 53 54 20 20 20 P_AUTH_DIGEST 1e50: 20 3d 20 4c 44 41 50 5f 41 55 54 48 5f 4f 54 48 = LDAP_AUTH_OTH 1e60: 45 52 4b 49 4e 44 20 7c 20 30 78 34 30 30 30 55 ERKIND | 0x4000U 1e70: 2c 0d 0a 09 4c 44 41 50 5f 41 55 54 48 5f 44 50 ,...LDAP_AUTH_DP 1e80: 41 20 20 20 20 20 20 20 3d 20 4c 44 41 50 5f 41 A = LDAP_A 1e90: 55 54 48 5f 4f 54 48 45 52 4b 49 4e 44 20 7c 20 UTH_OTHERKIND | 1ea0: 30 78 32 30 30 30 55 2c 0d 0a 09 4c 44 41 50 5f 0x2000U,...LDAP_ 1eb0: 41 55 54 48 5f 53 53 50 49 20 20 20 20 20 20 3d AUTH_SSPI = 1ec0: 20 4c 44 41 50 5f 41 55 54 48 5f 4e 45 47 4f 54 LDAP_AUTH_NEGOT 1ed0: 49 41 54 45 0d 0a 7d 0d 0a 0d 0a 65 6e 75 6d 20 IATE..}....enum 1ee0: 7b 0d 0a 09 4c 44 41 50 5f 46 49 4c 54 45 52 5f {...LDAP_FILTER_ 1ef0: 41 4e 44 20 20 20 20 20 20 20 20 3d 20 30 78 61 AND = 0xa 1f00: 30 2c 0d 0a 09 4c 44 41 50 5f 46 49 4c 54 45 52 0,...LDAP_FILTER 1f10: 5f 4f 52 2c 0d 0a 09 4c 44 41 50 5f 46 49 4c 54 _OR,...LDAP_FILT 1f20: 45 52 5f 4e 4f 54 2c 0d 0a 09 4c 44 41 50 5f 46 ER_NOT,...LDAP_F 1f30: 49 4c 54 45 52 5f 45 51 55 41 4c 49 54 59 2c 0d ILTER_EQUALITY,. 1f40: 0a 09 4c 44 41 50 5f 46 49 4c 54 45 52 5f 53 55 ..LDAP_FILTER_SU 1f50: 42 53 54 52 49 4e 47 53 2c 0d 0a 09 4c 44 41 50 BSTRINGS,...LDAP 1f60: 5f 46 49 4c 54 45 52 5f 47 45 2c 0d 0a 09 4c 44 _FILTER_GE,...LD 1f70: 41 50 5f 46 49 4c 54 45 52 5f 4c 45 2c 20 20 20 AP_FILTER_LE, 1f80: 20 20 2f 2f 20 3d 20 30 78 61 36 0d 0a 09 4c 44 // = 0xa6...LD 1f90: 41 50 5f 46 49 4c 54 45 52 5f 41 50 50 52 4f 58 AP_FILTER_APPROX 1fa0: 20 20 20 20 20 3d 20 30 78 61 38 2c 0d 0a 09 4c = 0xa8,...L 1fb0: 44 41 50 5f 46 49 4c 54 45 52 5f 45 58 54 45 4e DAP_FILTER_EXTEN 1fc0: 53 49 42 4c 45 2c 0d 0a 09 4c 44 41 50 5f 46 49 SIBLE,...LDAP_FI 1fd0: 4c 54 45 52 5f 50 52 45 53 45 4e 54 20 20 20 20 LTER_PRESENT 1fe0: 3d 20 30 78 38 37 0d 0a 7d 0d 0a 0d 0a 65 6e 75 = 0x87..}....enu 1ff0: 6d 20 7b 0d 0a 09 4c 44 41 50 5f 53 55 42 53 54 m {...LDAP_SUBST 2000: 52 49 4e 47 5f 49 4e 49 54 49 41 4c 20 3d 20 30 RING_INITIAL = 0 2010: 78 38 30 2c 0d 0a 09 4c 44 41 50 5f 53 55 42 53 x80,...LDAP_SUBS 2020: 54 52 49 4e 47 5f 41 4e 59 2c 0d 0a 09 4c 44 41 TRING_ANY,...LDA 2030: 50 5f 53 55 42 53 54 52 49 4e 47 5f 46 49 4e 41 P_SUBSTRING_FINA 2040: 4c 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 4c L..}....struct L 2050: 44 41 50 20 7b 0d 0a 09 63 68 61 72 5b 37 36 5d DAP {...char[76] 2060: 20 52 65 73 65 72 76 65 64 3b 0d 0a 09 50 43 48 Reserved;...PCH 2070: 41 52 20 20 20 20 6c 64 5f 68 6f 73 74 3b 0d 0a AR ld_host;.. 2080: 09 55 4c 4f 4e 47 20 20 20 20 6c 64 5f 76 65 72 .ULONG ld_ver 2090: 73 69 6f 6e 3b 0d 0a 09 55 43 48 41 52 20 20 20 sion;...UCHAR 20a0: 20 6c 64 5f 6c 62 65 72 6f 70 74 69 6f 6e 73 3b ld_lberoptions; 20b0: 0d 0a 09 69 6e 74 20 20 20 20 20 20 6c 64 5f 64 ...int ld_d 20c0: 65 72 65 66 3b 0d 0a 09 69 6e 74 20 20 20 20 20 eref;...int 20d0: 20 6c 64 5f 74 69 6d 65 6c 69 6d 69 74 3b 0d 0a ld_timelimit;.. 20e0: 09 69 6e 74 20 20 20 20 20 20 6c 64 5f 73 69 7a .int ld_siz 20f0: 65 6c 69 6d 69 74 3b 0d 0a 09 69 6e 74 20 20 20 elimit;...int 2100: 20 20 20 6c 64 5f 65 72 72 6e 6f 3b 0d 0a 09 50 ld_errno;...P 2110: 43 48 41 52 20 20 20 20 6c 64 5f 6d 61 74 63 68 CHAR ld_match 2120: 65 64 3b 0d 0a 09 50 43 48 41 52 20 20 20 20 6c ed;...PCHAR l 2130: 64 5f 65 72 72 6f 72 3b 0d 0a 7d 0d 0a 61 6c 69 d_error;..}..ali 2140: 61 73 20 4c 44 41 50 2a 20 50 4c 44 41 50 3b 0d as LDAP* PLDAP;. 2150: 0a 0d 0a 73 74 72 75 63 74 20 4c 44 41 50 4d 65 ...struct LDAPMe 2160: 73 73 61 67 65 20 7b 0d 0a 09 55 4c 4f 4e 47 20 ssage {...ULONG 2170: 20 20 20 20 20 20 20 6c 6d 5f 6d 73 67 69 64 3b lm_msgid; 2180: 0d 0a 09 55 4c 4f 4e 47 20 20 20 20 20 20 20 20 ...ULONG 2190: 6c 6d 5f 6d 73 67 74 79 70 65 3b 0d 0a 09 42 65 lm_msgtype;...Be 21a0: 72 45 6c 65 6d 65 6e 74 2a 20 20 6c 6d 5f 62 65 rElement* lm_be 21b0: 72 3b 0d 0a 09 4c 44 41 50 4d 65 73 73 61 67 65 r;...LDAPMessage 21c0: 2a 20 6c 6d 5f 63 68 61 69 6e 3b 0d 0a 09 4c 44 * lm_chain;...LD 21d0: 41 50 4d 65 73 73 61 67 65 2a 20 6c 6d 5f 6e 65 APMessage* lm_ne 21e0: 78 74 3b 0d 0a 09 55 4c 4f 4e 47 20 20 20 20 20 xt;...ULONG 21f0: 20 20 20 6c 6d 5f 74 69 6d 65 3b 0d 0a 7d 0d 0a lm_time;..}.. 2200: 61 6c 69 61 73 20 4c 44 41 50 4d 65 73 73 61 67 alias LDAPMessag 2210: 65 2a 20 50 4c 44 41 50 4d 65 73 73 61 67 65 3b e* PLDAPMessage; 2220: 0d 0a 0d 0a 73 74 72 75 63 74 20 4c 44 41 50 5f ....struct LDAP_ 2230: 54 49 4d 45 56 41 4c 20 7b 0d 0a 09 4c 4f 4e 47 TIMEVAL {...LONG 2240: 20 74 76 5f 73 65 63 3b 0d 0a 09 4c 4f 4e 47 20 tv_sec;...LONG 2250: 74 76 5f 75 73 65 63 3b 0d 0a 7d 0d 0a 61 6c 69 tv_usec;..}..ali 2260: 61 73 20 4c 44 41 50 5f 54 49 4d 45 56 41 4c 2a as LDAP_TIMEVAL* 2270: 20 50 4c 44 41 50 5f 54 49 4d 45 56 41 4c 3b 0d PLDAP_TIMEVAL;. 2280: 0a 0d 0a 73 74 72 75 63 74 20 4c 44 41 50 41 50 ...struct LDAPAP 2290: 49 49 6e 66 6f 41 20 7b 0d 0a 09 69 6e 74 20 20 IInfoA {...int 22a0: 20 20 6c 64 61 70 61 69 5f 69 6e 66 6f 5f 76 65 ldapai_info_ve 22b0: 72 73 69 6f 6e 3b 0d 0a 09 69 6e 74 20 20 20 20 rsion;...int 22c0: 6c 64 61 70 61 69 5f 61 70 69 5f 76 65 72 73 69 ldapai_api_versi 22d0: 6f 6e 3b 0d 0a 09 69 6e 74 20 20 20 20 6c 64 61 on;...int lda 22e0: 70 61 69 5f 70 72 6f 74 6f 63 6f 6c 5f 76 65 72 pai_protocol_ver 22f0: 73 69 6f 6e 3b 0d 0a 09 63 68 61 72 2a 2a 20 6c sion;...char** l 2300: 64 61 70 61 69 5f 65 78 74 65 6e 73 69 6f 6e 73 dapai_extensions 2310: 3b 0d 0a 09 63 68 61 72 2a 20 20 6c 64 61 70 61 ;...char* ldapa 2320: 69 5f 76 65 6e 64 6f 72 5f 6e 61 6d 65 3b 0d 0a i_vendor_name;.. 2330: 09 69 6e 74 20 20 20 20 6c 64 61 70 61 69 5f 76 .int ldapai_v 2340: 65 6e 64 6f 72 5f 76 65 72 73 69 6f 6e 3b 0d 0a endor_version;.. 2350: 7d 0d 0a 61 6c 69 61 73 20 4c 44 41 50 41 50 49 }..alias LDAPAPI 2360: 49 6e 66 6f 41 2a 20 50 4c 44 41 50 41 50 49 49 InfoA* PLDAPAPII 2370: 6e 66 6f 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 nfoA;....struct 2380: 4c 44 41 50 41 50 49 49 6e 66 6f 57 20 7b 0d 0a LDAPAPIInfoW {.. 2390: 09 69 6e 74 20 20 20 20 20 6c 64 61 70 61 69 5f .int ldapai_ 23a0: 69 6e 66 6f 5f 76 65 72 73 69 6f 6e 3b 0d 0a 09 info_version;... 23b0: 69 6e 74 20 20 20 20 20 6c 64 61 70 61 69 5f 61 int ldapai_a 23c0: 70 69 5f 76 65 72 73 69 6f 6e 3b 0d 0a 09 69 6e pi_version;...in 23d0: 74 20 20 20 20 20 6c 64 61 70 61 69 5f 70 72 6f t ldapai_pro 23e0: 74 6f 63 6f 6c 5f 76 65 72 73 69 6f 6e 3b 0d 0a tocol_version;.. 23f0: 09 50 57 43 48 41 52 2a 20 6c 64 61 70 61 69 5f .PWCHAR* ldapai_ 2400: 65 78 74 65 6e 73 69 6f 6e 73 3b 0d 0a 09 50 57 extensions;...PW 2410: 43 48 41 52 20 20 6c 64 61 70 61 69 5f 76 65 6e CHAR ldapai_ven 2420: 64 6f 72 5f 6e 61 6d 65 3b 0d 0a 09 69 6e 74 20 dor_name;...int 2430: 20 20 20 20 6c 64 61 70 61 69 5f 76 65 6e 64 6f ldapai_vendo 2440: 72 5f 76 65 72 73 69 6f 6e 3b 0d 0a 7d 0d 0a 61 r_version;..}..a 2450: 6c 69 61 73 20 4c 44 41 50 41 50 49 49 6e 66 6f lias LDAPAPIInfo 2460: 57 2a 20 50 4c 44 41 50 41 50 49 49 6e 66 6f 57 W* PLDAPAPIInfoW 2470: 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 4c 44 41 50 ;....struct LDAP 2480: 41 50 49 46 65 61 74 75 72 65 49 6e 66 6f 41 20 APIFeatureInfoA 2490: 7b 0d 0a 09 69 6e 74 20 20 20 6c 64 61 70 61 69 {...int ldapai 24a0: 66 5f 69 6e 66 6f 5f 76 65 72 73 69 6f 6e 3b 0d f_info_version;. 24b0: 0a 09 63 68 61 72 2a 20 6c 64 61 70 61 69 66 5f ..char* ldapaif_ 24c0: 6e 61 6d 65 3b 0d 0a 09 69 6e 74 20 20 20 6c 64 name;...int ld 24d0: 61 70 61 69 66 5f 76 65 72 73 69 6f 6e 3b 0d 0a apaif_version;.. 24e0: 7d 0d 0a 61 6c 69 61 73 20 4c 44 41 50 41 50 49 }..alias LDAPAPI 24f0: 46 65 61 74 75 72 65 49 6e 66 6f 41 2a 20 50 4c FeatureInfoA* PL 2500: 44 41 50 41 50 49 46 65 61 74 75 72 65 49 6e 66 DAPAPIFeatureInf 2510: 6f 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 4c 44 oA;....struct LD 2520: 41 50 41 50 49 46 65 61 74 75 72 65 49 6e 66 6f APAPIFeatureInfo 2530: 57 20 7b 0d 0a 09 69 6e 74 20 20 20 20 6c 64 61 W {...int lda 2540: 70 61 69 66 5f 69 6e 66 6f 5f 76 65 72 73 69 6f paif_info_versio 2550: 6e 3b 0d 0a 09 50 57 43 48 41 52 20 6c 64 61 70 n;...PWCHAR ldap 2560: 61 69 66 5f 6e 61 6d 65 3b 0d 0a 09 69 6e 74 20 aif_name;...int 2570: 20 20 20 6c 64 61 70 61 69 66 5f 76 65 72 73 69 ldapaif_versi 2580: 6f 6e 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 4c 44 on;..}..alias LD 2590: 41 50 41 50 49 46 65 61 74 75 72 65 49 6e 66 6f APAPIFeatureInfo 25a0: 57 2a 20 50 4c 44 41 50 41 50 49 46 65 61 74 75 W* PLDAPAPIFeatu 25b0: 72 65 49 6e 66 6f 57 3b 0d 0a 0d 0a 73 74 72 75 reInfoW;....stru 25c0: 63 74 20 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 20 ct LDAPControlA 25d0: 7b 0d 0a 09 50 43 48 41 52 20 20 20 20 6c 64 63 {...PCHAR ldc 25e0: 74 6c 5f 6f 69 64 3b 0d 0a 09 42 65 72 56 61 6c tl_oid;...BerVal 25f0: 75 65 20 6c 64 63 74 6c 5f 76 61 6c 75 65 3b 0d ue ldctl_value;. 2600: 0a 09 42 4f 4f 4c 45 41 4e 20 20 6c 64 63 74 6c ..BOOLEAN ldctl 2610: 5f 69 73 63 72 69 74 69 63 61 6c 3b 0d 0a 7d 0d _iscritical;..}. 2620: 0a 61 6c 69 61 73 20 4c 44 41 50 43 6f 6e 74 72 .alias LDAPContr 2630: 6f 6c 41 2a 20 50 4c 44 41 50 43 6f 6e 74 72 6f olA* PLDAPContro 2640: 6c 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 4c 44 lA;....struct LD 2650: 41 50 43 6f 6e 74 72 6f 6c 57 20 7b 0d 0a 09 50 APControlW {...P 2660: 57 43 48 41 52 20 20 20 6c 64 63 74 6c 5f 6f 69 WCHAR ldctl_oi 2670: 64 3b 0d 0a 09 42 65 72 56 61 6c 75 65 20 6c 64 d;...BerValue ld 2680: 63 74 6c 5f 76 61 6c 75 65 3b 0d 0a 09 42 4f 4f ctl_value;...BOO 2690: 4c 45 41 4e 20 20 6c 64 63 74 6c 5f 69 73 63 72 LEAN ldctl_iscr 26a0: 69 74 69 63 61 6c 3b 0d 0a 7d 0d 0a 61 6c 69 61 itical;..}..alia 26b0: 73 20 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 20 s LDAPControlW* 26c0: 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 3b 0d 0a PLDAPControlW;.. 26d0: 0d 0a 2f 2a 09 44 6f 20 77 65 20 72 65 61 6c 6c ../*.Do we reall 26e0: 79 20 6e 65 65 64 20 74 68 65 73 65 3f 20 20 49 y need these? I 26f0: 6e 20 4d 69 6e 47 57 2c 20 4c 44 41 50 4d 6f 64 n MinGW, LDAPMod 2700: 41 2f 57 20 68 61 76 65 20 6f 6e 6c 79 20 6d 6f A/W have only mo 2710: 64 5f 6f 70 2c 20 6d 6f 64 5f 74 79 70 65 0d 0a d_op, mod_type.. 2720: 20 2a 09 61 6e 64 20 6d 6f 64 5f 76 61 6c 73 2c *.and mod_vals, 2730: 20 61 6e 64 20 6d 61 63 72 6f 73 20 61 72 65 20 and macros are 2740: 75 73 65 64 20 74 6f 20 73 69 6d 75 6c 61 74 65 used to simulate 2750: 20 61 6e 6f 6e 79 6d 6f 75 73 20 75 6e 69 6f 6e anonymous union 2760: 73 20 69 6e 20 74 68 6f 73 65 0d 0a 20 2a 09 73 s in those.. *.s 2770: 74 72 75 63 74 75 72 65 73 2e 0d 0a 20 2a 2f 0d tructures... */. 2780: 0a 75 6e 69 6f 6e 20 6d 6f 64 5f 76 61 6c 73 5f .union mod_vals_ 2790: 75 5f 74 41 20 7b 0d 0a 09 50 43 48 41 52 2a 20 u_tA {...PCHAR* 27a0: 20 20 20 20 6d 6f 64 76 5f 73 74 72 76 61 6c 73 modv_strvals 27b0: 3b 0d 0a 09 42 65 72 56 61 6c 75 65 2a 2a 20 6d ;...BerValue** m 27c0: 6f 64 76 5f 62 76 61 6c 73 3b 0d 0a 7d 0d 0a 0d odv_bvals;..}... 27d0: 0a 75 6e 69 6f 6e 20 6d 6f 64 5f 76 61 6c 73 5f .union mod_vals_ 27e0: 75 5f 74 57 20 7b 0d 0a 09 50 57 43 48 41 52 2a u_tW {...PWCHAR* 27f0: 20 20 20 20 6d 6f 64 76 5f 73 74 72 76 61 6c 73 modv_strvals 2800: 3b 0d 0a 09 42 65 72 56 61 6c 75 65 2a 2a 20 6d ;...BerValue** m 2810: 6f 64 76 5f 62 76 61 6c 73 3b 0d 0a 7d 0d 0a 0d odv_bvals;..}... 2820: 0a 73 74 72 75 63 74 20 4c 44 41 50 4d 6f 64 41 .struct LDAPModA 2830: 20 7b 0d 0a 09 55 4c 4f 4e 47 20 20 20 20 20 20 {...ULONG 2840: 20 20 20 6d 6f 64 5f 6f 70 3b 0d 0a 09 50 43 48 mod_op;...PCH 2850: 41 52 20 20 20 20 20 20 20 20 20 6d 6f 64 5f 74 AR mod_t 2860: 79 70 65 3b 0d 0a 0d 0a 09 75 6e 69 6f 6e 20 7b ype;.....union { 2870: 0d 0a 09 09 6d 6f 64 5f 76 61 6c 73 5f 75 5f 74 ....mod_vals_u_t 2880: 41 20 6d 6f 64 5f 76 61 6c 73 3b 0d 0a 09 09 2f A mod_vals;..../ 2890: 2f 20 54 68 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 / The following 28a0: 6d 65 6d 62 65 72 73 20 61 72 65 20 64 65 66 69 members are defi 28b0: 6e 65 64 20 61 73 20 6d 61 63 72 6f 73 20 69 6e ned as macros in 28c0: 20 4d 69 6e 47 57 2e 0d 0a 09 09 50 43 48 41 52 MinGW.....PCHAR 28d0: 2a 20 20 20 20 20 20 20 20 6d 6f 64 5f 76 61 6c * mod_val 28e0: 75 65 73 3b 0d 0a 09 09 42 65 72 56 61 6c 75 65 ues;....BerValue 28f0: 2a 2a 20 20 20 20 6d 6f 64 5f 62 76 61 6c 75 65 ** mod_bvalue 2900: 73 3b 0d 0a 09 7d 0d 0a 7d 0d 0a 61 6c 69 61 73 s;...}..}..alias 2910: 20 4c 44 41 50 4d 6f 64 41 2a 20 50 4c 44 41 50 LDAPModA* PLDAP 2920: 4d 6f 64 41 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 ModA;....struct 2930: 4c 44 41 50 4d 6f 64 57 20 7b 0d 0a 09 55 4c 4f LDAPModW {...ULO 2940: 4e 47 20 20 20 20 20 20 20 20 20 6d 6f 64 5f 6f NG mod_o 2950: 70 3b 0d 0a 09 50 57 43 48 41 52 20 20 20 20 20 p;...PWCHAR 2960: 20 20 20 6d 6f 64 5f 74 79 70 65 3b 0d 0a 0d 0a mod_type;.... 2970: 09 75 6e 69 6f 6e 20 7b 0d 0a 09 09 6d 6f 64 5f .union {....mod_ 2980: 76 61 6c 73 5f 75 5f 74 57 20 6d 6f 64 5f 76 61 vals_u_tW mod_va 2990: 6c 73 3b 0d 0a 09 09 2f 2f 20 54 68 65 20 66 6f ls;....// The fo 29a0: 6c 6c 6f 77 69 6e 67 20 6d 65 6d 62 65 72 73 20 llowing members 29b0: 61 72 65 20 64 65 66 69 6e 65 64 20 61 73 20 6d are defined as m 29c0: 61 63 72 6f 73 20 69 6e 20 4d 69 6e 47 57 2e 0d acros in MinGW.. 29d0: 0a 09 09 50 57 43 48 41 52 2a 20 20 20 20 20 20 ...PWCHAR* 29e0: 20 6d 6f 64 5f 76 61 6c 75 65 73 3b 0d 0a 09 09 mod_values;.... 29f0: 42 65 72 56 61 6c 75 65 2a 2a 20 20 20 20 6d 6f BerValue** mo 2a00: 64 5f 62 76 61 6c 75 65 73 3b 0d 0a 09 7d 0d 0a d_bvalues;...}.. 2a10: 7d 0d 0a 61 6c 69 61 73 20 4c 44 41 50 4d 6f 64 }..alias LDAPMod 2a20: 57 2a 20 50 4c 44 41 50 4d 6f 64 57 3b 0d 0a 0d W* PLDAPModW;... 2a30: 0a 2f 2a 20 4f 70 61 71 75 65 20 73 74 72 75 63 ./* Opaque struc 2a40: 74 75 72 65 0d 0a 20 2a 09 68 74 74 70 3a 2f 2f ture.. *.http:// 2a50: 6d 73 64 6e 2e 6d 69 63 72 6f 73 6f 66 74 2e 63 msdn.microsoft.c 2a60: 6f 6d 2f 6c 69 62 72 61 72 79 2f 65 6e 2d 75 73 om/library/en-us 2a70: 2f 6c 64 61 70 2f 6c 64 61 70 2f 6c 64 61 70 73 /ldap/ldap/ldaps 2a80: 65 61 72 63 68 2e 61 73 70 0d 0a 20 2a 2f 0d 0a earch.asp.. */.. 2a90: 73 74 72 75 63 74 20 4c 44 41 50 53 65 61 72 63 struct LDAPSearc 2aa0: 68 3b 0d 0a 61 6c 69 61 73 20 4c 44 41 50 53 65 h;..alias LDAPSe 2ab0: 61 72 63 68 2a 20 50 4c 44 41 50 53 65 61 72 63 arch* PLDAPSearc 2ac0: 68 3b 0d 0a 0d 0a 73 74 72 75 63 74 20 4c 44 41 h;....struct LDA 2ad0: 50 53 6f 72 74 4b 65 79 41 20 7b 0d 0a 09 50 43 PSortKeyA {...PC 2ae0: 48 41 52 20 20 20 73 6b 5f 61 74 74 72 74 79 70 HAR sk_attrtyp 2af0: 65 3b 0d 0a 09 50 43 48 41 52 20 20 20 73 6b 5f e;...PCHAR sk_ 2b00: 6d 61 74 63 68 72 75 6c 65 6f 69 64 3b 0d 0a 09 matchruleoid;... 2b10: 42 4f 4f 4c 45 41 4e 20 73 6b 5f 72 65 76 65 72 BOOLEAN sk_rever 2b20: 73 65 6f 72 64 65 72 3b 0d 0a 7d 0d 0a 61 6c 69 seorder;..}..ali 2b30: 61 73 20 4c 44 41 50 53 6f 72 74 4b 65 79 41 2a as LDAPSortKeyA* 2b40: 20 50 4c 44 41 50 53 6f 72 74 4b 65 79 41 3b 0d PLDAPSortKeyA;. 2b50: 0a 0d 0a 73 74 72 75 63 74 20 4c 44 41 50 53 6f ...struct LDAPSo 2b60: 72 74 4b 65 79 57 20 7b 0d 0a 09 50 57 43 48 41 rtKeyW {...PWCHA 2b70: 52 20 20 73 6b 5f 61 74 74 72 74 79 70 65 3b 0d R sk_attrtype;. 2b80: 0a 09 50 57 43 48 41 52 20 20 73 6b 5f 6d 61 74 ..PWCHAR sk_mat 2b90: 63 68 72 75 6c 65 6f 69 64 3b 0d 0a 09 42 4f 4f chruleoid;...BOO 2ba0: 4c 45 41 4e 20 73 6b 5f 72 65 76 65 72 73 65 6f LEAN sk_reverseo 2bb0: 72 64 65 72 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 rder;..}..alias 2bc0: 4c 44 41 50 53 6f 72 74 4b 65 79 57 2a 20 50 4c LDAPSortKeyW* PL 2bd0: 44 41 50 53 6f 72 74 4b 65 79 57 3b 0d 0a 0d 0a DAPSortKeyW;.... 2be0: 2f 2a 09 4d 69 6e 47 57 20 64 65 66 69 6e 65 73 /*.MinGW defines 2bf0: 20 74 68 65 73 65 20 61 73 20 69 6d 6d 65 64 69 these as immedi 2c00: 61 74 65 20 66 75 6e 63 74 69 6f 6e 20 74 79 70 ate function typ 2c10: 65 64 65 66 73 2c 20 77 68 69 63 68 20 64 6f 6e edefs, which don 2c20: 27 74 20 74 72 61 6e 73 6c 61 74 65 0d 0a 20 2a 't translate.. * 2c30: 09 77 65 6c 6c 20 69 6e 74 6f 20 44 2e 0d 0a 20 .well into D... 2c40: 2a 2f 0d 0a 65 78 74 65 72 6e 20 28 43 29 20 7b */..extern (C) { 2c50: 0d 0a 09 61 6c 69 61 73 20 55 4c 4f 4e 47 20 66 ...alias ULONG f 2c60: 75 6e 63 74 69 6f 6e 28 50 4c 44 41 50 2c 20 50 unction(PLDAP, P 2c70: 4c 44 41 50 2c 20 50 57 43 48 41 52 2c 20 50 43 LDAP, PWCHAR, PC 2c80: 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 50 56 4f 49 HAR, ULONG, PVOI 2c90: 44 2c 20 50 56 4f 49 44 2c 0d 0a 09 20 20 50 4c D, PVOID,... PL 2ca0: 44 41 50 2a 29 20 51 55 45 52 59 46 4f 52 43 4f DAP*) QUERYFORCO 2cb0: 4e 4e 45 43 54 49 4f 4e 3b 0d 0a 09 61 6c 69 61 NNECTION;...alia 2cc0: 73 20 42 4f 4f 4c 45 41 4e 20 66 75 6e 63 74 69 s BOOLEAN functi 2cd0: 6f 6e 28 50 4c 44 41 50 2c 20 50 4c 44 41 50 2c on(PLDAP, PLDAP, 2ce0: 20 50 57 43 48 41 52 2c 20 50 43 48 41 52 2c 20 PWCHAR, PCHAR, 2cf0: 50 4c 44 41 50 2c 20 55 4c 4f 4e 47 2c 20 50 56 PLDAP, ULONG, PV 2d00: 4f 49 44 2c 0d 0a 09 20 20 50 56 4f 49 44 2c 20 OID,... PVOID, 2d10: 55 4c 4f 4e 47 29 20 4e 4f 54 49 46 59 4f 46 4e ULONG) NOTIFYOFN 2d20: 45 57 43 4f 4e 4e 45 43 54 49 4f 4e 3b 0d 0a 09 EWCONNECTION;... 2d30: 61 6c 69 61 73 20 55 4c 4f 4e 47 20 66 75 6e 63 alias ULONG func 2d40: 74 69 6f 6e 28 50 4c 44 41 50 2c 20 50 4c 44 41 tion(PLDAP, PLDA 2d50: 50 29 20 44 45 52 45 46 45 52 45 4e 43 45 43 4f P) DEREFERENCECO 2d60: 4e 4e 45 43 54 49 4f 4e 3b 0d 0a 09 61 6c 69 61 NNECTION;...alia 2d70: 73 20 42 4f 4f 4c 45 41 4e 20 66 75 6e 63 74 69 s BOOLEAN functi 2d80: 6f 6e 28 50 4c 44 41 50 2c 20 50 53 65 63 50 6b on(PLDAP, PSecPk 2d90: 67 43 6f 6e 74 65 78 74 5f 49 73 73 75 65 72 4c gContext_IssuerL 2da0: 69 73 74 49 6e 66 6f 45 78 2c 0d 0a 09 20 20 50 istInfoEx,... P 2db0: 43 43 45 52 54 5f 43 4f 4e 54 45 58 54 2a 29 20 CCERT_CONTEXT*) 2dc0: 51 55 45 52 59 43 4c 49 45 4e 54 43 45 52 54 3b QUERYCLIENTCERT; 2dd0: 0d 0a 7d 0d 0a 0d 0a 73 74 72 75 63 74 20 4c 44 ..}....struct LD 2de0: 41 50 5f 52 45 46 45 52 52 41 4c 5f 43 41 4c 4c AP_REFERRAL_CALL 2df0: 42 41 43 4b 20 7b 0d 0a 09 55 4c 4f 4e 47 20 20 BACK {...ULONG 2e00: 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 2e10: 53 69 7a 65 4f 66 43 61 6c 6c 62 61 63 6b 73 3b SizeOfCallbacks; 2e20: 0d 0a 09 51 55 45 52 59 46 4f 52 43 4f 4e 4e 45 ...QUERYFORCONNE 2e30: 43 54 49 4f 4e 2a 20 20 20 20 51 75 65 72 79 46 CTION* QueryF 2e40: 6f 72 43 6f 6e 6e 65 63 74 69 6f 6e 3b 0d 0a 09 orConnection;... 2e50: 4e 4f 54 49 46 59 4f 46 4e 45 57 43 4f 4e 4e 45 NOTIFYOFNEWCONNE 2e60: 43 54 49 4f 4e 2a 20 4e 6f 74 69 66 79 52 6f 75 CTION* NotifyRou 2e70: 74 69 6e 65 3b 0d 0a 09 44 45 52 45 46 45 52 45 tine;...DEREFERE 2e80: 4e 43 45 43 4f 4e 4e 45 43 54 49 4f 4e 2a 20 44 NCECONNECTION* D 2e90: 65 72 65 66 65 72 65 6e 63 65 52 6f 75 74 69 6e ereferenceRoutin 2ea0: 65 3b 0d 0a 7d 0d 0a 61 6c 69 61 73 20 4c 44 41 e;..}..alias LDA 2eb0: 50 5f 52 45 46 45 52 52 41 4c 5f 43 41 4c 4c 42 P_REFERRAL_CALLB 2ec0: 41 43 4b 2a 20 50 4c 44 41 50 5f 52 45 46 45 52 ACK* PLDAP_REFER 2ed0: 52 41 4c 5f 43 41 4c 4c 42 41 43 4b 3b 0d 0a 0d RAL_CALLBACK;... 2ee0: 0a 73 74 72 75 63 74 20 4c 44 41 50 56 4c 56 49 .struct LDAPVLVI 2ef0: 6e 66 6f 20 7b 0d 0a 09 69 6e 74 20 20 20 20 20 nfo {...int 2f00: 20 20 6c 64 76 6c 76 5f 76 65 72 73 69 6f 6e 3b ldvlv_version; 2f10: 0d 0a 09 75 69 6e 74 20 20 20 20 20 20 6c 64 76 ...uint ldv 2f20: 6c 76 5f 62 65 66 6f 72 65 5f 63 6f 75 6e 74 3b lv_before_count; 2f30: 0d 0a 09 75 69 6e 74 20 20 20 20 20 20 6c 64 76 ...uint ldv 2f40: 6c 76 5f 61 66 74 65 72 5f 63 6f 75 6e 74 3b 0d lv_after_count;. 2f50: 0a 09 75 69 6e 74 20 20 20 20 20 20 6c 64 76 6c ..uint ldvl 2f60: 76 5f 6f 66 66 73 65 74 3b 0d 0a 09 75 69 6e 74 v_offset;...uint 2f70: 20 20 20 20 20 20 6c 64 76 6c 76 5f 63 6f 75 6e ldvlv_coun 2f80: 74 3b 0d 0a 09 42 65 72 56 61 6c 75 65 2a 20 6c t;...BerValue* l 2f90: 64 76 6c 76 5f 61 74 74 72 76 61 6c 75 65 3b 0d dvlv_attrvalue;. 2fa0: 0a 09 42 65 72 56 61 6c 75 65 2a 20 6c 64 76 6c ..BerValue* ldvl 2fb0: 76 5f 63 6f 6e 74 65 78 74 3b 0d 0a 09 76 6f 69 v_context;...voi 2fc0: 64 2a 20 20 20 20 20 6c 64 76 6c 76 5f 65 78 74 d* ldvlv_ext 2fd0: 72 61 64 61 74 61 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a radata;..}..../* 2fe0: 0d 0a 20 2a 20 55 6e 64 65 72 20 4d 69 63 72 6f .. * Under Micro 2ff0: 73 6f 66 74 20 57 69 6e 4c 44 41 50 20 74 68 65 soft WinLDAP the 3000: 20 66 75 6e 63 74 69 6f 6e 20 6c 64 61 70 5f 65 function ldap_e 3010: 72 72 6f 72 20 69 73 20 6f 6e 6c 79 20 73 74 75 rror is only stu 3020: 62 2e 0d 0a 20 2a 20 54 68 69 73 20 6d 61 63 72 b... * This macr 3030: 6f 20 75 73 65 73 20 4c 44 41 50 20 73 74 72 75 o uses LDAP stru 3040: 63 74 75 72 65 20 74 6f 20 67 65 74 20 65 72 72 cture to get err 3050: 6f 72 20 73 74 72 69 6e 67 20 61 6e 64 20 70 61 or string and pa 3060: 73 73 20 69 74 20 74 6f 20 74 68 65 20 75 73 65 ss it to the use 3070: 72 2e 0d 0a 20 2a 2f 0d 0a 70 72 69 76 61 74 65 r... */..private 3080: 20 65 78 74 65 72 6e 20 28 43 29 20 69 6e 74 20 extern (C) int 3090: 70 72 69 6e 74 66 28 69 6e 20 63 68 61 72 2a 20 printf(in char* 30a0: 66 6f 72 6d 61 74 2c 20 2e 2e 2e 29 3b 20 0d 0a format, ...); .. 30b0: 69 6e 74 20 6c 64 61 70 5f 70 65 72 72 6f 72 28 int ldap_perror( 30c0: 4c 44 41 50 2a 20 68 61 6e 64 6c 65 2c 20 63 68 LDAP* handle, ch 30d0: 61 72 2a 20 6d 65 73 73 61 67 65 29 20 7b 0d 0a ar* message) {.. 30e0: 09 72 65 74 75 72 6e 20 70 72 69 6e 74 66 28 22 .return printf(" 30f0: 25 73 3a 20 25 73 5c 6e 22 2c 20 6d 65 73 73 61 %s: %s\n", messa 3100: 67 65 2c 20 68 61 6e 64 6c 65 2e 6c 64 5f 65 72 ge, handle.ld_er 3110: 72 6f 72 29 3b 0d 0a 7d 0d 0a 0d 0a 2f 2a 09 46 ror);..}..../*.F 3120: 49 58 4d 45 3a 20 49 6e 20 4d 69 6e 47 57 2c 20 IXME: In MinGW, 3130: 74 68 65 73 65 20 61 72 65 20 57 49 4e 4c 44 41 these are WINLDA 3140: 50 41 50 49 20 3d 3d 20 44 45 43 4c 53 50 45 43 PAPI == DECLSPEC 3150: 5f 49 4d 50 4f 52 54 2e 20 20 4c 69 6e 6b 61 67 _IMPORT. Linkag 3160: 65 0d 0a 20 2a 09 61 74 74 72 69 62 75 74 65 3f e.. *.attribute? 3170: 0d 0a 20 2a 2f 0d 0a 65 78 74 65 72 6e 20 28 43 .. */..extern (C 3180: 29 20 7b 0d 0a 09 50 4c 44 41 50 20 6c 64 61 70 ) {...PLDAP ldap 3190: 5f 69 6e 69 74 41 28 50 43 48 41 52 2c 20 55 4c _initA(PCHAR, UL 31a0: 4f 4e 47 29 3b 0d 0a 09 50 4c 44 41 50 20 6c 64 ONG);...PLDAP ld 31b0: 61 70 5f 69 6e 69 74 57 28 50 57 43 48 41 52 2c ap_initW(PWCHAR, 31c0: 20 55 4c 4f 4e 47 29 3b 0d 0a 09 50 4c 44 41 50 ULONG);...PLDAP 31d0: 20 6c 64 61 70 5f 6f 70 65 6e 41 28 50 43 48 41 ldap_openA(PCHA 31e0: 52 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 50 4c 44 R, ULONG);...PLD 31f0: 41 50 20 6c 64 61 70 5f 6f 70 65 6e 57 28 50 57 AP ldap_openW(PW 3200: 43 48 41 52 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 CHAR, ULONG);... 3210: 50 4c 44 41 50 20 63 6c 64 61 70 5f 6f 70 65 6e PLDAP cldap_open 3220: 41 28 50 43 48 41 52 2c 20 55 4c 4f 4e 47 29 3b A(PCHAR, ULONG); 3230: 0d 0a 09 50 4c 44 41 50 20 63 6c 64 61 70 5f 6f ...PLDAP cldap_o 3240: 70 65 6e 57 28 50 57 43 48 41 52 2c 20 55 4c 4f penW(PWCHAR, ULO 3250: 4e 47 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 NG);...ULONG lda 3260: 70 5f 63 6f 6e 6e 65 63 74 28 4c 44 41 50 2a 2c p_connect(LDAP*, 3270: 20 4c 44 41 50 5f 54 49 4d 45 56 41 4c 2a 29 3b LDAP_TIMEVAL*); 3280: 0d 0a 09 50 4c 44 41 50 20 6c 64 61 70 5f 73 73 ...PLDAP ldap_ss 3290: 6c 69 6e 69 74 41 28 50 43 48 41 52 2c 20 55 4c linitA(PCHAR, UL 32a0: 4f 4e 47 2c 20 69 6e 74 29 3b 0d 0a 09 50 4c 44 ONG, int);...PLD 32b0: 41 50 20 6c 64 61 70 5f 73 73 6c 69 6e 69 74 57 AP ldap_sslinitW 32c0: 28 50 57 43 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 (PWCHAR, ULONG, 32d0: 69 6e 74 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 int);...ULONG ld 32e0: 61 70 5f 73 74 61 72 74 5f 74 6c 73 5f 73 41 28 ap_start_tls_sA( 32f0: 4c 44 41 50 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 LDAP*, PLDAPCont 3300: 72 6f 6c 41 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 rolA*, PLDAPCont 3310: 72 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 rolA*);...ULONG 3320: 6c 64 61 70 5f 73 74 61 72 74 5f 74 6c 73 5f 73 ldap_start_tls_s 3330: 57 28 4c 44 41 50 2a 2c 20 50 4c 44 41 50 43 6f W(LDAP*, PLDAPCo 3340: 6e 74 72 6f 6c 57 2a 2c 20 50 4c 44 41 50 43 6f ntrolW*, PLDAPCo 3350: 6e 74 72 6f 6c 57 2a 29 3b 0d 0a 09 42 4f 4f 4c ntrolW*);...BOOL 3360: 45 41 4e 20 6c 64 61 70 5f 73 74 6f 70 5f 74 6c EAN ldap_stop_tl 3370: 73 5f 73 28 4c 44 41 50 2a 29 3b 0d 0a 09 55 4c s_s(LDAP*);...UL 3380: 4f 4e 47 20 6c 64 61 70 5f 67 65 74 5f 6f 70 74 ONG ldap_get_opt 3390: 69 6f 6e 41 28 4c 44 41 50 2a 2c 20 69 6e 74 2c ionA(LDAP*, int, 33a0: 20 76 6f 69 64 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 void*);...ULONG 33b0: 20 6c 64 61 70 5f 67 65 74 5f 6f 70 74 69 6f 6e ldap_get_option 33c0: 57 28 4c 44 41 50 2a 2c 20 69 6e 74 2c 20 76 6f W(LDAP*, int, vo 33d0: 69 64 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 id*);...ULONG ld 33e0: 61 70 5f 73 65 74 5f 6f 70 74 69 6f 6e 41 28 4c ap_set_optionA(L 33f0: 44 41 50 2a 2c 20 69 6e 74 2c 20 76 6f 69 64 2a DAP*, int, void* 3400: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 3410: 73 65 74 5f 6f 70 74 69 6f 6e 57 28 4c 44 41 50 set_optionW(LDAP 3420: 2a 2c 20 69 6e 74 2c 20 76 6f 69 64 2a 29 3b 0d *, int, void*);. 3430: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f 6e ..ULONG ldap_con 3440: 74 72 6f 6c 5f 66 72 65 65 41 28 4c 44 41 50 43 trol_freeA(LDAPC 3450: 6f 6e 74 72 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f ontrolA*);...ULO 3460: 4e 47 20 6c 64 61 70 5f 63 6f 6e 74 72 6f 6c 5f NG ldap_control_ 3470: 66 72 65 65 57 28 4c 44 41 50 43 6f 6e 74 72 6f freeW(LDAPContro 3480: 6c 57 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 lW*);...ULONG ld 3490: 61 70 5f 63 6f 6e 74 72 6f 6c 73 5f 66 72 65 65 ap_controls_free 34a0: 41 28 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2a A(LDAPControlA** 34b0: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 34c0: 63 6f 6e 74 72 6f 6c 73 5f 66 72 65 65 57 28 4c controls_freeW(L 34d0: 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2a 29 3b 0d DAPControlW**);. 34e0: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 66 72 65 ..ULONG ldap_fre 34f0: 65 5f 63 6f 6e 74 72 6f 6c 73 41 28 4c 44 41 50 e_controlsA(LDAP 3500: 43 6f 6e 74 72 6f 6c 41 2a 2a 29 3b 0d 0a 09 55 ControlA**);...U 3510: 4c 4f 4e 47 20 6c 64 61 70 5f 66 72 65 65 5f 63 LONG ldap_free_c 3520: 6f 6e 74 72 6f 6c 73 57 28 4c 44 41 50 43 6f 6e ontrolsW(LDAPCon 3530: 74 72 6f 6c 57 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e trolW**);...ULON 3540: 47 20 6c 64 61 70 5f 73 61 73 6c 5f 62 69 6e 64 G ldap_sasl_bind 3550: 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 2c 20 A(LDAP*, PCHAR, 3560: 50 43 48 41 52 2c 20 42 45 52 56 41 4c 2a 2c 20 PCHAR, BERVAL*, 3570: 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 0d PLDAPControlA*,. 3580: 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c .. PLDAPControl 3590: 41 2a 2c 20 69 6e 74 2a 29 3b 0d 0a 09 55 4c 4f A*, int*);...ULO 35a0: 4e 47 20 6c 64 61 70 5f 73 61 73 6c 5f 62 69 6e NG ldap_sasl_bin 35b0: 64 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 dW(LDAP*, PWCHAR 35c0: 2c 20 50 57 43 48 41 52 2c 20 42 45 52 56 41 4c , PWCHAR, BERVAL 35d0: 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 *, PLDAPControlW 35e0: 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 *,... PLDAPCont 35f0: 72 6f 6c 57 2a 2c 20 69 6e 74 2a 29 3b 0d 0a 09 rolW*, int*);... 3600: 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 61 73 6c 5f ULONG ldap_sasl_ 3610: 62 69 6e 64 5f 73 41 28 4c 44 41 50 2a 2c 20 50 bind_sA(LDAP*, P 3620: 43 48 41 52 2c 20 50 43 48 41 52 2c 20 42 45 52 CHAR, PCHAR, BER 3630: 56 41 4c 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 VAL*, PLDAPContr 3640: 6f 6c 41 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 olA*,... PLDAPC 3650: 6f 6e 74 72 6f 6c 41 2a 2c 20 50 42 45 52 56 41 ontrolA*, PBERVA 3660: 4c 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 L*);...ULONG lda 3670: 70 5f 73 61 73 6c 5f 62 69 6e 64 5f 73 57 28 4c p_sasl_bind_sW(L 3680: 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 57 DAP*, PWCHAR, PW 3690: 43 48 41 52 2c 20 42 45 52 56 41 4c 2a 2c 20 50 CHAR, BERVAL*, P 36a0: 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2c 0d 0a LDAPControlW*,.. 36b0: 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 . PLDAPControlW 36c0: 2a 2c 20 50 42 45 52 56 41 4c 2a 29 3b 0d 0a 09 *, PBERVAL*);... 36d0: 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 69 6d 70 6c ULONG ldap_simpl 36e0: 65 5f 62 69 6e 64 41 28 4c 44 41 50 2a 2c 20 50 e_bindA(LDAP*, P 36f0: 43 48 41 52 2c 20 50 43 48 41 52 29 3b 0d 0a 09 CHAR, PCHAR);... 3700: 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 69 6d 70 6c ULONG ldap_simpl 3710: 65 5f 62 69 6e 64 57 28 4c 44 41 50 2a 2c 20 50 e_bindW(LDAP*, P 3720: 57 43 48 41 52 2c 20 50 57 43 48 41 52 29 3b 0d WCHAR, PWCHAR);. 3730: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 69 6d ..ULONG ldap_sim 3740: 70 6c 65 5f 62 69 6e 64 5f 73 41 28 4c 44 41 50 ple_bind_sA(LDAP 3750: 2a 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 29 *, PCHAR, PCHAR) 3760: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 ;...ULONG ldap_s 3770: 69 6d 70 6c 65 5f 62 69 6e 64 5f 73 57 28 4c 44 imple_bind_sW(LD 3780: 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 57 43 AP*, PWCHAR, PWC 3790: 48 41 52 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 HAR);...ULONG ld 37a0: 61 70 5f 75 6e 62 69 6e 64 28 4c 44 41 50 2a 29 ap_unbind(LDAP*) 37b0: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 75 ;...ULONG ldap_u 37c0: 6e 62 69 6e 64 5f 73 28 4c 44 41 50 2a 29 3b 0d nbind_s(LDAP*);. 37d0: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 65 61 ..ULONG ldap_sea 37e0: 72 63 68 5f 65 78 74 41 28 4c 44 41 50 2a 2c 20 rch_extA(LDAP*, 37f0: 50 43 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 50 43 PCHAR, ULONG, PC 3800: 48 41 52 2c 20 50 43 48 41 52 5b 5d 2c 20 55 4c HAR, PCHAR[], UL 3810: 4f 4e 47 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f ONG,... PLDAPCo 3820: 6e 74 72 6f 6c 57 2a 2c 20 50 4c 44 41 50 43 6f ntrolW*, PLDAPCo 3830: 6e 74 72 6f 6c 57 2a 2c 20 55 4c 4f 4e 47 2c 20 ntrolW*, ULONG, 3840: 55 4c 4f 4e 47 2c 20 55 4c 4f 4e 47 2a 29 3b 0d ULONG, ULONG*);. 3850: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 65 61 ..ULONG ldap_sea 3860: 72 63 68 5f 65 78 74 57 28 4c 44 41 50 2a 2c 20 rch_extW(LDAP*, 3870: 50 57 43 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 50 PWCHAR, ULONG, P 3880: 57 43 48 41 52 2c 20 50 57 43 48 41 52 5b 5d 2c WCHAR, PWCHAR[], 3890: 20 55 4c 4f 4e 47 2c 0d 0a 09 20 20 50 4c 44 41 ULONG,... PLDA 38a0: 50 43 6f 6e 74 72 6f 6c 57 2a 2c 20 50 4c 44 41 PControlW*, PLDA 38b0: 50 43 6f 6e 74 72 6f 6c 57 2a 2c 20 55 4c 4f 4e PControlW*, ULON 38c0: 47 2c 20 55 4c 4f 4e 47 2c 20 55 4c 4f 4e 47 2a G, ULONG, ULONG* 38d0: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 38e0: 73 65 61 72 63 68 5f 65 78 74 5f 73 41 28 4c 44 search_ext_sA(LD 38f0: 41 50 2a 2c 20 50 43 48 41 52 2c 20 55 4c 4f 4e AP*, PCHAR, ULON 3900: 47 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 5b G, PCHAR, PCHAR[ 3910: 5d 2c 20 55 4c 4f 4e 47 2c 0d 0a 09 20 20 50 4c ], ULONG,... PL 3920: 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 20 50 4c DAPControlA*, PL 3930: 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 20 4c 44 DAPControlA*, LD 3940: 41 50 5f 54 49 4d 45 56 41 4c 2a 2c 20 55 4c 4f AP_TIMEVAL*, ULO 3950: 4e 47 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 2a NG, LDAPMessage* 3960: 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 *);...ULONG ldap 3970: 5f 73 65 61 72 63 68 5f 65 78 74 5f 73 57 28 4c _search_ext_sW(L 3980: 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 55 4c DAP*, PWCHAR, UL 3990: 4f 4e 47 2c 20 50 57 43 48 41 52 2c 20 50 57 43 ONG, PWCHAR, PWC 39a0: 48 41 52 5b 5d 2c 20 55 4c 4f 4e 47 2c 0d 0a 09 HAR[], ULONG,... 39b0: 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a PLDAPControlW* 39c0: 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a , PLDAPControlW* 39d0: 2c 20 4c 44 41 50 5f 54 49 4d 45 56 41 4c 2a 2c , LDAP_TIMEVAL*, 39e0: 20 55 4c 4f 4e 47 2c 20 4c 44 41 50 4d 65 73 73 ULONG, LDAPMess 39f0: 61 67 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 age**);...ULONG 3a00: 6c 64 61 70 5f 73 65 61 72 63 68 41 28 4c 44 41 ldap_searchA(LDA 3a10: 50 2a 2c 20 50 43 48 41 52 2c 20 55 4c 4f 4e 47 P*, PCHAR, ULONG 3a20: 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 5b 5d , PCHAR, PCHAR[] 3a30: 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 55 4c 4f 4e , ULONG);...ULON 3a40: 47 20 6c 64 61 70 5f 73 65 61 72 63 68 57 28 4c G ldap_searchW(L 3a50: 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 55 4c DAP*, PWCHAR, UL 3a60: 4f 4e 47 2c 20 50 57 43 48 41 52 2c 20 50 57 43 ONG, PWCHAR, PWC 3a70: 48 41 52 5b 5d 2c 20 55 4c 4f 4e 47 29 3b 0d 0a HAR[], ULONG);.. 3a80: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 65 61 72 .ULONG ldap_sear 3a90: 63 68 5f 73 41 28 4c 44 41 50 2a 2c 20 50 43 48 ch_sA(LDAP*, PCH 3aa0: 41 52 2c 20 55 4c 4f 4e 47 2c 20 50 43 48 41 52 AR, ULONG, PCHAR 3ab0: 2c 20 50 43 48 41 52 5b 5d 2c 20 55 4c 4f 4e 47 , PCHAR[], ULONG 3ac0: 2c 0d 0a 09 20 20 4c 44 41 50 4d 65 73 73 61 67 ,... LDAPMessag 3ad0: 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 e**);...ULONG ld 3ae0: 61 70 5f 73 65 61 72 63 68 5f 73 57 28 4c 44 41 ap_search_sW(LDA 3af0: 50 2a 2c 20 50 57 43 48 41 52 2c 20 55 4c 4f 4e P*, PWCHAR, ULON 3b00: 47 2c 20 50 57 43 48 41 52 2c 20 50 57 43 48 41 G, PWCHAR, PWCHA 3b10: 52 5b 5d 2c 20 55 4c 4f 4e 47 2c 0d 0a 09 20 20 R[], ULONG,... 3b20: 4c 44 41 50 4d 65 73 73 61 67 65 2a 2a 29 3b 0d LDAPMessage**);. 3b30: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 73 65 61 ..ULONG ldap_sea 3b40: 72 63 68 5f 73 74 41 28 4c 44 41 50 2a 2c 20 50 rch_stA(LDAP*, P 3b50: 43 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 50 43 48 CHAR, ULONG, PCH 3b60: 41 52 2c 20 50 43 48 41 52 5b 5d 2c 20 55 4c 4f AR, PCHAR[], ULO 3b70: 4e 47 2c 0d 0a 09 20 20 4c 44 41 50 5f 54 49 4d NG,... LDAP_TIM 3b80: 45 56 41 4c 2a 2c 20 4c 44 41 50 4d 65 73 73 61 EVAL*, LDAPMessa 3b90: 67 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c ge**);...ULONG l 3ba0: 64 61 70 5f 73 65 61 72 63 68 5f 73 74 57 28 4c dap_search_stW(L 3bb0: 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 55 4c DAP*, PWCHAR, UL 3bc0: 4f 4e 47 2c 20 50 57 43 48 41 52 2c 20 50 57 43 ONG, PWCHAR, PWC 3bd0: 48 41 52 5b 5d 2c 20 55 4c 4f 4e 47 2c 0d 0a 09 HAR[], ULONG,... 3be0: 20 20 4c 44 41 50 5f 54 49 4d 45 56 41 4c 2a 2c LDAP_TIMEVAL*, 3bf0: 20 4c 44 41 50 4d 65 73 73 61 67 65 2a 2a 29 3b LDAPMessage**); 3c00: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f ...ULONG ldap_co 3c10: 6d 70 61 72 65 5f 65 78 74 41 28 4c 44 41 50 2a mpare_extA(LDAP* 3c20: 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 2c 20 , PCHAR, PCHAR, 3c30: 50 43 48 41 52 2c 20 42 65 72 56 61 6c 75 65 2a PCHAR, BerValue* 3c40: 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 ,... PLDAPContr 3c50: 6f 6c 41 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 olA*, PLDAPContr 3c60: 6f 6c 41 2a 2c 20 55 4c 4f 4e 47 2a 29 3b 0d 0a olA*, ULONG*);.. 3c70: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f 6d 70 .ULONG ldap_comp 3c80: 61 72 65 5f 65 78 74 57 28 4c 44 41 50 2a 2c 20 are_extW(LDAP*, 3c90: 50 57 43 48 41 52 2c 20 50 57 43 48 41 52 2c 20 PWCHAR, PWCHAR, 3ca0: 50 57 43 48 41 52 2c 20 42 65 72 56 61 6c 75 65 PWCHAR, BerValue 3cb0: 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 *,... PLDAPCont 3cc0: 72 6f 6c 57 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 rolW*, PLDAPCont 3cd0: 72 6f 6c 57 2a 2c 20 55 4c 4f 4e 47 2a 29 3b 0d rolW*, ULONG*);. 3ce0: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f 6d ..ULONG ldap_com 3cf0: 70 61 72 65 5f 65 78 74 5f 73 41 28 4c 44 41 50 pare_ext_sA(LDAP 3d00: 2a 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 2c *, PCHAR, PCHAR, 3d10: 20 50 43 48 41 52 2c 20 42 65 72 56 61 6c 75 65 PCHAR, BerValue 3d20: 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 *,... PLDAPCont 3d30: 72 6f 6c 41 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 rolA*, PLDAPCont 3d40: 72 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 rolA*);...ULONG 3d50: 6c 64 61 70 5f 63 6f 6d 70 61 72 65 5f 65 78 74 ldap_compare_ext 3d60: 5f 73 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 _sW(LDAP*, PWCHA 3d70: 52 2c 20 50 57 43 48 41 52 2c 20 50 57 43 48 41 R, PWCHAR, PWCHA 3d80: 52 2c 20 42 65 72 56 61 6c 75 65 2a 2c 0d 0a 09 R, BerValue*,... 3d90: 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a PLDAPControlW* 3da0: 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a , PLDAPControlW* 3db0: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 3dc0: 63 6f 6d 70 61 72 65 41 28 4c 44 41 50 2a 2c 20 compareA(LDAP*, 3dd0: 50 43 48 41 52 2c 20 50 43 48 41 52 2c 20 50 43 PCHAR, PCHAR, PC 3de0: 48 41 52 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 HAR);...ULONG ld 3df0: 61 70 5f 63 6f 6d 70 61 72 65 57 28 4c 44 41 50 ap_compareW(LDAP 3e00: 2a 2c 20 50 57 43 48 41 52 2c 20 50 57 43 48 41 *, PWCHAR, PWCHA 3e10: 52 2c 20 50 57 43 48 41 52 29 3b 0d 0a 09 55 4c R, PWCHAR);...UL 3e20: 4f 4e 47 20 6c 64 61 70 5f 63 6f 6d 70 61 72 65 ONG ldap_compare 3e30: 5f 73 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 _sA(LDAP*, PCHAR 3e40: 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 29 3b , PCHAR, PCHAR); 3e50: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f ...ULONG ldap_co 3e60: 6d 70 61 72 65 5f 73 57 28 4c 44 41 50 2a 2c 20 mpare_sW(LDAP*, 3e70: 50 57 43 48 41 52 2c 20 50 57 43 48 41 52 2c 20 PWCHAR, PWCHAR, 3e80: 50 57 43 48 41 52 29 3b 0d 0a 09 55 4c 4f 4e 47 PWCHAR);...ULONG 3e90: 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 ldap_modify_ext 3ea0: 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 2c 20 A(LDAP*, PCHAR, 3eb0: 4c 44 41 50 4d 6f 64 41 2a 5b 5d 2c 20 50 4c 44 LDAPModA*[], PLD 3ec0: 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 0d 0a 09 20 APControlA*,... 3ed0: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c PLDAPControlA*, 3ee0: 20 55 4c 4f 4e 47 2a 29 3b 0d 0a 09 55 4c 4f 4e ULONG*);...ULON 3ef0: 47 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 G ldap_modify_ex 3f00: 74 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 tW(LDAP*, PWCHAR 3f10: 2c 20 4c 44 41 50 4d 6f 64 57 2a 5b 5d 2c 20 50 , LDAPModW*[], P 3f20: 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2c 0d 0a LDAPControlW*,.. 3f30: 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 . PLDAPControlW 3f40: 2a 2c 20 55 4c 4f 4e 47 2a 29 3b 0d 0a 09 55 4c *, ULONG*);...UL 3f50: 4f 4e 47 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f ONG ldap_modify_ 3f60: 65 78 74 5f 73 41 28 4c 44 41 50 2a 2c 20 50 43 ext_sA(LDAP*, PC 3f70: 48 41 52 2c 20 4c 44 41 50 4d 6f 64 41 2a 5b 5d HAR, LDAPModA*[] 3f80: 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a , PLDAPControlA* 3f90: 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 ,... PLDAPContr 3fa0: 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c olA*);...ULONG l 3fb0: 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 5f 73 dap_modify_ext_s 3fc0: 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c W(LDAP*, PWCHAR, 3fd0: 20 4c 44 41 50 4d 6f 64 57 2a 5b 5d 2c 20 50 4c LDAPModW*[], PL 3fe0: 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2c 0d 0a 09 DAPControlW*,... 3ff0: 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a PLDAPControlW* 4000: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 4010: 6d 6f 64 69 66 79 41 28 4c 44 41 50 2a 2c 20 50 modifyA(LDAP*, P 4020: 43 48 41 52 2c 20 4c 44 41 50 4d 6f 64 41 2a 5b CHAR, LDAPModA*[ 4030: 5d 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 ]);...ULONG ldap 4040: 5f 6d 6f 64 69 66 79 57 28 4c 44 41 50 2a 2c 20 _modifyW(LDAP*, 4050: 50 57 43 48 41 52 2c 20 4c 44 41 50 4d 6f 64 57 PWCHAR, LDAPModW 4060: 2a 5b 5d 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 *[]);...ULONG ld 4070: 61 70 5f 6d 6f 64 69 66 79 5f 73 41 28 4c 44 41 ap_modify_sA(LDA 4080: 50 2a 2c 20 50 43 48 41 52 2c 20 4c 44 41 50 4d P*, PCHAR, LDAPM 4090: 6f 64 41 2a 5b 5d 29 3b 0d 0a 09 55 4c 4f 4e 47 odA*[]);...ULONG 40a0: 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 73 57 28 ldap_modify_sW( 40b0: 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 4c LDAP*, PWCHAR, L 40c0: 44 41 50 4d 6f 64 57 2a 5b 5d 29 3b 0d 0a 09 55 DAPModW*[]);...U 40d0: 4c 4f 4e 47 20 6c 64 61 70 5f 72 65 6e 61 6d 65 LONG ldap_rename 40e0: 5f 65 78 74 41 28 4c 44 41 50 2a 2c 20 50 43 48 _extA(LDAP*, PCH 40f0: 41 52 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 AR, PCHAR, PCHAR 4100: 2c 20 49 4e 54 2c 20 50 4c 44 41 50 43 6f 6e 74 , INT, PLDAPCont 4110: 72 6f 6c 41 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 rolA*,... PLDAP 4120: 43 6f 6e 74 72 6f 6c 41 2a 2c 20 55 4c 4f 4e 47 ControlA*, ULONG 4130: 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 *);...ULONG ldap 4140: 5f 72 65 6e 61 6d 65 5f 65 78 74 57 28 4c 44 41 _rename_extW(LDA 4150: 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 57 43 48 P*, PWCHAR, PWCH 4160: 41 52 2c 20 50 57 43 48 41 52 2c 20 49 4e 54 2c AR, PWCHAR, INT, 4170: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2c PLDAPControlW*, 4180: 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f ... PLDAPContro 4190: 6c 57 2a 2c 20 55 4c 4f 4e 47 2a 29 3b 0d 0a 09 lW*, ULONG*);... 41a0: 55 4c 4f 4e 47 20 6c 64 61 70 5f 72 65 6e 61 6d ULONG ldap_renam 41b0: 65 5f 65 78 74 5f 73 41 28 4c 44 41 50 2a 2c 20 e_ext_sA(LDAP*, 41c0: 50 43 48 41 52 2c 20 50 43 48 41 52 2c 20 50 43 PCHAR, PCHAR, PC 41d0: 48 41 52 2c 20 49 4e 54 2c 0d 0a 09 20 20 50 4c HAR, INT,... PL 41e0: 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 20 50 4c DAPControlA*, PL 41f0: 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 29 3b 0d 0a DAPControlA*);.. 4200: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 72 65 6e 61 .ULONG ldap_rena 4210: 6d 65 5f 65 78 74 5f 73 57 28 4c 44 41 50 2a 2c me_ext_sW(LDAP*, 4220: 20 50 57 43 48 41 52 2c 20 50 57 43 48 41 52 2c PWCHAR, PWCHAR, 4230: 20 50 57 43 48 41 52 2c 20 49 4e 54 2c 0d 0a 09 PWCHAR, INT,... 4240: 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a PLDAPControlW* 4250: 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a , PLDAPControlW* 4260: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 4270: 61 64 64 5f 65 78 74 41 28 4c 44 41 50 2a 2c 20 add_extA(LDAP*, 4280: 50 43 48 41 52 2c 20 4c 44 41 50 4d 6f 64 41 2a PCHAR, LDAPModA* 4290: 5b 5d 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c [], PLDAPControl 42a0: 41 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e A*,... PLDAPCon 42b0: 74 72 6f 6c 41 2a 2c 20 55 4c 4f 4e 47 2a 29 3b trolA*, ULONG*); 42c0: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 61 64 ...ULONG ldap_ad 42d0: 64 5f 65 78 74 57 28 4c 44 41 50 2a 2c 20 50 57 d_extW(LDAP*, PW 42e0: 43 48 41 52 2c 20 4c 44 41 50 4d 6f 64 57 2a 5b CHAR, LDAPModW*[ 42f0: 5d 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 ], PLDAPControlW 4300: 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 *,... PLDAPCont 4310: 72 6f 6c 57 2a 2c 20 55 4c 4f 4e 47 2a 29 3b 0d rolW*, ULONG*);. 4320: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 61 64 64 ..ULONG ldap_add 4330: 5f 65 78 74 5f 73 41 28 4c 44 41 50 2a 2c 20 50 _ext_sA(LDAP*, P 4340: 43 48 41 52 2c 20 4c 44 41 50 4d 6f 64 41 2a 5b CHAR, LDAPModA*[ 4350: 5d 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 ], PLDAPControlA 4360: 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 *,... PLDAPCont 4370: 72 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 rolA*);...ULONG 4380: 6c 64 61 70 5f 61 64 64 5f 65 78 74 5f 73 57 28 ldap_add_ext_sW( 4390: 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 4c LDAP*, PWCHAR, L 43a0: 44 41 50 4d 6f 64 57 2a 5b 5d 2c 20 50 4c 44 41 DAPModW*[], PLDA 43b0: 50 43 6f 6e 74 72 6f 6c 57 2a 2c 0d 0a 09 20 20 PControlW*,... 43c0: 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 29 3b PLDAPControlW*); 43d0: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 61 64 ...ULONG ldap_ad 43e0: 64 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 2c dA(LDAP*, PCHAR, 43f0: 20 4c 44 41 50 4d 6f 64 41 2a 5b 5d 29 3b 0d 0a LDAPModA*[]);.. 4400: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 61 64 64 57 .ULONG ldap_addW 4410: 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 (LDAP*, PWCHAR, 4420: 4c 44 41 50 4d 6f 64 57 2a 5b 5d 29 3b 0d 0a 09 LDAPModW*[]);... 4430: 55 4c 4f 4e 47 20 6c 64 61 70 5f 61 64 64 5f 73 ULONG ldap_add_s 4440: 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 2c 20 A(LDAP*, PCHAR, 4450: 4c 44 41 50 4d 6f 64 41 2a 5b 5d 29 3b 0d 0a 09 LDAPModA*[]);... 4460: 55 4c 4f 4e 47 20 6c 64 61 70 5f 61 64 64 5f 73 ULONG ldap_add_s 4470: 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c W(LDAP*, PWCHAR, 4480: 20 4c 44 41 50 4d 6f 64 57 2a 5b 5d 29 3b 0d 0a LDAPModW*[]);.. 4490: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 64 65 6c 65 .ULONG ldap_dele 44a0: 74 65 5f 65 78 74 41 28 4c 44 41 50 2a 2c 20 50 te_extA(LDAP*, P 44b0: 43 48 41 52 2c 20 50 4c 44 41 50 43 6f 6e 74 72 CHAR, PLDAPContr 44c0: 6f 6c 41 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 olA*, PLDAPContr 44d0: 6f 6c 41 2a 2c 0d 0a 09 20 20 55 4c 4f 4e 47 2a olA*,... ULONG* 44e0: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 44f0: 64 65 6c 65 74 65 5f 65 78 74 57 28 4c 44 41 50 delete_extW(LDAP 4500: 2a 2c 20 50 57 43 48 41 52 2c 20 50 4c 44 41 50 *, PWCHAR, PLDAP 4510: 43 6f 6e 74 72 6f 6c 57 2a 2c 20 50 4c 44 41 50 ControlW*, PLDAP 4520: 43 6f 6e 74 72 6f 6c 57 2a 2c 0d 0a 09 20 20 55 ControlW*,... U 4530: 4c 4f 4e 47 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 LONG*);...ULONG 4540: 6c 64 61 70 5f 64 65 6c 65 74 65 5f 65 78 74 5f ldap_delete_ext_ 4550: 73 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 2c sA(LDAP*, PCHAR, 4560: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c PLDAPControlA*, 4570: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 29 PLDAPControlA*) 4580: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 64 ;...ULONG ldap_d 4590: 65 6c 65 74 65 5f 65 78 74 5f 73 57 28 4c 44 41 elete_ext_sW(LDA 45a0: 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 4c 44 41 P*, PWCHAR, PLDA 45b0: 50 43 6f 6e 74 72 6f 6c 57 2a 2c 20 50 4c 44 41 PControlW*, PLDA 45c0: 50 43 6f 6e 74 72 6f 6c 57 2a 29 3b 0d 0a 09 55 PControlW*);...U 45d0: 4c 4f 4e 47 20 6c 64 61 70 5f 64 65 6c 65 74 65 LONG ldap_delete 45e0: 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 29 3b A(LDAP*, PCHAR); 45f0: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 64 65 ...ULONG ldap_de 4600: 6c 65 74 65 57 28 4c 44 41 50 2a 2c 20 50 57 43 leteW(LDAP*, PWC 4610: 48 41 52 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 HAR);...ULONG ld 4620: 61 70 5f 64 65 6c 65 74 65 5f 73 41 28 4c 44 41 ap_delete_sA(LDA 4630: 50 2a 2c 20 50 43 48 41 52 29 3b 0d 0a 09 55 4c P*, PCHAR);...UL 4640: 4f 4e 47 20 6c 64 61 70 5f 64 65 6c 65 74 65 5f ONG ldap_delete_ 4650: 73 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 sW(LDAP*, PWCHAR 4660: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f );...ULONG ldap_ 4670: 65 78 74 65 6e 64 65 64 5f 6f 70 65 72 61 74 69 extended_operati 4680: 6f 6e 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 onA(LDAP*, PCHAR 4690: 2c 20 42 65 72 56 61 6c 75 65 2a 2c 20 50 4c 44 , BerValue*, PLD 46a0: 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 0d 0a 09 20 APControlA*,... 46b0: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c PLDAPControlA*, 46c0: 20 55 4c 4f 4e 47 2a 29 3b 0d 0a 09 55 4c 4f 4e ULONG*);...ULON 46d0: 47 20 6c 64 61 70 5f 65 78 74 65 6e 64 65 64 5f G ldap_extended_ 46e0: 6f 70 65 72 61 74 69 6f 6e 57 28 4c 44 41 50 2a operationW(LDAP* 46f0: 2c 20 50 57 43 48 41 52 2c 20 42 65 72 56 61 6c , PWCHAR, BerVal 4700: 75 65 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f ue*, PLDAPContro 4710: 6c 57 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f lW*,... PLDAPCo 4720: 6e 74 72 6f 6c 57 2a 2c 20 55 4c 4f 4e 47 2a 29 ntrolW*, ULONG*) 4730: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 65 ;...ULONG ldap_e 4740: 78 74 65 6e 64 65 64 5f 6f 70 65 72 61 74 69 6f xtended_operatio 4750: 6e 5f 73 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 n_sA(LDAP*, PCHA 4760: 52 2c 20 42 65 72 56 61 6c 75 65 2a 2c 20 50 4c R, BerValue*, PL 4770: 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 0d 0a 09 DAPControlA*,... 4780: 20 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a PLDAPControlA* 4790: 2c 20 50 43 48 41 52 2a 2c 20 42 65 72 56 61 6c , PCHAR*, BerVal 47a0: 75 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c ue**);...ULONG l 47b0: 64 61 70 5f 65 78 74 65 6e 64 65 64 5f 6f 70 65 dap_extended_ope 47c0: 72 61 74 69 6f 6e 5f 73 57 28 4c 44 41 50 2a 2c ration_sW(LDAP*, 47d0: 20 50 57 43 48 41 52 2c 20 42 65 72 56 61 6c 75 PWCHAR, BerValu 47e0: 65 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c e*, PLDAPControl 47f0: 57 2a 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e W*,... PLDAPCon 4800: 74 72 6f 6c 57 2a 2c 20 50 57 43 48 41 52 2a 2c trolW*, PWCHAR*, 4810: 20 42 65 72 56 61 6c 75 65 2a 2a 29 3b 0d 0a 09 BerValue**);... 4820: 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6c 6f 73 65 ULONG ldap_close 4830: 5f 65 78 74 65 6e 64 65 64 5f 6f 70 28 4c 44 41 _extended_op(LDA 4840: 50 2a 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 55 4c P*, ULONG);...UL 4850: 4f 4e 47 20 6c 64 61 70 5f 61 62 61 6e 64 6f 6e ONG ldap_abandon 4860: 28 4c 44 41 50 2a 2c 20 55 4c 4f 4e 47 29 3b 0d (LDAP*, ULONG);. 4870: 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 72 65 73 ..ULONG ldap_res 4880: 75 6c 74 28 4c 44 41 50 2a 2c 20 55 4c 4f 4e 47 ult(LDAP*, ULONG 4890: 2c 20 55 4c 4f 4e 47 2c 20 4c 44 41 50 5f 54 49 , ULONG, LDAP_TI 48a0: 4d 45 56 41 4c 2a 2c 20 4c 44 41 50 4d 65 73 73 MEVAL*, LDAPMess 48b0: 61 67 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 age**);...ULONG 48c0: 6c 64 61 70 5f 6d 73 67 66 72 65 65 28 4c 44 41 ldap_msgfree(LDA 48d0: 50 4d 65 73 73 61 67 65 2a 29 3b 0d 0a 09 55 4c PMessage*);...UL 48e0: 4f 4e 47 20 6c 64 61 70 5f 70 61 72 73 65 5f 72 ONG ldap_parse_r 48f0: 65 73 75 6c 74 41 28 4c 44 41 50 2a 2c 20 4c 44 esultA(LDAP*, LD 4900: 41 50 4d 65 73 73 61 67 65 2a 2c 20 55 4c 4f 4e APMessage*, ULON 4910: 47 2a 2c 20 50 43 48 41 52 2a 2c 20 50 43 48 41 G*, PCHAR*, PCHA 4920: 52 2a 2c 0d 0a 09 20 20 50 43 48 41 52 2a 2a 2c R*,... PCHAR**, 4930: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2a PLDAPControlA** 4940: 2c 20 42 4f 4f 4c 45 41 4e 29 3b 0d 0a 09 55 4c , BOOLEAN);...UL 4950: 4f 4e 47 20 6c 64 61 70 5f 70 61 72 73 65 5f 72 ONG ldap_parse_r 4960: 65 73 75 6c 74 57 28 4c 44 41 50 2a 2c 20 4c 44 esultW(LDAP*, LD 4970: 41 50 4d 65 73 73 61 67 65 2a 2c 20 55 4c 4f 4e APMessage*, ULON 4980: 47 2a 2c 20 50 57 43 48 41 52 2a 2c 20 50 57 43 G*, PWCHAR*, PWC 4990: 48 41 52 2a 2c 0d 0a 09 20 20 50 57 43 48 41 52 HAR*,... PWCHAR 49a0: 2a 2a 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c **, PLDAPControl 49b0: 57 2a 2a 2c 20 42 4f 4f 4c 45 41 4e 29 3b 0d 0a W**, BOOLEAN);.. 49c0: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 70 61 72 73 .ULONG ldap_pars 49d0: 65 5f 65 78 74 65 6e 64 65 64 5f 72 65 73 75 6c e_extended_resul 49e0: 74 41 28 4c 44 41 50 2c 20 4c 44 41 50 4d 65 73 tA(LDAP, LDAPMes 49f0: 73 61 67 65 2a 2c 20 50 43 48 41 52 2a 2c 20 42 sage*, PCHAR*, B 4a00: 65 72 56 61 6c 75 65 2a 2a 2c 0d 0a 09 20 20 42 erValue**,... B 4a10: 4f 4f 4c 45 41 4e 29 3b 0d 0a 09 55 4c 4f 4e 47 OOLEAN);...ULONG 4a20: 20 6c 64 61 70 5f 70 61 72 73 65 5f 65 78 74 65 ldap_parse_exte 4a30: 6e 64 65 64 5f 72 65 73 75 6c 74 57 28 4c 44 41 nded_resultW(LDA 4a40: 50 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 2a 2c P, LDAPMessage*, 4a50: 20 50 57 43 48 41 52 2a 2c 20 42 65 72 56 61 6c PWCHAR*, BerVal 4a60: 75 65 2a 2a 2c 0d 0a 09 20 20 42 4f 4f 4c 45 41 ue**,... BOOLEA 4a70: 4e 29 3b 0d 0a 09 50 43 48 41 52 20 6c 64 61 70 N);...PCHAR ldap 4a80: 5f 65 72 72 32 73 74 72 69 6e 67 41 28 55 4c 4f _err2stringA(ULO 4a90: 4e 47 29 3b 0d 0a 09 50 57 43 48 41 52 20 6c 64 NG);...PWCHAR ld 4aa0: 61 70 5f 65 72 72 32 73 74 72 69 6e 67 57 28 55 ap_err2stringW(U 4ab0: 4c 4f 4e 47 29 3b 0d 0a 09 55 4c 4f 4e 47 20 4c LONG);...ULONG L 4ac0: 64 61 70 47 65 74 4c 61 73 74 45 72 72 6f 72 28 dapGetLastError( 4ad0: 29 3b 0d 0a 09 55 4c 4f 4e 47 20 4c 64 61 70 4d );...ULONG LdapM 4ae0: 61 70 45 72 72 6f 72 54 6f 57 69 6e 33 32 28 55 apErrorToWin32(U 4af0: 4c 4f 4e 47 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c LONG);...ULONG l 4b00: 64 61 70 5f 72 65 73 75 6c 74 32 65 72 72 6f 72 dap_result2error 4b10: 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d 65 73 73 (LDAP*, LDAPMess 4b20: 61 67 65 2a 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 age*, ULONG);... 4b30: 50 4c 44 41 50 4d 65 73 73 61 67 65 20 6c 64 61 PLDAPMessage lda 4b40: 70 5f 66 69 72 73 74 5f 65 6e 74 72 79 28 4c 44 p_first_entry(LD 4b50: 41 50 2a 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 AP*, LDAPMessage 4b60: 2a 29 3b 0d 0a 09 50 4c 44 41 50 4d 65 73 73 61 *);...PLDAPMessa 4b70: 67 65 20 6c 64 61 70 5f 6e 65 78 74 5f 65 6e 74 ge ldap_next_ent 4b80: 72 79 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d 65 ry(LDAP*, LDAPMe 4b90: 73 73 61 67 65 2a 29 3b 0d 0a 09 50 4c 44 41 50 ssage*);...PLDAP 4ba0: 4d 65 73 73 61 67 65 20 6c 64 61 70 5f 66 69 72 Message ldap_fir 4bb0: 73 74 5f 72 65 66 65 72 65 6e 63 65 28 4c 44 41 st_reference(LDA 4bc0: 50 2a 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 2a P*, LDAPMessage* 4bd0: 29 3b 0d 0a 09 50 4c 44 41 50 4d 65 73 73 61 67 );...PLDAPMessag 4be0: 65 20 6c 64 61 70 5f 6e 65 78 74 5f 72 65 66 65 e ldap_next_refe 4bf0: 72 65 6e 63 65 28 4c 44 41 50 2a 2c 20 4c 44 41 rence(LDAP*, LDA 4c00: 50 4d 65 73 73 61 67 65 2a 29 3b 0d 0a 09 55 4c PMessage*);...UL 4c10: 4f 4e 47 20 6c 64 61 70 5f 63 6f 75 6e 74 5f 65 ONG ldap_count_e 4c20: 6e 74 72 69 65 73 28 4c 44 41 50 2a 2c 20 4c 44 ntries(LDAP*, LD 4c30: 41 50 4d 65 73 73 61 67 65 2a 29 3b 0d 0a 09 55 APMessage*);...U 4c40: 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f 75 6e 74 5f LONG ldap_count_ 4c50: 72 65 66 65 72 65 6e 63 65 73 28 4c 44 41 50 2a references(LDAP* 4c60: 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 2a 29 3b , LDAPMessage*); 4c70: 0d 0a 09 50 43 48 41 52 20 6c 64 61 70 5f 66 69 ...PCHAR ldap_fi 4c80: 72 73 74 5f 61 74 74 72 69 62 75 74 65 41 28 4c rst_attributeA(L 4c90: 44 41 50 2a 2c 20 4c 44 41 50 4d 65 73 73 61 67 DAP*, LDAPMessag 4ca0: 65 2a 2c 20 42 65 72 45 6c 65 6d 65 6e 74 2a 2a e*, BerElement** 4cb0: 29 3b 0d 0a 09 50 57 43 48 41 52 20 6c 64 61 70 );...PWCHAR ldap 4cc0: 5f 66 69 72 73 74 5f 61 74 74 72 69 62 75 74 65 _first_attribute 4cd0: 57 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d 65 73 W(LDAP*, LDAPMes 4ce0: 73 61 67 65 2a 2c 20 42 65 72 45 6c 65 6d 65 6e sage*, BerElemen 4cf0: 74 2a 2a 29 3b 0d 0a 09 50 43 48 41 52 20 6c 64 t**);...PCHAR ld 4d00: 61 70 5f 6e 65 78 74 5f 61 74 74 72 69 62 75 74 ap_next_attribut 4d10: 65 41 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d 65 eA(LDAP*, LDAPMe 4d20: 73 73 61 67 65 2a 2c 20 42 65 72 45 6c 65 6d 65 ssage*, BerEleme 4d30: 6e 74 2a 29 3b 0d 0a 09 50 57 43 48 41 52 20 6c nt*);...PWCHAR l 4d40: 64 61 70 5f 6e 65 78 74 5f 61 74 74 72 69 62 75 dap_next_attribu 4d50: 74 65 57 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d teW(LDAP*, LDAPM 4d60: 65 73 73 61 67 65 2a 2c 20 42 65 72 45 6c 65 6d essage*, BerElem 4d70: 65 6e 74 2a 29 3b 0d 0a 09 56 4f 49 44 20 6c 64 ent*);...VOID ld 4d80: 61 70 5f 6d 65 6d 66 72 65 65 41 28 50 43 48 41 ap_memfreeA(PCHA 4d90: 52 29 3b 0d 0a 09 56 4f 49 44 20 6c 64 61 70 5f R);...VOID ldap_ 4da0: 6d 65 6d 66 72 65 65 57 28 50 57 43 48 41 52 29 memfreeW(PWCHAR) 4db0: 3b 0d 0a 09 50 43 48 41 52 2a 20 6c 64 61 70 5f ;...PCHAR* ldap_ 4dc0: 67 65 74 5f 76 61 6c 75 65 73 41 28 4c 44 41 50 get_valuesA(LDAP 4dd0: 2a 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 2a 2c *, LDAPMessage*, 4de0: 20 50 43 48 41 52 29 3b 0d 0a 09 50 57 43 48 41 PCHAR);...PWCHA 4df0: 52 2a 20 6c 64 61 70 5f 67 65 74 5f 76 61 6c 75 R* ldap_get_valu 4e00: 65 73 57 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d esW(LDAP*, LDAPM 4e10: 65 73 73 61 67 65 2a 2c 20 50 57 43 48 41 52 29 essage*, PWCHAR) 4e20: 3b 0d 0a 09 42 65 72 56 61 6c 75 65 2a 2a 20 6c ;...BerValue** l 4e30: 64 61 70 5f 67 65 74 5f 76 61 6c 75 65 73 5f 6c dap_get_values_l 4e40: 65 6e 41 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d enA(LDAP*, LDAPM 4e50: 65 73 73 61 67 65 2a 2c 20 50 43 48 41 52 29 3b essage*, PCHAR); 4e60: 0d 0a 09 42 65 72 56 61 6c 75 65 2a 2a 20 6c 64 ...BerValue** ld 4e70: 61 70 5f 67 65 74 5f 76 61 6c 75 65 73 5f 6c 65 ap_get_values_le 4e80: 6e 57 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d 65 nW(LDAP*, LDAPMe 4e90: 73 73 61 67 65 2a 2c 20 50 57 43 48 41 52 29 3b ssage*, PWCHAR); 4ea0: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 6f ...ULONG ldap_co 4eb0: 75 6e 74 5f 76 61 6c 75 65 73 41 28 50 43 48 41 unt_valuesA(PCHA 4ec0: 52 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 R*);...ULONG lda 4ed0: 70 5f 63 6f 75 6e 74 5f 76 61 6c 75 65 73 57 28 p_count_valuesW( 4ee0: 50 57 43 48 41 52 2a 29 3b 0d 0a 09 55 4c 4f 4e PWCHAR*);...ULON 4ef0: 47 20 6c 64 61 70 5f 63 6f 75 6e 74 5f 76 61 6c G ldap_count_val 4f00: 75 65 73 5f 6c 65 6e 28 42 65 72 56 61 6c 75 65 ues_len(BerValue 4f10: 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 **);...ULONG lda 4f20: 70 5f 76 61 6c 75 65 5f 66 72 65 65 41 28 50 43 p_value_freeA(PC 4f30: 48 41 52 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c HAR*);...ULONG l 4f40: 64 61 70 5f 76 61 6c 75 65 5f 66 72 65 65 57 28 dap_value_freeW( 4f50: 50 57 43 48 41 52 2a 29 3b 0d 0a 09 55 4c 4f 4e PWCHAR*);...ULON 4f60: 47 20 6c 64 61 70 5f 76 61 6c 75 65 5f 66 72 65 G ldap_value_fre 4f70: 65 5f 6c 65 6e 28 42 65 72 56 61 6c 75 65 2a 2a e_len(BerValue** 4f80: 29 3b 0d 0a 09 50 43 48 41 52 20 6c 64 61 70 5f );...PCHAR ldap_ 4f90: 67 65 74 5f 64 6e 41 28 4c 44 41 50 2a 2c 20 4c get_dnA(LDAP*, L 4fa0: 44 41 50 4d 65 73 73 61 67 65 2a 29 3b 0d 0a 09 DAPMessage*);... 4fb0: 50 57 43 48 41 52 20 6c 64 61 70 5f 67 65 74 5f PWCHAR ldap_get_ 4fc0: 64 6e 57 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d dnW(LDAP*, LDAPM 4fd0: 65 73 73 61 67 65 2a 29 3b 0d 0a 09 50 43 48 41 essage*);...PCHA 4fe0: 52 20 6c 64 61 70 5f 65 78 70 6c 6f 64 65 5f 64 R ldap_explode_d 4ff0: 6e 41 28 50 43 48 41 52 2c 20 55 4c 4f 4e 47 29 nA(PCHAR, ULONG) 5000: 3b 0d 0a 09 50 57 43 48 41 52 20 6c 64 61 70 5f ;...PWCHAR ldap_ 5010: 65 78 70 6c 6f 64 65 5f 64 6e 57 28 50 57 43 48 explode_dnW(PWCH 5020: 41 52 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 50 43 AR, ULONG);...PC 5030: 48 41 52 20 6c 64 61 70 5f 64 6e 32 75 66 6e 41 HAR ldap_dn2ufnA 5040: 28 50 43 48 41 52 29 3b 0d 0a 09 50 57 43 48 41 (PCHAR);...PWCHA 5050: 52 20 6c 64 61 70 5f 64 6e 32 75 66 6e 57 28 50 R ldap_dn2ufnW(P 5060: 57 43 48 41 52 29 3b 0d 0a 09 55 4c 4f 4e 47 20 WCHAR);...ULONG 5070: 6c 64 61 70 5f 75 66 6e 32 64 6e 41 28 50 43 48 ldap_ufn2dnA(PCH 5080: 41 52 2c 20 50 43 48 41 52 2a 29 3b 0d 0a 09 55 AR, PCHAR*);...U 5090: 4c 4f 4e 47 20 6c 64 61 70 5f 75 66 6e 32 64 6e LONG ldap_ufn2dn 50a0: 57 28 50 57 43 48 41 52 2c 20 50 57 43 48 41 52 W(PWCHAR, PWCHAR 50b0: 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 *);...ULONG ldap 50c0: 5f 70 61 72 73 65 5f 72 65 66 65 72 65 6e 63 65 _parse_reference 50d0: 41 28 4c 44 41 50 2a 2c 20 4c 44 41 50 4d 65 73 A(LDAP*, LDAPMes 50e0: 73 61 67 65 2a 2c 20 50 43 48 41 52 2a 2a 29 3b sage*, PCHAR**); 50f0: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 70 61 ...ULONG ldap_pa 5100: 72 73 65 5f 72 65 66 65 72 65 6e 63 65 57 28 4c rse_referenceW(L 5110: 44 41 50 2a 2c 20 4c 44 41 50 4d 65 73 73 61 67 DAP*, LDAPMessag 5120: 65 2a 2c 20 50 57 43 48 41 52 2a 2a 29 3b 0d 0a e*, PWCHAR**);.. 5130: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 68 65 63 .ULONG ldap_chec 5140: 6b 5f 66 69 6c 74 65 72 41 28 4c 44 41 50 2a 2c k_filterA(LDAP*, 5150: 20 50 43 48 41 52 29 3b 0d 0a 09 55 4c 4f 4e 47 PCHAR);...ULONG 5160: 20 6c 64 61 70 5f 63 68 65 63 6b 5f 66 69 6c 74 ldap_check_filt 5170: 65 72 57 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 erW(LDAP*, PWCHA 5180: 52 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 R);...ULONG ldap 5190: 5f 63 72 65 61 74 65 5f 70 61 67 65 5f 63 6f 6e _create_page_con 51a0: 74 72 6f 6c 41 28 50 4c 44 41 50 2c 20 55 4c 4f trolA(PLDAP, ULO 51b0: 4e 47 2c 20 42 65 72 56 61 6c 75 65 2a 2c 20 55 NG, BerValue*, U 51c0: 43 48 41 52 2c 0d 0a 09 20 20 50 4c 44 41 50 43 CHAR,... PLDAPC 51d0: 6f 6e 74 72 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f ontrolA*);...ULO 51e0: 4e 47 20 6c 64 61 70 5f 63 72 65 61 74 65 5f 70 NG ldap_create_p 51f0: 61 67 65 5f 63 6f 6e 74 72 6f 6c 57 28 50 4c 44 age_controlW(PLD 5200: 41 50 2c 20 55 4c 4f 4e 47 2c 20 42 65 72 56 61 AP, ULONG, BerVa 5210: 6c 75 65 2a 2c 20 55 43 48 41 52 2c 0d 0a 09 20 lue*, UCHAR,... 5220: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 29 PLDAPControlW*) 5230: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 63 ;...ULONG ldap_c 5240: 72 65 61 74 65 5f 73 6f 72 74 5f 63 6f 6e 74 72 reate_sort_contr 5250: 6f 6c 41 28 50 4c 44 41 50 2c 20 50 4c 44 41 50 olA(PLDAP, PLDAP 5260: 53 6f 72 74 4b 65 79 41 2a 2c 20 55 43 48 41 52 SortKeyA*, UCHAR 5270: 2c 0d 0a 09 20 20 50 4c 44 41 50 43 6f 6e 74 72 ,... PLDAPContr 5280: 6f 6c 41 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c olA*);...ULONG l 5290: 64 61 70 5f 63 72 65 61 74 65 5f 73 6f 72 74 5f dap_create_sort_ 52a0: 63 6f 6e 74 72 6f 6c 57 28 50 4c 44 41 50 2c 20 controlW(PLDAP, 52b0: 50 4c 44 41 50 53 6f 72 74 4b 65 79 57 2a 2c 20 PLDAPSortKeyW*, 52c0: 55 43 48 41 52 2c 0d 0a 09 50 4c 44 41 50 43 6f UCHAR,...PLDAPCo 52d0: 6e 74 72 6f 6c 57 2a 29 3b 0d 0a 09 49 4e 54 20 ntrolW*);...INT 52e0: 6c 64 61 70 5f 63 72 65 61 74 65 5f 76 6c 76 5f ldap_create_vlv_ 52f0: 63 6f 6e 74 72 6f 6c 41 28 4c 44 41 50 2a 2c 20 controlA(LDAP*, 5300: 4c 44 41 50 56 4c 56 49 6e 66 6f 2a 2c 20 55 43 LDAPVLVInfo*, UC 5310: 48 41 52 2c 20 4c 44 41 50 43 6f 6e 74 72 6f 6c HAR, LDAPControl 5320: 41 2a 2a 29 3b 0d 0a 09 49 4e 54 20 6c 64 61 70 A**);...INT ldap 5330: 5f 63 72 65 61 74 65 5f 76 6c 76 5f 63 6f 6e 74 _create_vlv_cont 5340: 72 6f 6c 57 28 4c 44 41 50 2a 2c 20 4c 44 41 50 rolW(LDAP*, LDAP 5350: 56 4c 56 49 6e 66 6f 2a 2c 20 55 43 48 41 52 2c VLVInfo*, UCHAR, 5360: 20 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2a 29 LDAPControlW**) 5370: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 65 ;...ULONG ldap_e 5380: 6e 63 6f 64 65 5f 73 6f 72 74 5f 63 6f 6e 74 72 ncode_sort_contr 5390: 6f 6c 41 28 50 4c 44 41 50 2c 20 50 4c 44 41 50 olA(PLDAP, PLDAP 53a0: 53 6f 72 74 4b 65 79 41 2a 2c 20 50 4c 44 41 50 SortKeyA*, PLDAP 53b0: 43 6f 6e 74 72 6f 6c 41 2c 0d 0a 09 20 20 42 4f ControlA,... BO 53c0: 4f 4c 45 41 4e 29 3b 0d 0a 09 55 4c 4f 4e 47 20 OLEAN);...ULONG 53d0: 6c 64 61 70 5f 65 6e 63 6f 64 65 5f 73 6f 72 74 ldap_encode_sort 53e0: 5f 63 6f 6e 74 72 6f 6c 57 28 50 4c 44 41 50 2c _controlW(PLDAP, 53f0: 20 50 4c 44 41 50 53 6f 72 74 4b 65 79 57 2a 2c PLDAPSortKeyW*, 5400: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2c 0d PLDAPControlW,. 5410: 0a 09 20 20 42 4f 4f 4c 45 41 4e 29 3b 0d 0a 09 .. BOOLEAN);... 5420: 55 4c 4f 4e 47 20 6c 64 61 70 5f 65 73 63 61 70 ULONG ldap_escap 5430: 65 5f 66 69 6c 74 65 72 5f 65 6c 65 6d 65 6e 74 e_filter_element 5440: 41 28 50 43 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 A(PCHAR, ULONG, 5450: 50 43 48 41 52 2c 20 55 4c 4f 4e 47 29 3b 0d 0a PCHAR, ULONG);.. 5460: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 65 73 63 61 .ULONG ldap_esca 5470: 70 65 5f 66 69 6c 74 65 72 5f 65 6c 65 6d 65 6e pe_filter_elemen 5480: 74 57 28 50 57 43 48 41 52 2c 20 55 4c 4f 4e 47 tW(PWCHAR, ULONG 5490: 2c 20 50 57 43 48 41 52 2c 20 55 4c 4f 4e 47 29 , PWCHAR, ULONG) 54a0: 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 67 ;...ULONG ldap_g 54b0: 65 74 5f 6e 65 78 74 5f 70 61 67 65 28 50 4c 44 et_next_page(PLD 54c0: 41 50 2c 20 50 4c 44 41 50 53 65 61 72 63 68 2c AP, PLDAPSearch, 54d0: 20 55 4c 4f 4e 47 2c 20 55 4c 4f 4e 47 2a 29 3b ULONG, ULONG*); 54e0: 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 67 65 ...ULONG ldap_ge 54f0: 74 5f 6e 65 78 74 5f 70 61 67 65 5f 73 28 50 4c t_next_page_s(PL 5500: 44 41 50 2c 20 50 4c 44 41 50 53 65 61 72 63 68 DAP, PLDAPSearch 5510: 2c 20 4c 44 41 50 5f 54 49 4d 45 56 41 4c 2a 2c , LDAP_TIMEVAL*, 5520: 20 55 4c 4f 4e 47 2c 0d 0a 09 20 20 55 4c 4f 4e ULONG,... ULON 5530: 47 2a 2c 20 4c 44 41 50 4d 65 73 73 61 67 65 2a G*, LDAPMessage* 5540: 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 61 70 *);...ULONG ldap 5550: 5f 67 65 74 5f 70 61 67 65 64 5f 63 6f 75 6e 74 _get_paged_count 5560: 28 50 4c 44 41 50 2c 20 50 4c 44 41 50 53 65 61 (PLDAP, PLDAPSea 5570: 72 63 68 2c 20 55 4c 4f 4e 47 2a 2c 20 50 4c 44 rch, ULONG*, PLD 5580: 41 50 4d 65 73 73 61 67 65 29 3b 0d 0a 09 55 4c APMessage);...UL 5590: 4f 4e 47 20 6c 64 61 70 5f 70 61 72 73 65 5f 70 ONG ldap_parse_p 55a0: 61 67 65 5f 63 6f 6e 74 72 6f 6c 41 28 50 4c 44 age_controlA(PLD 55b0: 41 50 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c AP, PLDAPControl 55c0: 41 2a 2c 20 55 4c 4f 4e 47 2a 2c 20 42 65 72 56 A*, ULONG*, BerV 55d0: 61 6c 75 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 alue**);...ULONG 55e0: 20 6c 64 61 70 5f 70 61 72 73 65 5f 70 61 67 65 ldap_parse_page 55f0: 5f 63 6f 6e 74 72 6f 6c 57 28 50 4c 44 41 50 2c _controlW(PLDAP, 5600: 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 2a 2c PLDAPControlW*, 5610: 20 55 4c 4f 4e 47 2a 2c 20 42 65 72 56 61 6c 75 ULONG*, BerValu 5620: 65 2a 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 6c 64 e**);...ULONG ld 5630: 61 70 5f 70 61 72 73 65 5f 73 6f 72 74 5f 63 6f ap_parse_sort_co 5640: 6e 74 72 6f 6c 41 28 50 4c 44 41 50 2c 20 50 4c ntrolA(PLDAP, PL 5650: 44 41 50 43 6f 6e 74 72 6f 6c 41 2a 2c 20 55 4c DAPControlA*, UL 5660: 4f 4e 47 2a 2c 20 50 43 48 41 52 2a 29 3b 0d 0a ONG*, PCHAR*);.. 5670: 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 70 61 72 73 .ULONG ldap_pars 5680: 65 5f 73 6f 72 74 5f 63 6f 6e 74 72 6f 6c 57 28 e_sort_controlW( 5690: 50 4c 44 41 50 2c 20 50 4c 44 41 50 43 6f 6e 74 PLDAP, PLDAPCont 56a0: 72 6f 6c 57 2a 2c 20 55 4c 4f 4e 47 2a 2c 20 50 rolW*, ULONG*, P 56b0: 57 43 48 41 52 2a 29 3b 0d 0a 09 49 4e 54 20 6c WCHAR*);...INT l 56c0: 64 61 70 5f 70 61 72 73 65 5f 76 6c 76 5f 63 6f dap_parse_vlv_co 56d0: 6e 74 72 6f 6c 41 28 4c 44 41 50 2a 2c 20 4c 44 ntrolA(LDAP*, LD 56e0: 41 50 43 6f 6e 74 72 6f 6c 41 2a 2a 2c 20 75 69 APControlA**, ui 56f0: 6e 74 2a 2c 20 75 69 6e 74 2a 2c 0d 0a 09 20 20 nt*, uint*,... 5700: 42 65 72 56 61 6c 75 65 2a 2a 2c 20 69 6e 74 2a BerValue**, int* 5710: 29 3b 0d 0a 09 49 4e 54 20 6c 64 61 70 5f 70 61 );...INT ldap_pa 5720: 72 73 65 5f 76 6c 76 5f 63 6f 6e 74 72 6f 6c 57 rse_vlv_controlW 5730: 28 4c 44 41 50 2a 2c 20 4c 44 41 50 43 6f 6e 74 (LDAP*, LDAPCont 5740: 72 6f 6c 57 2a 2a 2c 20 75 69 6e 74 2a 2c 20 75 rolW**, uint*, u 5750: 69 6e 74 2a 2c 0d 0a 09 20 20 42 65 72 56 61 6c int*,... BerVal 5760: 75 65 2a 2a 2c 20 69 6e 74 2a 29 3b 0d 0a 09 50 ue**, int*);...P 5770: 4c 44 41 50 53 65 61 72 63 68 20 6c 64 61 70 5f LDAPSearch ldap_ 5780: 73 65 61 72 63 68 5f 69 6e 69 74 5f 70 61 67 65 search_init_page 5790: 41 28 50 4c 44 41 50 2c 20 50 43 48 41 52 2c 20 A(PLDAP, PCHAR, 57a0: 55 4c 4f 4e 47 2c 20 50 43 48 41 52 2c 20 50 43 ULONG, PCHAR, PC 57b0: 48 41 52 5b 5d 2c 0d 0a 09 20 20 55 4c 4f 4e 47 HAR[],... ULONG 57c0: 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a , PLDAPControlA* 57d0: 2c 20 50 4c 44 41 50 43 6f 6e 74 72 6f 6c 41 2a , PLDAPControlA* 57e0: 2c 20 55 4c 4f 4e 47 2c 20 55 4c 4f 4e 47 2c 20 , ULONG, ULONG, 57f0: 50 4c 44 41 50 53 6f 72 74 4b 65 79 41 2a 29 3b PLDAPSortKeyA*); 5800: 0d 0a 09 50 4c 44 41 50 53 65 61 72 63 68 20 6c ...PLDAPSearch l 5810: 64 61 70 5f 73 65 61 72 63 68 5f 69 6e 69 74 5f dap_search_init_ 5820: 70 61 67 65 57 28 50 4c 44 41 50 2c 20 50 57 43 pageW(PLDAP, PWC 5830: 48 41 52 2c 20 55 4c 4f 4e 47 2c 20 50 57 43 48 HAR, ULONG, PWCH 5840: 41 52 2c 20 50 57 43 48 41 52 5b 5d 2c 0d 0a 09 AR, PWCHAR[],... 5850: 20 20 55 4c 4f 4e 47 2c 20 50 4c 44 41 50 43 6f ULONG, PLDAPCo 5860: 6e 74 72 6f 6c 57 2a 2c 20 50 4c 44 41 50 43 6f ntrolW*, PLDAPCo 5870: 6e 74 72 6f 6c 57 2a 2c 20 55 4c 4f 4e 47 2c 20 ntrolW*, ULONG, 5880: 55 4c 4f 4e 47 2c 20 50 4c 44 41 50 53 6f 72 74 ULONG, PLDAPSort 5890: 4b 65 79 57 2a 29 3b 0d 0a 09 55 4c 4f 4e 47 20 KeyW*);...ULONG 58a0: 6c 64 61 70 5f 73 65 61 72 63 68 5f 61 62 61 6e ldap_search_aban 58b0: 64 6f 6e 5f 70 61 67 65 28 50 4c 44 41 50 2c 20 don_page(PLDAP, 58c0: 50 4c 44 41 50 53 65 61 72 63 68 29 3b 0d 0a 09 PLDAPSearch);... 58d0: 4c 44 41 50 20 6c 64 61 70 5f 63 6f 6e 6e 5f 66 LDAP ldap_conn_f 58e0: 72 6f 6d 5f 6d 73 67 28 4c 44 41 50 2a 2c 20 4c rom_msg(LDAP*, L 58f0: 44 41 50 4d 65 73 73 61 67 65 2a 29 3b 0d 0a 09 DAPMessage*);... 5900: 49 4e 54 20 4c 64 61 70 55 6e 69 63 6f 64 65 54 INT LdapUnicodeT 5910: 6f 55 54 46 38 28 4c 50 43 57 53 54 52 2c 20 69 oUTF8(LPCWSTR, i 5920: 6e 74 2c 20 4c 50 53 54 52 2c 20 69 6e 74 29 3b nt, LPSTR, int); 5930: 0d 0a 09 49 4e 54 20 4c 64 61 70 55 54 46 38 54 ...INT LdapUTF8T 5940: 6f 55 6e 69 63 6f 64 65 28 4c 50 43 53 54 52 2c oUnicode(LPCSTR, 5950: 20 69 6e 74 2c 20 4c 50 57 53 54 52 2c 20 69 6e int, LPWSTR, in 5960: 74 29 3b 0d 0a 09 64 65 70 72 65 63 61 74 65 64 t);...deprecated 5970: 20 7b 0d 0a 09 09 55 4c 4f 4e 47 20 6c 64 61 70 {....ULONG ldap 5980: 5f 62 69 6e 64 41 28 4c 44 41 50 2a 2c 20 50 43 _bindA(LDAP*, PC 5990: 48 41 52 2c 20 50 43 48 41 52 2c 20 55 4c 4f 4e HAR, PCHAR, ULON 59a0: 47 29 3b 0d 0a 09 09 55 4c 4f 4e 47 20 6c 64 61 G);....ULONG lda 59b0: 70 5f 62 69 6e 64 57 28 4c 44 41 50 2a 2c 20 50 p_bindW(LDAP*, P 59c0: 57 43 48 41 52 2c 20 50 57 43 48 41 52 2c 20 55 WCHAR, PWCHAR, U 59d0: 4c 4f 4e 47 29 3b 0d 0a 09 09 55 4c 4f 4e 47 20 LONG);....ULONG 59e0: 6c 64 61 70 5f 62 69 6e 64 5f 73 41 28 4c 44 41 ldap_bind_sA(LDA 59f0: 50 2a 2c 20 50 43 48 41 52 2c 20 50 43 48 41 52 P*, PCHAR, PCHAR 5a00: 2c 20 55 4c 4f 4e 47 29 3b 0d 0a 09 09 55 4c 4f , ULONG);....ULO 5a10: 4e 47 20 6c 64 61 70 5f 62 69 6e 64 5f 73 57 28 NG ldap_bind_sW( 5a20: 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 LDAP*, PWCHAR, P 5a30: 57 43 48 41 52 2c 20 55 4c 4f 4e 47 29 3b 0d 0a WCHAR, ULONG);.. 5a40: 09 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 6d 6f 64 ..ULONG ldap_mod 5a50: 72 64 6e 41 28 4c 44 41 50 2a 2c 20 50 43 48 41 rdnA(LDAP*, PCHA 5a60: 52 2c 20 50 43 48 41 52 29 3b 0d 0a 09 09 55 4c R, PCHAR);....UL 5a70: 4f 4e 47 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 57 ONG ldap_modrdnW 5a80: 28 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 (LDAP*, PWCHAR, 5a90: 50 57 43 48 41 52 29 3b 0d 0a 09 09 55 4c 4f 4e PWCHAR);....ULON 5aa0: 47 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 5f 73 41 G ldap_modrdn_sA 5ab0: 28 4c 44 41 50 2a 2c 20 50 43 48 41 52 2c 20 50 (LDAP*, PCHAR, P 5ac0: 43 48 41 52 29 3b 0d 0a 09 09 55 4c 4f 4e 47 20 CHAR);....ULONG 5ad0: 6c 64 61 70 5f 6d 6f 64 72 64 6e 5f 73 57 28 4c ldap_modrdn_sW(L 5ae0: 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 57 DAP*, PWCHAR, PW 5af0: 43 48 41 52 29 3b 0d 0a 09 09 55 4c 4f 4e 47 20 CHAR);....ULONG 5b00: 6c 64 61 70 5f 6d 6f 64 72 64 6e 32 41 28 4c 44 ldap_modrdn2A(LD 5b10: 41 50 2a 2c 20 50 43 48 41 52 2c 20 50 43 48 41 AP*, PCHAR, PCHA 5b20: 52 2c 20 49 4e 54 29 3b 0d 0a 09 09 55 4c 4f 4e R, INT);....ULON 5b30: 47 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 32 57 28 G ldap_modrdn2W( 5b40: 4c 44 41 50 2a 2c 20 50 57 43 48 41 52 2c 20 50 LDAP*, PWCHAR, P 5b50: 57 43 48 41 52 2c 20 49 4e 54 29 3b 0d 0a 09 09 WCHAR, INT);.... 5b60: 55 4c 4f 4e 47 20 6c 64 61 70 5f 6d 6f 64 72 64 ULONG ldap_modrd 5b70: 6e 32 5f 73 41 28 4c 44 41 50 2a 2c 20 50 43 48 n2_sA(LDAP*, PCH 5b80: 41 52 2c 20 50 43 48 41 52 2c 20 49 4e 54 29 3b AR, PCHAR, INT); 5b90: 0d 0a 09 09 55 4c 4f 4e 47 20 6c 64 61 70 5f 6d ....ULONG ldap_m 5ba0: 6f 64 72 64 6e 32 5f 73 57 28 4c 44 41 50 2a 2c odrdn2_sW(LDAP*, 5bb0: 20 50 57 43 48 41 52 2c 20 50 57 43 48 41 52 2c PWCHAR, PWCHAR, 5bc0: 20 49 4e 54 29 3b 0d 0a 09 7d 0d 0a 7d 0d 0a 0d INT);...}..}... 5bd0: 0a 76 65 72 73 69 6f 6e 20 28 55 6e 69 63 6f 64 .version (Unicod 5be0: 65 29 20 7b 0d 0a 09 61 6c 69 61 73 20 4c 44 41 e) {...alias LDA 5bf0: 50 43 6f 6e 74 72 6f 6c 57 20 4c 44 41 50 43 6f PControlW LDAPCo 5c00: 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 73 20 50 ntrol;...alias P 5c10: 4c 44 41 50 43 6f 6e 74 72 6f 6c 57 20 50 4c 44 LDAPControlW PLD 5c20: 41 50 43 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 APControl;...ali 5c30: 61 73 20 4c 44 41 50 4d 6f 64 57 20 4c 44 41 50 as LDAPModW LDAP 5c40: 4d 6f 64 3b 0d 0a 09 61 6c 69 61 73 20 4c 44 41 Mod;...alias LDA 5c50: 50 4d 6f 64 57 20 50 4c 44 41 50 4d 6f 64 3b 0d PModW PLDAPMod;. 5c60: 0a 09 61 6c 69 61 73 20 4c 44 41 50 53 6f 72 74 ..alias LDAPSort 5c70: 4b 65 79 57 20 4c 44 41 50 53 6f 72 74 4b 65 79 KeyW LDAPSortKey 5c80: 3b 0d 0a 09 61 6c 69 61 73 20 50 4c 44 41 50 53 ;...alias PLDAPS 5c90: 6f 72 74 4b 65 79 57 20 50 4c 44 41 50 53 6f 72 ortKeyW PLDAPSor 5ca0: 74 4b 65 79 3b 0d 0a 09 61 6c 69 61 73 20 4c 44 tKey;...alias LD 5cb0: 41 50 41 50 49 49 6e 66 6f 57 20 4c 44 41 50 41 APAPIInfoW LDAPA 5cc0: 50 49 49 6e 66 6f 3b 0d 0a 09 61 6c 69 61 73 20 PIInfo;...alias 5cd0: 50 4c 44 41 50 41 50 49 49 6e 66 6f 57 20 50 4c PLDAPAPIInfoW PL 5ce0: 44 41 50 41 50 49 49 6e 66 6f 3b 0d 0a 09 61 6c DAPAPIInfo;...al 5cf0: 69 61 73 20 4c 44 41 50 41 50 49 46 65 61 74 75 ias LDAPAPIFeatu 5d00: 72 65 49 6e 66 6f 57 20 4c 44 41 50 41 50 49 46 reInfoW LDAPAPIF 5d10: 65 61 74 75 72 65 49 6e 66 6f 3b 0d 0a 09 61 6c eatureInfo;...al 5d20: 69 61 73 20 50 4c 44 41 50 41 50 49 46 65 61 74 ias PLDAPAPIFeat 5d30: 75 72 65 49 6e 66 6f 57 20 50 4c 44 41 50 41 50 ureInfoW PLDAPAP 5d40: 49 46 65 61 74 75 72 65 49 6e 66 6f 3b 0d 0a 09 IFeatureInfo;... 5d50: 61 6c 69 61 73 20 63 6c 64 61 70 5f 6f 70 65 6e alias cldap_open 5d60: 57 20 63 6c 64 61 70 5f 6f 70 65 6e 3b 0d 0a 09 W cldap_open;... 5d70: 61 6c 69 61 73 20 6c 64 61 70 5f 6f 70 65 6e 57 alias ldap_openW 5d80: 20 6c 64 61 70 5f 6f 70 65 6e 3b 0d 0a 09 61 6c ldap_open;...al 5d90: 69 61 73 20 6c 64 61 70 5f 73 69 6d 70 6c 65 5f ias ldap_simple_ 5da0: 62 69 6e 64 57 20 6c 64 61 70 5f 73 69 6d 70 6c bindW ldap_simpl 5db0: 65 5f 62 69 6e 64 3b 0d 0a 09 61 6c 69 61 73 20 e_bind;...alias 5dc0: 6c 64 61 70 5f 73 69 6d 70 6c 65 5f 62 69 6e 64 ldap_simple_bind 5dd0: 5f 73 57 20 6c 64 61 70 5f 73 69 6d 70 6c 65 5f _sW ldap_simple_ 5de0: 62 69 6e 64 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 bind_s;...alias 5df0: 6c 64 61 70 5f 73 61 73 6c 5f 62 69 6e 64 57 20 ldap_sasl_bindW 5e00: 6c 64 61 70 5f 73 61 73 6c 5f 62 69 6e 64 3b 0d ldap_sasl_bind;. 5e10: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 61 73 ..alias ldap_sas 5e20: 6c 5f 62 69 6e 64 5f 73 57 20 6c 64 61 70 5f 73 l_bind_sW ldap_s 5e30: 61 73 6c 5f 62 69 6e 64 5f 73 3b 0d 0a 09 61 6c asl_bind_s;...al 5e40: 69 61 73 20 6c 64 61 70 5f 69 6e 69 74 57 20 6c ias ldap_initW l 5e50: 64 61 70 5f 69 6e 69 74 3b 0d 0a 09 61 6c 69 61 dap_init;...alia 5e60: 73 20 6c 64 61 70 5f 73 73 6c 69 6e 69 74 57 20 s ldap_sslinitW 5e70: 6c 64 61 70 5f 73 73 6c 69 6e 69 74 3b 0d 0a 09 ldap_sslinit;... 5e80: 61 6c 69 61 73 20 6c 64 61 70 5f 67 65 74 5f 6f alias ldap_get_o 5e90: 70 74 69 6f 6e 57 20 6c 64 61 70 5f 67 65 74 5f ptionW ldap_get_ 5ea0: 6f 70 74 69 6f 6e 3b 0d 0a 09 61 6c 69 61 73 20 option;...alias 5eb0: 6c 64 61 70 5f 73 65 74 5f 6f 70 74 69 6f 6e 57 ldap_set_optionW 5ec0: 20 6c 64 61 70 5f 73 65 74 5f 6f 70 74 69 6f 6e ldap_set_option 5ed0: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 ;...alias ldap_s 5ee0: 74 61 72 74 5f 74 6c 73 5f 73 57 20 6c 64 61 70 tart_tls_sW ldap 5ef0: 5f 73 74 61 72 74 5f 74 6c 73 5f 73 3b 0d 0a 09 _start_tls_s;... 5f00: 61 6c 69 61 73 20 6c 64 61 70 5f 61 64 64 57 20 alias ldap_addW 5f10: 6c 64 61 70 5f 61 64 64 3b 0d 0a 09 61 6c 69 61 ldap_add;...alia 5f20: 73 20 6c 64 61 70 5f 61 64 64 5f 65 78 74 57 20 s ldap_add_extW 5f30: 6c 64 61 70 5f 61 64 64 5f 65 78 74 3b 0d 0a 09 ldap_add_ext;... 5f40: 61 6c 69 61 73 20 6c 64 61 70 5f 61 64 64 5f 73 alias ldap_add_s 5f50: 57 20 6c 64 61 70 5f 61 64 64 5f 73 3b 0d 0a 09 W ldap_add_s;... 5f60: 61 6c 69 61 73 20 6c 64 61 70 5f 61 64 64 5f 65 alias ldap_add_e 5f70: 78 74 5f 73 57 20 6c 64 61 70 5f 61 64 64 5f 65 xt_sW ldap_add_e 5f80: 78 74 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 xt_s;...alias ld 5f90: 61 70 5f 63 6f 6d 70 61 72 65 57 20 6c 64 61 70 ap_compareW ldap 5fa0: 5f 63 6f 6d 70 61 72 65 3b 0d 0a 09 61 6c 69 61 _compare;...alia 5fb0: 73 20 6c 64 61 70 5f 63 6f 6d 70 61 72 65 5f 65 s ldap_compare_e 5fc0: 78 74 57 20 6c 64 61 70 5f 63 6f 6d 70 61 72 65 xtW ldap_compare 5fd0: 5f 65 78 74 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 _ext;...alias ld 5fe0: 61 70 5f 63 6f 6d 70 61 72 65 5f 73 57 20 6c 64 ap_compare_sW ld 5ff0: 61 70 5f 63 6f 6d 70 61 72 65 5f 73 3b 0d 0a 09 ap_compare_s;... 6000: 61 6c 69 61 73 20 6c 64 61 70 5f 63 6f 6d 70 61 alias ldap_compa 6010: 72 65 5f 65 78 74 5f 73 57 20 6c 64 61 70 5f 63 re_ext_sW ldap_c 6020: 6f 6d 70 61 72 65 5f 65 78 74 5f 73 3b 0d 0a 09 ompare_ext_s;... 6030: 61 6c 69 61 73 20 6c 64 61 70 5f 64 65 6c 65 74 alias ldap_delet 6040: 65 57 20 6c 64 61 70 5f 64 65 6c 65 74 65 3b 0d eW ldap_delete;. 6050: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 64 65 6c ..alias ldap_del 6060: 65 74 65 5f 65 78 74 57 20 6c 64 61 70 5f 64 65 ete_extW ldap_de 6070: 6c 65 74 65 5f 65 78 74 3b 0d 0a 09 61 6c 69 61 lete_ext;...alia 6080: 73 20 6c 64 61 70 5f 64 65 6c 65 74 65 5f 73 57 s ldap_delete_sW 6090: 20 6c 64 61 70 5f 64 65 6c 65 74 65 5f 73 3b 0d ldap_delete_s;. 60a0: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 64 65 6c ..alias ldap_del 60b0: 65 74 65 5f 65 78 74 5f 73 57 20 6c 64 61 70 5f ete_ext_sW ldap_ 60c0: 64 65 6c 65 74 65 5f 65 78 74 5f 73 3b 0d 0a 09 delete_ext_s;... 60d0: 61 6c 69 61 73 20 6c 64 61 70 5f 65 78 74 65 6e alias ldap_exten 60e0: 64 65 64 5f 6f 70 65 72 61 74 69 6f 6e 5f 73 57 ded_operation_sW 60f0: 20 6c 64 61 70 5f 65 78 74 65 6e 64 65 64 5f 6f ldap_extended_o 6100: 70 65 72 61 74 69 6f 6e 5f 73 3b 0d 0a 09 61 6c peration_s;...al 6110: 69 61 73 20 6c 64 61 70 5f 65 78 74 65 6e 64 65 ias ldap_extende 6120: 64 5f 6f 70 65 72 61 74 69 6f 6e 57 20 6c 64 61 d_operationW lda 6130: 70 5f 65 78 74 65 6e 64 65 64 5f 6f 70 65 72 61 p_extended_opera 6140: 74 69 6f 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 tion;...alias ld 6150: 61 70 5f 6d 6f 64 69 66 79 57 20 6c 64 61 70 5f ap_modifyW ldap_ 6160: 6d 6f 64 69 66 79 3b 0d 0a 09 61 6c 69 61 73 20 modify;...alias 6170: 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 57 ldap_modify_extW 6180: 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 ldap_modify_ext 6190: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 6d ;...alias ldap_m 61a0: 6f 64 69 66 79 5f 73 57 20 6c 64 61 70 5f 6d 6f odify_sW ldap_mo 61b0: 64 69 66 79 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 dify_s;...alias 61c0: 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 5f ldap_modify_ext_ 61d0: 73 57 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 sW ldap_modify_e 61e0: 78 74 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 xt_s;...alias ld 61f0: 61 70 5f 63 68 65 63 6b 5f 66 69 6c 74 65 72 57 ap_check_filterW 6200: 20 6c 64 61 70 5f 63 68 65 63 6b 5f 66 69 6c 74 ldap_check_filt 6210: 65 72 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 er;...alias ldap 6220: 5f 63 6f 75 6e 74 5f 76 61 6c 75 65 73 57 20 6c _count_valuesW l 6230: 64 61 70 5f 63 6f 75 6e 74 5f 76 61 6c 75 65 73 dap_count_values 6240: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 63 ;...alias ldap_c 6250: 72 65 61 74 65 5f 70 61 67 65 5f 63 6f 6e 74 72 reate_page_contr 6260: 6f 6c 57 20 6c 64 61 70 5f 63 72 65 61 74 65 5f olW ldap_create_ 6270: 70 61 67 65 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 page_control;... 6280: 61 6c 69 61 73 20 6c 64 61 70 5f 63 72 65 61 74 alias ldap_creat 6290: 65 5f 73 6f 72 74 5f 63 6f 6e 74 72 6f 6c 57 20 e_sort_controlW 62a0: 6c 64 61 70 5f 63 72 65 61 74 65 5f 73 6f 72 74 ldap_create_sort 62b0: 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 _control;...alia 62c0: 73 20 6c 64 61 70 5f 63 72 65 61 74 65 5f 76 6c s ldap_create_vl 62d0: 76 5f 63 6f 6e 74 72 6f 6c 57 20 6c 64 61 70 5f v_controlW ldap_ 62e0: 63 72 65 61 74 65 5f 76 6c 76 5f 63 6f 6e 74 72 create_vlv_contr 62f0: 6f 6c 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 ol;...alias ldap 6300: 5f 65 6e 63 6f 64 65 5f 73 6f 72 74 5f 63 6f 6e _encode_sort_con 6310: 74 72 6f 6c 57 20 6c 64 61 70 5f 65 6e 63 6f 64 trolW ldap_encod 6320: 65 5f 73 6f 72 74 5f 63 6f 6e 74 72 6f 6c 3b 0d e_sort_control;. 6330: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 65 73 63 ..alias ldap_esc 6340: 61 70 65 5f 66 69 6c 74 65 72 5f 65 6c 65 6d 65 ape_filter_eleme 6350: 6e 74 57 20 6c 64 61 70 5f 65 73 63 61 70 65 5f ntW ldap_escape_ 6360: 66 69 6c 74 65 72 5f 65 6c 65 6d 65 6e 74 3b 0d filter_element;. 6370: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 66 69 72 ..alias ldap_fir 6380: 73 74 5f 61 74 74 72 69 62 75 74 65 57 20 6c 64 st_attributeW ld 6390: 61 70 5f 66 69 72 73 74 5f 61 74 74 72 69 62 75 ap_first_attribu 63a0: 74 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 te;...alias ldap 63b0: 5f 6e 65 78 74 5f 61 74 74 72 69 62 75 74 65 57 _next_attributeW 63c0: 20 6c 64 61 70 5f 6e 65 78 74 5f 61 74 74 72 69 ldap_next_attri 63d0: 62 75 74 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 bute;...alias ld 63e0: 61 70 5f 67 65 74 5f 76 61 6c 75 65 73 57 20 6c ap_get_valuesW l 63f0: 64 61 70 5f 67 65 74 5f 76 61 6c 75 65 73 3b 0d dap_get_values;. 6400: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 67 65 74 ..alias ldap_get 6410: 5f 76 61 6c 75 65 73 5f 6c 65 6e 57 20 6c 64 61 _values_lenW lda 6420: 70 5f 67 65 74 5f 76 61 6c 75 65 73 5f 6c 65 6e p_get_values_len 6430: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 70 ;...alias ldap_p 6440: 61 72 73 65 5f 65 78 74 65 6e 64 65 64 5f 72 65 arse_extended_re 6450: 73 75 6c 74 57 20 6c 64 61 70 5f 70 61 72 73 65 sultW ldap_parse 6460: 5f 65 78 74 65 6e 64 65 64 5f 72 65 73 75 6c 74 _extended_result 6470: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 70 ;...alias ldap_p 6480: 61 72 73 65 5f 70 61 67 65 5f 63 6f 6e 74 72 6f arse_page_contro 6490: 6c 57 20 6c 64 61 70 5f 70 61 72 73 65 5f 70 61 lW ldap_parse_pa 64a0: 67 65 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c ge_control;...al 64b0: 69 61 73 20 6c 64 61 70 5f 70 61 72 73 65 5f 72 ias ldap_parse_r 64c0: 65 66 65 72 65 6e 63 65 57 20 6c 64 61 70 5f 70 eferenceW ldap_p 64d0: 61 72 73 65 5f 72 65 66 65 72 65 6e 63 65 3b 0d arse_reference;. 64e0: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 70 61 72 ..alias ldap_par 64f0: 73 65 5f 72 65 73 75 6c 74 57 20 6c 64 61 70 5f se_resultW ldap_ 6500: 70 61 72 73 65 5f 72 65 73 75 6c 74 3b 0d 0a 09 parse_result;... 6510: 61 6c 69 61 73 20 6c 64 61 70 5f 70 61 72 73 65 alias ldap_parse 6520: 5f 73 6f 72 74 5f 63 6f 6e 74 72 6f 6c 57 20 6c _sort_controlW l 6530: 64 61 70 5f 70 61 72 73 65 5f 73 6f 72 74 5f 63 dap_parse_sort_c 6540: 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 73 20 ontrol;...alias 6550: 6c 64 61 70 5f 70 61 72 73 65 5f 76 6c 76 5f 63 ldap_parse_vlv_c 6560: 6f 6e 74 72 6f 6c 57 20 6c 64 61 70 5f 70 61 72 ontrolW ldap_par 6570: 73 65 5f 76 6c 76 5f 63 6f 6e 74 72 6f 6c 3b 0d se_vlv_control;. 6580: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 65 61 ..alias ldap_sea 6590: 72 63 68 57 20 6c 64 61 70 5f 73 65 61 72 63 68 rchW ldap_search 65a0: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 ;...alias ldap_s 65b0: 65 61 72 63 68 5f 73 57 20 6c 64 61 70 5f 73 65 earch_sW ldap_se 65c0: 61 72 63 68 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 arch_s;...alias 65d0: 6c 64 61 70 5f 73 65 61 72 63 68 5f 73 74 57 20 ldap_search_stW 65e0: 6c 64 61 70 5f 73 65 61 72 63 68 5f 73 74 3b 0d ldap_search_st;. 65f0: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 65 61 ..alias ldap_sea 6600: 72 63 68 5f 65 78 74 57 20 6c 64 61 70 5f 73 65 rch_extW ldap_se 6610: 61 72 63 68 5f 65 78 74 3b 0d 0a 09 61 6c 69 61 arch_ext;...alia 6620: 73 20 6c 64 61 70 5f 73 65 61 72 63 68 5f 65 78 s ldap_search_ex 6630: 74 5f 73 57 20 6c 64 61 70 5f 73 65 61 72 63 68 t_sW ldap_search 6640: 5f 65 78 74 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 _ext_s;...alias 6650: 6c 64 61 70 5f 73 65 61 72 63 68 5f 69 6e 69 74 ldap_search_init 6660: 5f 70 61 67 65 57 20 6c 64 61 70 5f 73 65 61 72 _pageW ldap_sear 6670: 63 68 5f 69 6e 69 74 5f 70 61 67 65 3b 0d 0a 09 ch_init_page;... 6680: 61 6c 69 61 73 20 6c 64 61 70 5f 65 72 72 32 73 alias ldap_err2s 6690: 74 72 69 6e 67 57 20 6c 64 61 70 5f 65 72 72 32 tringW ldap_err2 66a0: 73 74 72 69 6e 67 3b 0d 0a 09 61 6c 69 61 73 20 string;...alias 66b0: 6c 64 61 70 5f 63 6f 6e 74 72 6f 6c 5f 66 72 65 ldap_control_fre 66c0: 65 57 20 6c 64 61 70 5f 63 6f 6e 74 72 6f 6c 5f eW ldap_control_ 66d0: 66 72 65 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 free;...alias ld 66e0: 61 70 5f 63 6f 6e 74 72 6f 6c 73 5f 66 72 65 65 ap_controls_free 66f0: 57 20 6c 64 61 70 5f 63 6f 6e 74 72 6f 6c 73 5f W ldap_controls_ 6700: 66 72 65 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 free;...alias ld 6710: 61 70 5f 66 72 65 65 5f 63 6f 6e 74 72 6f 6c 73 ap_free_controls 6720: 57 20 6c 64 61 70 5f 66 72 65 65 5f 63 6f 6e 74 W ldap_free_cont 6730: 72 6f 6c 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 rols;...alias ld 6740: 61 70 5f 6d 65 6d 66 72 65 65 57 20 6c 64 61 70 ap_memfreeW ldap 6750: 5f 6d 65 6d 66 72 65 65 3b 0d 0a 09 61 6c 69 61 _memfree;...alia 6760: 73 20 6c 64 61 70 5f 76 61 6c 75 65 5f 66 72 65 s ldap_value_fre 6770: 65 57 20 6c 64 61 70 5f 76 61 6c 75 65 5f 66 72 eW ldap_value_fr 6780: 65 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 ee;...alias ldap 6790: 5f 64 6e 32 75 66 6e 57 20 6c 64 61 70 5f 64 6e _dn2ufnW ldap_dn 67a0: 32 75 66 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 2ufn;...alias ld 67b0: 61 70 5f 75 66 6e 32 64 6e 57 20 6c 64 61 70 5f ap_ufn2dnW ldap_ 67c0: 75 66 6e 32 64 6e 3b 0d 0a 09 61 6c 69 61 73 20 ufn2dn;...alias 67d0: 6c 64 61 70 5f 65 78 70 6c 6f 64 65 5f 64 6e 57 ldap_explode_dnW 67e0: 20 6c 64 61 70 5f 65 78 70 6c 6f 64 65 5f 64 6e ldap_explode_dn 67f0: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 67 ;...alias ldap_g 6800: 65 74 5f 64 6e 57 20 6c 64 61 70 5f 67 65 74 5f et_dnW ldap_get_ 6810: 64 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 dn;...alias ldap 6820: 5f 72 65 6e 61 6d 65 5f 65 78 74 57 20 6c 64 61 _rename_extW lda 6830: 70 5f 72 65 6e 61 6d 65 3b 0d 0a 09 61 6c 69 61 p_rename;...alia 6840: 73 20 6c 64 61 70 5f 72 65 6e 61 6d 65 5f 65 78 s ldap_rename_ex 6850: 74 5f 73 57 20 6c 64 61 70 5f 72 65 6e 61 6d 65 t_sW ldap_rename 6860: 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 _s;...alias ldap 6870: 5f 72 65 6e 61 6d 65 5f 65 78 74 57 20 6c 64 61 _rename_extW lda 6880: 70 5f 72 65 6e 61 6d 65 5f 65 78 74 3b 0d 0a 09 p_rename_ext;... 6890: 61 6c 69 61 73 20 6c 64 61 70 5f 72 65 6e 61 6d alias ldap_renam 68a0: 65 5f 65 78 74 5f 73 57 20 6c 64 61 70 5f 72 65 e_ext_sW ldap_re 68b0: 6e 61 6d 65 5f 65 78 74 5f 73 3b 0d 0a 09 64 65 name_ext_s;...de 68c0: 70 72 65 63 61 74 65 64 20 7b 0d 0a 09 09 61 6c precated {....al 68d0: 69 61 73 20 6c 64 61 70 5f 62 69 6e 64 57 20 6c ias ldap_bindW l 68e0: 64 61 70 5f 62 69 6e 64 3b 0d 0a 09 09 61 6c 69 dap_bind;....ali 68f0: 61 73 20 6c 64 61 70 5f 62 69 6e 64 5f 73 57 20 as ldap_bind_sW 6900: 6c 64 61 70 5f 62 69 6e 64 5f 73 3b 0d 0a 09 09 ldap_bind_s;.... 6910: 61 6c 69 61 73 20 6c 64 61 70 5f 6d 6f 64 72 64 alias ldap_modrd 6920: 6e 57 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 3b 0d nW ldap_modrdn;. 6930: 0a 09 09 61 6c 69 61 73 20 6c 64 61 70 5f 6d 6f ...alias ldap_mo 6940: 64 72 64 6e 5f 73 57 20 6c 64 61 70 5f 6d 6f 64 drdn_sW ldap_mod 6950: 72 64 6e 5f 73 3b 0d 0a 09 09 61 6c 69 61 73 20 rdn_s;....alias 6960: 6c 64 61 70 5f 6d 6f 64 72 64 6e 32 57 20 6c 64 ldap_modrdn2W ld 6970: 61 70 5f 6d 6f 64 72 64 6e 32 3b 0d 0a 09 09 61 ap_modrdn2;....a 6980: 6c 69 61 73 20 6c 64 61 70 5f 6d 6f 64 72 64 6e lias ldap_modrdn 6990: 32 5f 73 57 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 2_sW ldap_modrdn 69a0: 32 5f 73 3b 0d 0a 09 7d 0d 0a 7d 20 65 6c 73 65 2_s;...}..} else 69b0: 20 7b 0d 0a 09 61 6c 69 61 73 20 4c 44 41 50 43 {...alias LDAPC 69c0: 6f 6e 74 72 6f 6c 41 20 4c 44 41 50 43 6f 6e 74 ontrolA LDAPCont 69d0: 72 6f 6c 3b 0d 0a 09 61 6c 69 61 73 20 50 4c 44 rol;...alias PLD 69e0: 41 50 43 6f 6e 74 72 6f 6c 41 20 50 4c 44 41 50 APControlA PLDAP 69f0: 43 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 73 Control;...alias 6a00: 20 4c 44 41 50 4d 6f 64 41 20 4c 44 41 50 4d 6f LDAPModA LDAPMo 6a10: 64 3b 0d 0a 09 61 6c 69 61 73 20 4c 44 41 50 4d d;...alias LDAPM 6a20: 6f 64 41 20 50 4c 44 41 50 4d 6f 64 3b 0d 0a 09 odA PLDAPMod;... 6a30: 61 6c 69 61 73 20 4c 44 41 50 53 6f 72 74 4b 65 alias LDAPSortKe 6a40: 79 41 20 4c 44 41 50 53 6f 72 74 4b 65 79 3b 0d yA LDAPSortKey;. 6a50: 0a 09 61 6c 69 61 73 20 50 4c 44 41 50 53 6f 72 ..alias PLDAPSor 6a60: 74 4b 65 79 41 20 50 4c 44 41 50 53 6f 72 74 4b tKeyA PLDAPSortK 6a70: 65 79 3b 0d 0a 09 61 6c 69 61 73 20 4c 44 41 50 ey;...alias LDAP 6a80: 41 50 49 49 6e 66 6f 41 20 4c 44 41 50 41 50 49 APIInfoA LDAPAPI 6a90: 49 6e 66 6f 3b 0d 0a 09 61 6c 69 61 73 20 50 4c Info;...alias PL 6aa0: 44 41 50 41 50 49 49 6e 66 6f 41 20 50 4c 44 41 DAPAPIInfoA PLDA 6ab0: 50 41 50 49 49 6e 66 6f 3b 0d 0a 09 61 6c 69 61 PAPIInfo;...alia 6ac0: 73 20 4c 44 41 50 41 50 49 46 65 61 74 75 72 65 s LDAPAPIFeature 6ad0: 49 6e 66 6f 41 20 4c 44 41 50 41 50 49 46 65 61 InfoA LDAPAPIFea 6ae0: 74 75 72 65 49 6e 66 6f 3b 0d 0a 09 61 6c 69 61 tureInfo;...alia 6af0: 73 20 50 4c 44 41 50 41 50 49 46 65 61 74 75 72 s PLDAPAPIFeatur 6b00: 65 49 6e 66 6f 41 20 50 4c 44 41 50 41 50 49 46 eInfoA PLDAPAPIF 6b10: 65 61 74 75 72 65 49 6e 66 6f 3b 0d 0a 09 61 6c eatureInfo;...al 6b20: 69 61 73 20 63 6c 64 61 70 5f 6f 70 65 6e 41 20 ias cldap_openA 6b30: 63 6c 64 61 70 5f 6f 70 65 6e 3b 0d 0a 09 61 6c cldap_open;...al 6b40: 69 61 73 20 6c 64 61 70 5f 6f 70 65 6e 41 20 6c ias ldap_openA l 6b50: 64 61 70 5f 6f 70 65 6e 3b 0d 0a 09 61 6c 69 61 dap_open;...alia 6b60: 73 20 6c 64 61 70 5f 73 69 6d 70 6c 65 5f 62 69 s ldap_simple_bi 6b70: 6e 64 41 20 6c 64 61 70 5f 73 69 6d 70 6c 65 5f ndA ldap_simple_ 6b80: 62 69 6e 64 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 bind;...alias ld 6b90: 61 70 5f 73 69 6d 70 6c 65 5f 62 69 6e 64 5f 73 ap_simple_bind_s 6ba0: 41 20 6c 64 61 70 5f 73 69 6d 70 6c 65 5f 62 69 A ldap_simple_bi 6bb0: 6e 64 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 nd_s;...alias ld 6bc0: 61 70 5f 73 61 73 6c 5f 62 69 6e 64 41 20 6c 64 ap_sasl_bindA ld 6bd0: 61 70 5f 73 61 73 6c 5f 62 69 6e 64 3b 0d 0a 09 ap_sasl_bind;... 6be0: 61 6c 69 61 73 20 6c 64 61 70 5f 73 61 73 6c 5f alias ldap_sasl_ 6bf0: 62 69 6e 64 5f 73 41 20 6c 64 61 70 5f 73 61 73 bind_sA ldap_sas 6c00: 6c 5f 62 69 6e 64 5f 73 3b 0d 0a 09 61 6c 69 61 l_bind_s;...alia 6c10: 73 20 6c 64 61 70 5f 69 6e 69 74 41 20 6c 64 61 s ldap_initA lda 6c20: 70 5f 69 6e 69 74 3b 0d 0a 09 61 6c 69 61 73 20 p_init;...alias 6c30: 6c 64 61 70 5f 73 73 6c 69 6e 69 74 41 20 6c 64 ldap_sslinitA ld 6c40: 61 70 5f 73 73 6c 69 6e 69 74 3b 0d 0a 09 61 6c ap_sslinit;...al 6c50: 69 61 73 20 6c 64 61 70 5f 67 65 74 5f 6f 70 74 ias ldap_get_opt 6c60: 69 6f 6e 41 20 6c 64 61 70 5f 67 65 74 5f 6f 70 ionA ldap_get_op 6c70: 74 69 6f 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 tion;...alias ld 6c80: 61 70 5f 73 65 74 5f 6f 70 74 69 6f 6e 41 20 6c ap_set_optionA l 6c90: 64 61 70 5f 73 65 74 5f 6f 70 74 69 6f 6e 3b 0d dap_set_option;. 6ca0: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 74 61 ..alias ldap_sta 6cb0: 72 74 5f 74 6c 73 5f 73 41 20 6c 64 61 70 5f 73 rt_tls_sA ldap_s 6cc0: 74 61 72 74 5f 74 6c 73 5f 73 3b 0d 0a 09 61 6c tart_tls_s;...al 6cd0: 69 61 73 20 6c 64 61 70 5f 61 64 64 41 20 6c 64 ias ldap_addA ld 6ce0: 61 70 5f 61 64 64 3b 0d 0a 09 61 6c 69 61 73 20 ap_add;...alias 6cf0: 6c 64 61 70 5f 61 64 64 5f 65 78 74 41 20 6c 64 ldap_add_extA ld 6d00: 61 70 5f 61 64 64 5f 65 78 74 3b 0d 0a 09 61 6c ap_add_ext;...al 6d10: 69 61 73 20 6c 64 61 70 5f 61 64 64 5f 73 41 20 ias ldap_add_sA 6d20: 6c 64 61 70 5f 61 64 64 5f 73 3b 0d 0a 09 61 6c ldap_add_s;...al 6d30: 69 61 73 20 6c 64 61 70 5f 61 64 64 5f 65 78 74 ias ldap_add_ext 6d40: 5f 73 41 20 6c 64 61 70 5f 61 64 64 5f 65 78 74 _sA ldap_add_ext 6d50: 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 _s;...alias ldap 6d60: 5f 63 6f 6d 70 61 72 65 41 20 6c 64 61 70 5f 63 _compareA ldap_c 6d70: 6f 6d 70 61 72 65 3b 0d 0a 09 61 6c 69 61 73 20 ompare;...alias 6d80: 6c 64 61 70 5f 63 6f 6d 70 61 72 65 5f 65 78 74 ldap_compare_ext 6d90: 41 20 6c 64 61 70 5f 63 6f 6d 70 61 72 65 5f 65 A ldap_compare_e 6da0: 78 74 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 xt;...alias ldap 6db0: 5f 63 6f 6d 70 61 72 65 5f 73 41 20 6c 64 61 70 _compare_sA ldap 6dc0: 5f 63 6f 6d 70 61 72 65 5f 73 3b 0d 0a 09 61 6c _compare_s;...al 6dd0: 69 61 73 20 6c 64 61 70 5f 63 6f 6d 70 61 72 65 ias ldap_compare 6de0: 5f 65 78 74 5f 73 41 20 6c 64 61 70 5f 63 6f 6d _ext_sA ldap_com 6df0: 70 61 72 65 5f 65 78 74 5f 73 3b 0d 0a 09 61 6c pare_ext_s;...al 6e00: 69 61 73 20 6c 64 61 70 5f 64 65 6c 65 74 65 41 ias ldap_deleteA 6e10: 20 6c 64 61 70 5f 64 65 6c 65 74 65 3b 0d 0a 09 ldap_delete;... 6e20: 61 6c 69 61 73 20 6c 64 61 70 5f 64 65 6c 65 74 alias ldap_delet 6e30: 65 5f 65 78 74 41 20 6c 64 61 70 5f 64 65 6c 65 e_extA ldap_dele 6e40: 74 65 5f 65 78 74 3b 0d 0a 09 61 6c 69 61 73 20 te_ext;...alias 6e50: 6c 64 61 70 5f 64 65 6c 65 74 65 5f 73 41 20 6c ldap_delete_sA l 6e60: 64 61 70 5f 64 65 6c 65 74 65 5f 73 3b 0d 0a 09 dap_delete_s;... 6e70: 61 6c 69 61 73 20 6c 64 61 70 5f 64 65 6c 65 74 alias ldap_delet 6e80: 65 5f 65 78 74 5f 73 41 20 6c 64 61 70 5f 64 65 e_ext_sA ldap_de 6e90: 6c 65 74 65 5f 65 78 74 5f 73 3b 0d 0a 09 61 6c lete_ext_s;...al 6ea0: 69 61 73 20 6c 64 61 70 5f 65 78 74 65 6e 64 65 ias ldap_extende 6eb0: 64 5f 6f 70 65 72 61 74 69 6f 6e 5f 73 41 20 6c d_operation_sA l 6ec0: 64 61 70 5f 65 78 74 65 6e 64 65 64 5f 6f 70 65 dap_extended_ope 6ed0: 72 61 74 69 6f 6e 5f 73 3b 0d 0a 09 61 6c 69 61 ration_s;...alia 6ee0: 73 20 6c 64 61 70 5f 65 78 74 65 6e 64 65 64 5f s ldap_extended_ 6ef0: 6f 70 65 72 61 74 69 6f 6e 41 20 6c 64 61 70 5f operationA ldap_ 6f00: 65 78 74 65 6e 64 65 64 5f 6f 70 65 72 61 74 69 extended_operati 6f10: 6f 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 on;...alias ldap 6f20: 5f 6d 6f 64 69 66 79 41 20 6c 64 61 70 5f 6d 6f _modifyA ldap_mo 6f30: 64 69 66 79 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 dify;...alias ld 6f40: 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 41 20 6c ap_modify_extA l 6f50: 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 3b 0d dap_modify_ext;. 6f60: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 6d 6f 64 ..alias ldap_mod 6f70: 69 66 79 5f 73 41 20 6c 64 61 70 5f 6d 6f 64 69 ify_sA ldap_modi 6f80: 66 79 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 fy_s;...alias ld 6f90: 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 5f 73 41 ap_modify_ext_sA 6fa0: 20 6c 64 61 70 5f 6d 6f 64 69 66 79 5f 65 78 74 ldap_modify_ext 6fb0: 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 _s;...alias ldap 6fc0: 5f 63 68 65 63 6b 5f 66 69 6c 74 65 72 41 20 6c _check_filterA l 6fd0: 64 61 70 5f 63 68 65 63 6b 5f 66 69 6c 74 65 72 dap_check_filter 6fe0: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 63 ;...alias ldap_c 6ff0: 6f 75 6e 74 5f 76 61 6c 75 65 73 41 20 6c 64 61 ount_valuesA lda 7000: 70 5f 63 6f 75 6e 74 5f 76 61 6c 75 65 73 3b 0d p_count_values;. 7010: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 63 72 65 ..alias ldap_cre 7020: 61 74 65 5f 70 61 67 65 5f 63 6f 6e 74 72 6f 6c ate_page_control 7030: 41 20 6c 64 61 70 5f 63 72 65 61 74 65 5f 70 61 A ldap_create_pa 7040: 67 65 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c ge_control;...al 7050: 69 61 73 20 6c 64 61 70 5f 63 72 65 61 74 65 5f ias ldap_create_ 7060: 73 6f 72 74 5f 63 6f 6e 74 72 6f 6c 41 20 6c 64 sort_controlA ld 7070: 61 70 5f 63 72 65 61 74 65 5f 73 6f 72 74 5f 63 ap_create_sort_c 7080: 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 73 20 ontrol;...alias 7090: 6c 64 61 70 5f 63 72 65 61 74 65 5f 76 6c 76 5f ldap_create_vlv_ 70a0: 63 6f 6e 74 72 6f 6c 41 20 6c 64 61 70 5f 63 72 controlA ldap_cr 70b0: 65 61 74 65 5f 76 6c 76 5f 63 6f 6e 74 72 6f 6c eate_vlv_control 70c0: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 65 ;...alias ldap_e 70d0: 6e 63 6f 64 65 5f 73 6f 72 74 5f 63 6f 6e 74 72 ncode_sort_contr 70e0: 6f 6c 41 20 6c 64 61 70 5f 65 6e 63 6f 64 65 5f olA ldap_encode_ 70f0: 73 6f 72 74 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 sort_control;... 7100: 61 6c 69 61 73 20 6c 64 61 70 5f 65 73 63 61 70 alias ldap_escap 7110: 65 5f 66 69 6c 74 65 72 5f 65 6c 65 6d 65 6e 74 e_filter_element 7120: 41 20 6c 64 61 70 5f 65 73 63 61 70 65 5f 66 69 A ldap_escape_fi 7130: 6c 74 65 72 5f 65 6c 65 6d 65 6e 74 3b 0d 0a 09 lter_element;... 7140: 61 6c 69 61 73 20 6c 64 61 70 5f 66 69 72 73 74 alias ldap_first 7150: 5f 61 74 74 72 69 62 75 74 65 41 20 6c 64 61 70 _attributeA ldap 7160: 5f 66 69 72 73 74 5f 61 74 74 72 69 62 75 74 65 _first_attribute 7170: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 6e ;...alias ldap_n 7180: 65 78 74 5f 61 74 74 72 69 62 75 74 65 41 20 6c ext_attributeA l 7190: 64 61 70 5f 6e 65 78 74 5f 61 74 74 72 69 62 75 dap_next_attribu 71a0: 74 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 te;...alias ldap 71b0: 5f 67 65 74 5f 76 61 6c 75 65 73 41 20 6c 64 61 _get_valuesA lda 71c0: 70 5f 67 65 74 5f 76 61 6c 75 65 73 3b 0d 0a 09 p_get_values;... 71d0: 61 6c 69 61 73 20 6c 64 61 70 5f 67 65 74 5f 76 alias ldap_get_v 71e0: 61 6c 75 65 73 5f 6c 65 6e 41 20 6c 64 61 70 5f alues_lenA ldap_ 71f0: 67 65 74 5f 76 61 6c 75 65 73 5f 6c 65 6e 3b 0d get_values_len;. 7200: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 70 61 72 ..alias ldap_par 7210: 73 65 5f 65 78 74 65 6e 64 65 64 5f 72 65 73 75 se_extended_resu 7220: 6c 74 41 20 6c 64 61 70 5f 70 61 72 73 65 5f 65 ltA ldap_parse_e 7230: 78 74 65 6e 64 65 64 5f 72 65 73 75 6c 74 3b 0d xtended_result;. 7240: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 70 61 72 ..alias ldap_par 7250: 73 65 5f 70 61 67 65 5f 63 6f 6e 74 72 6f 6c 41 se_page_controlA 7260: 20 6c 64 61 70 5f 70 61 72 73 65 5f 70 61 67 65 ldap_parse_page 7270: 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 _control;...alia 7280: 73 20 6c 64 61 70 5f 70 61 72 73 65 5f 72 65 66 s ldap_parse_ref 7290: 65 72 65 6e 63 65 41 20 6c 64 61 70 5f 70 61 72 erenceA ldap_par 72a0: 73 65 5f 72 65 66 65 72 65 6e 63 65 3b 0d 0a 09 se_reference;... 72b0: 61 6c 69 61 73 20 6c 64 61 70 5f 70 61 72 73 65 alias ldap_parse 72c0: 5f 72 65 73 75 6c 74 41 20 6c 64 61 70 5f 70 61 _resultA ldap_pa 72d0: 72 73 65 5f 72 65 73 75 6c 74 3b 0d 0a 09 61 6c rse_result;...al 72e0: 69 61 73 20 6c 64 61 70 5f 70 61 72 73 65 5f 73 ias ldap_parse_s 72f0: 6f 72 74 5f 63 6f 6e 74 72 6f 6c 41 20 6c 64 61 ort_controlA lda 7300: 70 5f 70 61 72 73 65 5f 73 6f 72 74 5f 63 6f 6e p_parse_sort_con 7310: 74 72 6f 6c 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 trol;...alias ld 7320: 61 70 5f 70 61 72 73 65 5f 76 6c 76 5f 63 6f 6e ap_parse_vlv_con 7330: 74 72 6f 6c 41 20 6c 64 61 70 5f 70 61 72 73 65 trolA ldap_parse 7340: 5f 76 6c 76 5f 63 6f 6e 74 72 6f 6c 3b 0d 0a 09 _vlv_control;... 7350: 61 6c 69 61 73 20 6c 64 61 70 5f 73 65 61 72 63 alias ldap_searc 7360: 68 41 20 6c 64 61 70 5f 73 65 61 72 63 68 3b 0d hA ldap_search;. 7370: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 73 65 61 ..alias ldap_sea 7380: 72 63 68 5f 73 41 20 6c 64 61 70 5f 73 65 61 72 rch_sA ldap_sear 7390: 63 68 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 ch_s;...alias ld 73a0: 61 70 5f 73 65 61 72 63 68 5f 73 74 41 20 6c 64 ap_search_stA ld 73b0: 61 70 5f 73 65 61 72 63 68 5f 73 74 3b 0d 0a 09 ap_search_st;... 73c0: 61 6c 69 61 73 20 6c 64 61 70 5f 73 65 61 72 63 alias ldap_searc 73d0: 68 5f 65 78 74 41 20 6c 64 61 70 5f 73 65 61 72 h_extA ldap_sear 73e0: 63 68 5f 65 78 74 3b 0d 0a 09 61 6c 69 61 73 20 ch_ext;...alias 73f0: 6c 64 61 70 5f 73 65 61 72 63 68 5f 65 78 74 5f ldap_search_ext_ 7400: 73 41 20 6c 64 61 70 5f 73 65 61 72 63 68 5f 65 sA ldap_search_e 7410: 78 74 5f 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 xt_s;...alias ld 7420: 61 70 5f 73 65 61 72 63 68 5f 69 6e 69 74 5f 70 ap_search_init_p 7430: 61 67 65 41 20 6c 64 61 70 5f 73 65 61 72 63 68 ageA ldap_search 7440: 5f 69 6e 69 74 5f 70 61 67 65 3b 0d 0a 09 61 6c _init_page;...al 7450: 69 61 73 20 6c 64 61 70 5f 65 72 72 32 73 74 72 ias ldap_err2str 7460: 69 6e 67 41 20 6c 64 61 70 5f 65 72 72 32 73 74 ingA ldap_err2st 7470: 72 69 6e 67 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 ring;...alias ld 7480: 61 70 5f 63 6f 6e 74 72 6f 6c 5f 66 72 65 65 41 ap_control_freeA 7490: 20 6c 64 61 70 5f 63 6f 6e 74 72 6f 6c 5f 66 72 ldap_control_fr 74a0: 65 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 ee;...alias ldap 74b0: 5f 63 6f 6e 74 72 6f 6c 73 5f 66 72 65 65 41 20 _controls_freeA 74c0: 6c 64 61 70 5f 63 6f 6e 74 72 6f 6c 73 5f 66 72 ldap_controls_fr 74d0: 65 65 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 ee;...alias ldap 74e0: 5f 66 72 65 65 5f 63 6f 6e 74 72 6f 6c 73 41 20 _free_controlsA 74f0: 6c 64 61 70 5f 66 72 65 65 5f 63 6f 6e 74 72 6f ldap_free_contro 7500: 6c 73 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 ls;...alias ldap 7510: 5f 6d 65 6d 66 72 65 65 41 20 6c 64 61 70 5f 6d _memfreeA ldap_m 7520: 65 6d 66 72 65 65 3b 0d 0a 09 61 6c 69 61 73 20 emfree;...alias 7530: 6c 64 61 70 5f 76 61 6c 75 65 5f 66 72 65 65 41 ldap_value_freeA 7540: 20 6c 64 61 70 5f 76 61 6c 75 65 5f 66 72 65 65 ldap_value_free 7550: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 64 ;...alias ldap_d 7560: 6e 32 75 66 6e 41 20 6c 64 61 70 5f 64 6e 32 75 n2ufnA ldap_dn2u 7570: 66 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 fn;...alias ldap 7580: 5f 75 66 6e 32 64 6e 41 20 6c 64 61 70 5f 75 66 _ufn2dnA ldap_uf 7590: 6e 32 64 6e 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 n2dn;...alias ld 75a0: 61 70 5f 65 78 70 6c 6f 64 65 5f 64 6e 41 20 6c ap_explode_dnA l 75b0: 64 61 70 5f 65 78 70 6c 6f 64 65 5f 64 6e 3b 0d dap_explode_dn;. 75c0: 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 67 65 74 ..alias ldap_get 75d0: 5f 64 6e 41 20 6c 64 61 70 5f 67 65 74 5f 64 6e _dnA ldap_get_dn 75e0: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 72 ;...alias ldap_r 75f0: 65 6e 61 6d 65 5f 65 78 74 41 20 6c 64 61 70 5f ename_extA ldap_ 7600: 72 65 6e 61 6d 65 3b 0d 0a 09 61 6c 69 61 73 20 rename;...alias 7610: 6c 64 61 70 5f 72 65 6e 61 6d 65 5f 65 78 74 5f ldap_rename_ext_ 7620: 73 41 20 6c 64 61 70 5f 72 65 6e 61 6d 65 5f 73 sA ldap_rename_s 7630: 3b 0d 0a 09 61 6c 69 61 73 20 6c 64 61 70 5f 72 ;...alias ldap_r 7640: 65 6e 61 6d 65 5f 65 78 74 41 20 6c 64 61 70 5f ename_extA ldap_ 7650: 72 65 6e 61 6d 65 5f 65 78 74 3b 0d 0a 09 61 6c rename_ext;...al 7660: 69 61 73 20 6c 64 61 70 5f 72 65 6e 61 6d 65 5f ias ldap_rename_ 7670: 65 78 74 5f 73 41 20 6c 64 61 70 5f 72 65 6e 61 ext_sA ldap_rena 7680: 6d 65 5f 65 78 74 5f 73 3b 0d 0a 09 64 65 70 72 me_ext_s;...depr 7690: 65 63 61 74 65 64 20 7b 0d 0a 09 09 61 6c 69 61 ecated {....alia 76a0: 73 20 6c 64 61 70 5f 62 69 6e 64 41 20 6c 64 61 s ldap_bindA lda 76b0: 70 5f 62 69 6e 64 3b 0d 0a 09 09 61 6c 69 61 73 p_bind;....alias 76c0: 20 6c 64 61 70 5f 62 69 6e 64 5f 73 41 20 6c 64 ldap_bind_sA ld 76d0: 61 70 5f 62 69 6e 64 5f 73 3b 0d 0a 09 09 61 6c ap_bind_s;....al 76e0: 69 61 73 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 41 ias ldap_modrdnA 76f0: 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 3b 0d 0a 09 ldap_modrdn;... 7700: 09 61 6c 69 61 73 20 6c 64 61 70 5f 6d 6f 64 72 .alias ldap_modr 7710: 64 6e 5f 73 41 20 6c 64 61 70 5f 6d 6f 64 72 64 dn_sA ldap_modrd 7720: 6e 5f 73 3b 0d 0a 09 09 61 6c 69 61 73 20 6c 64 n_s;....alias ld 7730: 61 70 5f 6d 6f 64 72 64 6e 32 41 20 6c 64 61 70 ap_modrdn2A ldap 7740: 5f 6d 6f 64 72 64 6e 32 3b 0d 0a 09 09 61 6c 69 _modrdn2;....ali 7750: 61 73 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 32 5f as ldap_modrdn2_ 7760: 73 41 20 6c 64 61 70 5f 6d 6f 64 72 64 6e 32 5f sA ldap_modrdn2_ 7770: 73 3b 0d 0a 09 7d 0d 0a 7d 0d 0a s;...}..}..