ReactOS 0.4.15-dev-8614-gbc76250
winldap.h File Reference
#include <schannel.h>
#include <winber.h>
#include <pshpack4.h>
#include <poppack.h>
Include dependency graph for winldap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ldap
 
struct  ldapmsg
 
struct  l_timeval
 
struct  ldapapiinfoA
 
struct  ldapapiinfoW
 
struct  ldap_apifeature_infoA
 
struct  ldap_apifeature_infoW
 
struct  ldapcontrolA
 
struct  ldapcontrolW
 
union  mod_vals_uA
 
union  mod_vals_uW
 
struct  ldapmodA
 
struct  ldapmodW
 
struct  ldapsortkeyA
 
struct  ldapsortkeyW
 
struct  LdapReferralCallback
 
struct  ldapvlvinfo
 

Macros

#define WINLDAPAPI   DECLSPEC_IMPORT
 
#define _WINLDAP_DEPRECATED
 
#define LDAP_VERSION1   1
 
#define LDAP_VERSION2   2
 
#define LDAP_VERSION3   3
 
#define LDAP_VERSION   LDAP_VERSION2
 
#define LDAP_API_VERSION   2004
 
#define LDAP_VERSION_MIN   LDAP_VERSION2
 
#define LDAP_VERSION_MAX   LDAP_VERSION3
 
#define LDAP_VENDOR_NAME   "Microsoft Corporation."
 
#define LDAP_VENDOR_NAME_W   L"Microsoft Corporation."
 
#define LDAP_VENDOR_VERSION   510
 
#define LDAP_API_INFO_VERSION   1
 
#define LDAP_FEATURE_INFO_VERSION   1
 
#define LDAP_SUCCESS   0x00
 
#define LDAP_OPERATIONS_ERROR   0x01
 
#define LDAP_PROTOCOL_ERROR   0x02
 
#define LDAP_TIMELIMIT_EXCEEDED   0x03
 
#define LDAP_SIZELIMIT_EXCEEDED   0x04
 
#define LDAP_COMPARE_FALSE   0x05
 
#define LDAP_COMPARE_TRUE   0x06
 
#define LDAP_STRONG_AUTH_NOT_SUPPORTED   0x07
 
#define LDAP_STRONG_AUTH_REQUIRED   0x08
 
#define LDAP_REFERRAL_V2   0x09
 
#define LDAP_REFERRAL   0x0a
 
#define LDAP_ADMIN_LIMIT_EXCEEDED   0x0b
 
#define LDAP_UNAVAILABLE_CRIT_EXTENSION   0x0c
 
#define LDAP_CONFIDENTIALITY_REQUIRED   0x0d
 
#define LDAP_SASL_BIND_IN_PROGRESS   0x0e
 
#define LDAP_NO_SUCH_ATTRIBUTE   0x10
 
#define LDAP_UNDEFINED_TYPE   0x11
 
#define LDAP_INAPPROPRIATE_MATCHING   0x12
 
#define LDAP_CONSTRAINT_VIOLATION   0x13
 
#define LDAP_TYPE_OR_VALUE_EXISTS   0x14
 
#define LDAP_INVALID_SYNTAX   0x15
 
#define LDAP_NO_SUCH_OBJECT   0x20
 
#define LDAP_ALIAS_PROBLEM   0x21
 
#define LDAP_INVALID_DN_SYNTAX   0x22
 
#define LDAP_IS_LEAF   0x23
 
#define LDAP_ALIAS_DEREF_PROBLEM   0x24
 
#define LDAP_INAPPROPRIATE_AUTH   0x30
 
#define LDAP_INVALID_CREDENTIALS   0x31
 
#define LDAP_INSUFFICIENT_ACCESS   0x32
 
#define LDAP_BUSY   0x33
 
#define LDAP_UNAVAILABLE   0x34
 
#define LDAP_UNWILLING_TO_PERFORM   0x35
 
#define LDAP_LOOP_DETECT   0x36
 
#define LDAP_NAMING_VIOLATION   0x40
 
#define LDAP_OBJECT_CLASS_VIOLATION   0x41
 
#define LDAP_NOT_ALLOWED_ON_NONLEAF   0x42
 
#define LDAP_NOT_ALLOWED_ON_RDN   0x43
 
#define LDAP_ALREADY_EXISTS   0x44
 
#define LDAP_NO_OBJECT_CLASS_MODS   0x45
 
#define LDAP_RESULTS_TOO_LARGE   0x46
 
#define LDAP_AFFECTS_MULTIPLE_DSAS   0x47
 
#define LDAP_OTHER   0x50
 
#define LDAP_SERVER_DOWN   0x51
 
#define LDAP_LOCAL_ERROR   0x52
 
#define LDAP_ENCODING_ERROR   0x53
 
#define LDAP_DECODING_ERROR   0x54
 
#define LDAP_TIMEOUT   0x55
 
#define LDAP_AUTH_UNKNOWN   0x56
 
#define LDAP_FILTER_ERROR   0x57
 
#define LDAP_USER_CANCELLED   0x58
 
#define LDAP_PARAM_ERROR   0x59
 
#define LDAP_NO_MEMORY   0x5a
 
#define LDAP_CONNECT_ERROR   0x5b
 
#define LDAP_NOT_SUPPORTED   0x5c
 
#define LDAP_CONTROL_NOT_FOUND   0x5d
 
#define LDAP_NO_RESULTS_RETURNED   0x5e
 
#define LDAP_MORE_RESULTS_TO_RETURN   0x5f
 
#define LDAP_CLIENT_LOOP   0x60
 
#define LDAP_REFERRAL_LIMIT_EXCEEDED   0x61
 
#define LDAP_OPT_SUCCESS   LDAP_SUCCESS
 
#define LDAP_AUTH_METHOD_NOT_SUPPORTED   LDAP_STRONG_AUTH_NOT_SUPPORTED
 
#define LDAP_ATTRIBUTE_OR_VALUE_EXISTS   LDAP_TYPE_OR_VALUE_EXISTS
 
#define LDAP_INSUFFICIENT_RIGHTS   LDAP_INSUFFICIENT_ACCESS
 
#define LDAP_PARTIAL_RESULTS   LDAP_REFERRAL_V2
 
#define LDAP_PORT   389
 
#define LDAP_SSL_PORT   636
 
#define LDAP_GC_PORT   3268
 
#define LDAP_SSL_GC_PORT   3269
 
#define LDAP_OPT_ON   ((void*)1)
 
#define LDAP_OPT_OFF   ((void*)0)
 
#define LDAP_OPT_API_INFO   0x00
 
#define LDAP_OPT_DESC   0x01
 
#define LDAP_OPT_DEREF   0x02
 
#define LDAP_OPT_SIZELIMIT   0x03
 
#define LDAP_OPT_TIMELIMIT   0x04
 
#define LDAP_OPT_THREAD_FN_PTRS   0x05
 
#define LDAP_OPT_REBIND_FN   0x06
 
#define LDAP_OPT_REBIND_ARG   0x07
 
#define LDAP_OPT_REFERRALS   0x08
 
#define LDAP_OPT_RESTART   0x09
 
#define LDAP_OPT_SSL   0x0a
 
#define LDAP_OPT_IO_FN_PTRS   0x0b
 
#define LDAP_OPT_CACHE_FN_PTRS   0x0d
 
#define LDAP_OPT_CACHE_STRATEGY   0x0e
 
#define LDAP_OPT_CACHE_ENABLE   0x0f
 
#define LDAP_OPT_REFERRAL_HOP_LIMIT   0x10
 
#define LDAP_OPT_PROTOCOL_VERSION   0x11
 
#define LDAP_OPT_SERVER_CONTROLS   0x12
 
#define LDAP_OPT_CLIENT_CONTROLS   0x13
 
#define LDAP_OPT_API_FEATURE_INFO   0x15
 
#define LDAP_OPT_HOST_NAME   0x30
 
#define LDAP_OPT_ERROR_NUMBER   0x31
 
#define LDAP_OPT_ERROR_STRING   0x32
 
#define LDAP_OPT_SERVER_ERROR   0x33
 
#define LDAP_OPT_SERVER_EXT_ERROR   0x34
 
#define LDAP_OPT_PING_KEEP_ALIVE   0x36
 
#define LDAP_OPT_PING_WAIT_TIME   0x37
 
#define LDAP_OPT_PING_LIMIT   0x38
 
#define LDAP_OPT_DNSDOMAIN_NAME   0x3b
 
#define LDAP_OPT_GETDSNAME_FLAGS   0x3d
 
#define LDAP_OPT_HOST_REACHABLE   0x3e
 
#define LDAP_OPT_PROMPT_CREDENTIALS   0x3f
 
#define LDAP_OPT_TCP_KEEPALIVE   0x40
 
#define LDAP_OPT_REFERRAL_CALLBACK   0x70
 
#define LDAP_OPT_CLIENT_CERTIFICATE   0x80
 
#define LDAP_OPT_SERVER_CERTIFICATE   0x81
 
#define LDAP_OPT_AUTO_RECONNECT   0x91
 
#define LDAP_OPT_SSPI_FLAGS   0x92
 
#define LDAP_OPT_SSL_INFO   0x93
 
#define LDAP_OPT_REF_DEREF_CONN_PER_MSG   0x94
 
#define LDAP_OPT_SIGN   0x95
 
#define LDAP_OPT_ENCRYPT   0x96
 
#define LDAP_OPT_SASL_METHOD   0x97
 
#define LDAP_OPT_AREC_EXCLUSIVE   0x98
 
#define LDAP_OPT_SECURITY_CONTEXT   0x99
 
#define LDAP_OPT_ROOTDSE_CACHE   0x9a
 
#define LDAP_OPT_VERSION   LDAP_OPT_PROTOCOL_VERSION
 
#define LDAP_OPT_TLS   LDAP_OPT_SSL
 
#define LDAP_OPT_TLS_INFO   LDAP_OPT_SSL_INFO
 
#define LDAP_DEREF_NEVER   0x00
 
#define LDAP_DEREF_SEARCHING   0x01
 
#define LDAP_DEREF_FINDING   0x02
 
#define LDAP_DEREF_ALWAYS   0x03
 
#define LDAP_NO_LIMIT   0
 
#define LDAP_CONTROL_REFERRALS   "1.2.840.113556.1.4.616"
 
#define LDAP_CONTROL_REFERRALS_W   L"1.2.840.113556.1.4.616"
 
#define LDAP_CHASE_SUBORDINATE_REFERRALS   0x20U
 
#define LDAP_CHASE_EXTERNAL_REFERRALS   0x40U
 
#define LDAP_SCOPE_DEFAULT   -1
 
#define LDAP_SCOPE_BASE   0x0000
 
#define LDAP_SCOPE_ONELEVEL   0x0001
 
#define LDAP_SCOPE_SUBTREE   0x0002
 
#define LDAP_MOD_ADD   0x00
 
#define LDAP_MOD_DELETE   0x01
 
#define LDAP_MOD_REPLACE   0x02
 
#define LDAP_MOD_BVALUES   0x80
 
#define LDAP_RES_BIND   0x61
 
#define LDAP_RES_SEARCH_ENTRY   0x64
 
#define LDAP_RES_SEARCH_RESULT   0x65
 
#define LDAP_RES_MODIFY   0x67
 
#define LDAP_RES_ADD   0x69
 
#define LDAP_RES_DELETE   0x6b
 
#define LDAP_RES_MODRDN   0x6d
 
#define LDAP_RES_COMPARE   0x6f
 
#define LDAP_RES_SEARCH_REFERENCE   0x73
 
#define LDAP_RES_EXTENDED   0x78
 
#define LDAP_RES_ANY   (-1L)
 
#define LDAP_MSG_ONE   0x00
 
#define LDAP_MSG_ALL   0x01
 
#define LDAP_MSG_RECEIVED   0x02
 
#define LDAP_SERVER_SORT_OID   "1.2.840.113556.1.4.473"
 
#define LDAP_SERVER_SORT_OID_W   L"1.2.840.113556.1.4.473"
 
#define LDAP_SERVER_RESP_SORT_OID   "1.2.840.113556.1.4.474"
 
#define LDAP_SERVER_RESP_SORT_OID_W   L"1.2.840.113556.1.4.474"
 
#define LDAP_PAGED_RESULT_OID_STRING   "1.2.840.113556.1.4.319"
 
#define LDAP_PAGED_RESULT_OID_STRING_W   L"1.2.840.113556.1.4.319"
 
#define LDAP_CONTROL_VLVREQUEST   "2.16.840.1.113730.3.4.9"
 
#define LDAP_CONTROL_VLVREQUEST_W   L"2.16.840.1.113730.3.4.9"
 
#define LDAP_CONTROL_VLVRESPONSE   "2.16.840.1.113730.3.4.10"
 
#define LDAP_CONTROL_VLVRESPONSE_W   L"2.16.840.1.113730.3.4.10"
 
#define LDAP_START_TLS_OID   "1.3.6.1.4.1.1466.20037"
 
#define LDAP_START_TLS_OID_W   L"1.3.6.1.4.1.1466.20037"
 
#define LDAP_TTL_EXTENDED_OP_OID   "1.3.6.1.4.1.1466.101.119.1"
 
#define LDAP_TTL_EXTENDED_OP_OID_W   L"1.3.6.1.4.1.1466.101.119.1"
 
#define LDAP_AUTH_NONE   0x00U
 
#define LDAP_AUTH_SIMPLE   0x80U
 
#define LDAP_AUTH_SASL   0x83U
 
#define LDAP_AUTH_OTHERKIND   0x86U
 
#define LDAP_AUTH_EXTERNAL   (LDAP_AUTH_OTHERKIND | 0x20U)
 
#define LDAP_AUTH_SICILY   (LDAP_AUTH_OTHERKIND | 0x200U)
 
#define LDAP_AUTH_NEGOTIATE   (LDAP_AUTH_OTHERKIND | 0x400U)
 
#define LDAP_AUTH_MSN   (LDAP_AUTH_OTHERKIND | 0x800U)
 
#define LDAP_AUTH_NTLM   (LDAP_AUTH_OTHERKIND | 0x1000U)
 
#define LDAP_AUTH_DIGEST   (LDAP_AUTH_OTHERKIND | 0x4000U)
 
#define LDAP_AUTH_DPA   (LDAP_AUTH_OTHERKIND | 0x2000U)
 
#define LDAP_AUTH_SSPI   LDAP_AUTH_NEGOTIATE
 
#define LDAP_FILTER_AND   0xa0
 
#define LDAP_FILTER_OR   0xa1
 
#define LDAP_FILTER_NOT   0xa2
 
#define LDAP_FILTER_EQUALITY   0xa3
 
#define LDAP_FILTER_SUBSTRINGS   0xa4
 
#define LDAP_FILTER_GE   0xa5
 
#define LDAP_FILTER_LE   0xa6
 
#define LDAP_FILTER_APPROX   0xa8
 
#define LDAP_FILTER_EXTENSIBLE   0xa9
 
#define LDAP_FILTER_PRESENT   0x87
 
#define LDAP_SUBSTRING_INITIAL   0x80
 
#define LDAP_SUBSTRING_ANY   0x81
 
#define LDAP_SUBSTRING_FINAL   0x82
 
#define mod_values   mod_vals.modv_strvals
 
#define mod_bvalues   mod_vals.modv_bvals
 
#define ldap_perror(handle, message)   printf("%s: %s\n", message, handle->ld_error);
 
#define LDAPControl   LDAPControlA
 
#define PLDAPControl   PLDAPControlA
 
#define LDAPMod   LDAPModA
 
#define PLDAPMod   LDAPModA
 
#define LDAPSortKey   LDAPSortKeyA
 
#define PLDAPSortKey   PLDAPSortKeyA
 
#define LDAPAPIInfo   LDAPAPIInfoA
 
#define PLDAPAPIInfo   PLDAPAPIInfoA
 
#define LDAPAPIFeatureInfo   LDAPAPIFeatureInfoA
 
#define PLDAPAPIFeatureInfo   PLDAPAPIFeatureInfoA
 
#define cldap_open   cldap_openA
 
#define ldap_open   ldap_openA
 
#define ldap_bind   ldap_bindA
 
#define ldap_bind_s   ldap_bind_sA
 
#define ldap_simple_bind   ldap_simple_bindA
 
#define ldap_simple_bind_s   ldap_simple_bind_sA
 
#define ldap_sasl_bind   ldap_sasl_bindA
 
#define ldap_sasl_bind_s   ldap_sasl_bind_sA
 
#define ldap_init   ldap_initA
 
#define ldap_sslinit   ldap_sslinitA
 
#define ldap_get_option   ldap_get_optionA
 
#define ldap_set_option   ldap_set_optionA
 
#define ldap_start_tls_s   ldap_start_tls_sA
 
#define ldap_add   ldap_addA
 
#define ldap_add_ext   ldap_add_extA
 
#define ldap_add_s   ldap_add_sA
 
#define ldap_add_ext_s   ldap_add_ext_sA
 
#define ldap_compare   ldap_compareA
 
#define ldap_compare_ext   ldap_compare_extA
 
#define ldap_compare_s   ldap_compare_sA
 
#define ldap_compare_ext_s   ldap_compare_ext_sA
 
#define ldap_delete   ldap_deleteA
 
#define ldap_delete_ext   ldap_delete_extA
 
#define ldap_delete_s   ldap_delete_sA
 
#define ldap_delete_ext_s   ldap_delete_ext_sA
 
#define ldap_extended_operation_s   ldap_extended_operation_sA
 
#define ldap_extended_operation   ldap_extended_operationA
 
#define ldap_modify   ldap_modifyA
 
#define ldap_modify_ext   ldap_modify_extA
 
#define ldap_modify_s   ldap_modify_sA
 
#define ldap_modify_ext_s   ldap_modify_ext_sA
 
#define ldap_check_filter   ldap_check_filterA
 
#define ldap_count_values   ldap_count_valuesA
 
#define ldap_create_page_control   ldap_create_page_controlA
 
#define ldap_create_sort_control   ldap_create_sort_controlA
 
#define ldap_create_vlv_control   ldap_create_vlv_controlA
 
#define ldap_encode_sort_control   ldap_encode_sort_controlA
 
#define ldap_escape_filter_element   ldap_escape_filter_elementA
 
#define ldap_first_attribute   ldap_first_attributeA
 
#define ldap_next_attribute   ldap_next_attributeA
 
#define ldap_get_values   ldap_get_valuesA
 
#define ldap_get_values_len   ldap_get_values_lenA
 
#define ldap_parse_extended_result   ldap_parse_extended_resultA
 
#define ldap_parse_page_control   ldap_parse_page_controlA
 
#define ldap_parse_reference   ldap_parse_referenceA
 
#define ldap_parse_result   ldap_parse_resultA
 
#define ldap_parse_sort_control   ldap_parse_sort_controlA
 
#define ldap_parse_vlv_control   ldap_parse_vlv_controlA
 
#define ldap_search   ldap_searchA
 
#define ldap_search_s   ldap_search_sA
 
#define ldap_search_st   ldap_search_stA
 
#define ldap_search_ext   ldap_search_extA
 
#define ldap_search_ext_s   ldap_search_ext_sA
 
#define ldap_search_init_page   ldap_search_init_pageA
 
#define ldap_err2string   ldap_err2stringA
 
#define ldap_control_free   ldap_control_freeA
 
#define ldap_controls_free   ldap_controls_freeA
 
#define ldap_free_controls   ldap_free_controlsA
 
#define ldap_memfree   ldap_memfreeA
 
#define ldap_value_free   ldap_value_freeA
 
#define ldap_dn2ufn   ldap_dn2ufnA
 
#define ldap_ufn2dn   ldap_ufn2dnA
 
#define ldap_explode_dn   ldap_explode_dnA
 
#define ldap_get_dn   ldap_get_dnA
 
#define ldap_modrdn   ldap_modrdnA
 
#define ldap_modrdn_s   ldap_modrdn_sA
 
#define ldap_modrdn2   ldap_modrdn2A
 
#define ldap_modrdn2_s   ldap_modrdn2_sA
 
#define ldap_rename   ldap_rename_extA
 
#define ldap_rename_s   ldap_rename_ext_sA
 
#define ldap_rename_ext   ldap_rename_extA
 
#define ldap_rename_ext_s   ldap_rename_ext_sA
 

Typedefs

typedef struct ldap LDAP
 
typedef struct ldapPLDAP
 
typedef struct ldapmsg LDAPMessage
 
typedef struct ldapmsgPLDAPMessage
 
typedef struct l_timeval LDAP_TIMEVAL
 
typedef struct l_timevalPLDAP_TIMEVAL
 
typedef struct ldapapiinfoA LDAPAPIInfoA
 
typedef struct ldapapiinfoAPLDAPAPIInfoA
 
typedef struct ldapapiinfoW LDAPAPIInfoW
 
typedef struct ldapapiinfoWPLDAPAPIInfoW
 
typedef struct ldap_apifeature_infoA LDAPAPIFeatureInfoA
 
typedef struct ldap_apifeature_infoAPLDAPAPIFeatureInfoA
 
typedef struct ldap_apifeature_infoW LDAPAPIFeatureInfoW
 
typedef struct ldap_apifeature_infoWPLDAPAPIFeatureInfoW
 
typedef struct ldapcontrolA LDAPControlA
 
typedef struct ldapcontrolAPLDAPControlA
 
typedef struct ldapcontrolW LDAPControlW
 
typedef struct ldapcontrolWPLDAPControlW
 
typedef union mod_vals_uA mod_vals_u_tA
 
typedef union mod_vals_uW mod_vals_u_tW
 
typedef struct ldapmodA LDAPModA
 
typedef struct ldapmodAPLDAPModA
 
typedef struct ldapmodW LDAPModW
 
typedef struct ldapmodWPLDAPModW
 
typedef struct ldapsearch LDAPSearch
 
typedef struct ldapsearch * PLDAPSearch
 
typedef struct ldapsortkeyA LDAPSortKeyA
 
typedef struct ldapsortkeyAPLDAPSortKeyA
 
typedef struct ldapsortkeyW LDAPSortKeyW
 
typedef struct ldapsortkeyWPLDAPSortKeyW
 
typedef PLDAP *typedef BOOLEAN(__cdecl NOTIFYOFNEWCONNECTION) (PLDAP
 
typedef PLDAP *typedef PWCHAR
 
typedef PLDAP *typedef PCHAR
 
typedef PLDAP *typedef ULONG
 
typedef PLDAP *typedef PVOID
 
typedef typedef PCCERT_CONTEXT *struct LdapReferralCallback LDAP_REFERRAL_CALLBACK
 
typedef typedef PCCERT_CONTEXT *struct LdapReferralCallbackPLDAP_REFERRAL_CALLBACK
 
typedef struct ldapvlvinfo LDAPVLVInfo
 

Functions

typedef ULONG (__cdecl QUERYFORCONNECTION)(PLDAP
 
WINLDAPAPI PLDAP ldap_initA (PCHAR, ULONG)
 
WINLDAPAPI PLDAP ldap_initW (PWCHAR, ULONG)
 
WINLDAPAPI PLDAP ldap_openA (const PCHAR, ULONG)
 
WINLDAPAPI PLDAP ldap_openW (const PWCHAR, ULONG)
 
WINLDAPAPI PLDAP cldap_openA (const PCHAR, ULONG)
 
WINLDAPAPI PLDAP cldap_openW (const PWCHAR, ULONG)
 
WINLDAPAPI ULONG ldap_connect (LDAP *, struct l_timeval *)
 
WINLDAPAPI PLDAP ldap_sslinitA (PCHAR, ULONG, int)
 
WINLDAPAPI PLDAP ldap_sslinitW (PWCHAR, ULONG, int)
 
WINLDAPAPI ULONG ldap_start_tls_sA (LDAP *, PLDAPControlA *, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_start_tls_sW (LDAP *, PLDAPControlW *, PLDAPControlW *)
 
WINLDAPAPI BOOLEAN ldap_stop_tls_s (LDAP *)
 
WINLDAPAPI ULONG ldap_get_optionA (LDAP *, int, void *)
 
WINLDAPAPI ULONG ldap_get_optionW (LDAP *, int, void *)
 
WINLDAPAPI ULONG ldap_set_optionA (LDAP *, int, const void *)
 
WINLDAPAPI ULONG ldap_set_optionW (LDAP *, int, const void *)
 
WINLDAPAPI ULONG ldap_control_freeA (LDAPControlA *)
 
WINLDAPAPI ULONG ldap_control_freeW (LDAPControlW *)
 
WINLDAPAPI ULONG ldap_controls_freeA (LDAPControlA **)
 
WINLDAPAPI ULONG ldap_controls_freeW (LDAPControlW **)
 
WINLDAPAPI ULONG ldap_free_controlsA (LDAPControlA **)
 
WINLDAPAPI ULONG ldap_free_controlsW (LDAPControlW **)
 
WINLDAPAPI ULONG ldap_sasl_bindA (LDAP *, const PCHAR, const PCHAR, const BERVAL *, PLDAPControlA *, PLDAPControlA *, int *)
 
WINLDAPAPI ULONG ldap_sasl_bindW (LDAP *, const PWCHAR, const PWCHAR, const BERVAL *, PLDAPControlW *, PLDAPControlW *, int *)
 
WINLDAPAPI ULONG ldap_sasl_bind_sA (LDAP *, const PCHAR, const PCHAR, const BERVAL *, PLDAPControlA *, PLDAPControlA *, PBERVAL *)
 
WINLDAPAPI ULONG ldap_sasl_bind_sW (LDAP *, const PWCHAR, const PWCHAR, const BERVAL *, PLDAPControlW *, PLDAPControlW *, PBERVAL *)
 
WINLDAPAPI ULONG ldap_simple_bindA (LDAP *, const PCHAR, const PCHAR)
 
WINLDAPAPI ULONG ldap_simple_bindW (LDAP *, const PWCHAR, const PCHAR)
 
WINLDAPAPI ULONG ldap_simple_bind_sA (LDAP *, const PCHAR, const PCHAR)
 
WINLDAPAPI ULONG ldap_simple_bind_sW (LDAP *, const PWCHAR, const PCHAR)
 
WINLDAPAPI ULONG ldap_bindA (LDAP *, const PCHAR, const PCHAR, ULONG) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_bindW (LDAP *, const PWCHAR, const PCHAR, ULONG) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_bind_sA (LDAP *, const PCHAR, const PCHAR, ULONG) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_bind_sW (LDAP *, const PWCHAR, const PCHAR, ULONG) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_unbind (LDAP *)
 
WINLDAPAPI ULONG ldap_unbind_s (LDAP *)
 
WINLDAPAPI ULONG ldap_search_extA (LDAP *, const PCHAR, ULONG, const PCHAR, PCHAR[], ULONG, PLDAPControlW *, PLDAPControlW *, ULONG, ULONG, ULONG *)
 
WINLDAPAPI ULONG ldap_search_extW (LDAP *, const PWCHAR, ULONG, const PWCHAR, PWCHAR[], ULONG, PLDAPControlW *, PLDAPControlW *, ULONG, ULONG, ULONG *)
 
WINLDAPAPI ULONG ldap_search_ext_sA (LDAP *, const PCHAR, ULONG, const PCHAR, PCHAR[], ULONG, PLDAPControlA *, PLDAPControlA *, struct l_timeval *, ULONG, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_search_ext_sW (LDAP *, const PWCHAR, ULONG, const PWCHAR, PWCHAR[], ULONG, PLDAPControlW *, PLDAPControlW *, struct l_timeval *, ULONG, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_searchA (LDAP *, const PCHAR, ULONG, const PCHAR, PCHAR[], ULONG)
 
WINLDAPAPI ULONG ldap_searchW (LDAP *, const PWCHAR, ULONG, const PWCHAR, PWCHAR[], ULONG)
 
WINLDAPAPI ULONG ldap_search_sA (LDAP *, const PCHAR, ULONG, const PCHAR, PCHAR[], ULONG, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_search_sW (LDAP *, const PWCHAR, ULONG, const PWCHAR, PWCHAR[], ULONG, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_search_stA (LDAP *, const PCHAR, ULONG, const PCHAR, PCHAR[], ULONG, struct l_timeval *, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_search_stW (LDAP *, const PWCHAR, ULONG, const PWCHAR, PWCHAR[], ULONG, struct l_timeval *, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_compare_extA (LDAP *, const PCHAR, const PCHAR, PCHAR, struct berval *, PLDAPControlA *, PLDAPControlA *, ULONG *)
 
WINLDAPAPI ULONG ldap_compare_extW (LDAP *, const PWCHAR, const PWCHAR, PWCHAR, struct berval *, PLDAPControlW *, PLDAPControlW *, ULONG *)
 
WINLDAPAPI ULONG ldap_compare_ext_sA (LDAP *, const PCHAR, const PCHAR, const PCHAR, struct berval *, PLDAPControlA *, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_compare_ext_sW (LDAP *, const PWCHAR, const PWCHAR, const PWCHAR, struct berval *, PLDAPControlW *, PLDAPControlW *)
 
WINLDAPAPI ULONG ldap_compareA (LDAP *, const PCHAR, const PCHAR, PCHAR)
 
WINLDAPAPI ULONG ldap_compareW (LDAP *, const PWCHAR, const PWCHAR, PWCHAR)
 
WINLDAPAPI ULONG ldap_compare_sA (LDAP *, const PCHAR, const PCHAR, PCHAR)
 
WINLDAPAPI ULONG ldap_compare_sW (LDAP *, const PWCHAR, const PWCHAR, PWCHAR)
 
WINLDAPAPI ULONG ldap_modify_extA (LDAP *, const PCHAR, LDAPModA *[], PLDAPControlA *, PLDAPControlA *, ULONG *)
 
WINLDAPAPI ULONG ldap_modify_extW (LDAP *, const PWCHAR, LDAPModW *[], PLDAPControlW *, PLDAPControlW *, ULONG *)
 
WINLDAPAPI ULONG ldap_modify_ext_sA (LDAP *, const PCHAR, LDAPModA *[], PLDAPControlA *, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_modify_ext_sW (LDAP *, const PWCHAR, LDAPModW *[], PLDAPControlW *, PLDAPControlW *)
 
WINLDAPAPI ULONG ldap_modifyA (LDAP *, const PCHAR, LDAPModA *[])
 
WINLDAPAPI ULONG ldap_modifyW (LDAP *, const PWCHAR, LDAPModW *[])
 
WINLDAPAPI ULONG ldap_modify_sA (LDAP *, const PCHAR, LDAPModA *[])
 
WINLDAPAPI ULONG ldap_modify_sW (LDAP *, const PWCHAR, LDAPModW *[])
 
WINLDAPAPI ULONG ldap_rename_extA (LDAP *, const PCHAR, const PCHAR, const PCHAR, INT, PLDAPControlA *, PLDAPControlA *, ULONG *)
 
WINLDAPAPI ULONG ldap_rename_extW (LDAP *, const PWCHAR, const PWCHAR, const PWCHAR, INT, PLDAPControlW *, PLDAPControlW *, ULONG *)
 
WINLDAPAPI ULONG ldap_rename_ext_sA (LDAP *, const PCHAR, const PCHAR, const PCHAR, INT, PLDAPControlA *, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_rename_ext_sW (LDAP *, const PWCHAR, const PWCHAR, const PWCHAR, INT, PLDAPControlW *, PLDAPControlW *)
 
WINLDAPAPI ULONG ldap_modrdnA (LDAP *, PCHAR, PCHAR) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdnW (LDAP *, PWCHAR, PWCHAR) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdn_sA (LDAP *, PCHAR, PCHAR) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdn_sW (LDAP *, PWCHAR, PWCHAR) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdn2A (LDAP *, PCHAR, PCHAR, INT) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdn2W (LDAP *, PWCHAR, PWCHAR, INT) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdn2_sA (LDAP *, PCHAR, PCHAR, INT) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_modrdn2_sW (LDAP *, PWCHAR, PWCHAR, INT) _WINLDAP_DEPRECATED
 
WINLDAPAPI ULONG ldap_add_extA (LDAP *, const PCHAR, LDAPModA *[], PLDAPControlA *, PLDAPControlA *, ULONG *)
 
WINLDAPAPI ULONG ldap_add_extW (LDAP *, const PWCHAR, LDAPModW *[], PLDAPControlW *, PLDAPControlW *, ULONG *)
 
WINLDAPAPI ULONG ldap_add_ext_sA (LDAP *, const PCHAR, LDAPModA *[], PLDAPControlA *, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_add_ext_sW (LDAP *, const PWCHAR, LDAPModW *[], PLDAPControlW *, PLDAPControlW *)
 
WINLDAPAPI ULONG ldap_addA (LDAP *, const PCHAR, LDAPModA *[])
 
WINLDAPAPI ULONG ldap_addW (LDAP *, const PWCHAR, LDAPModW *[])
 
WINLDAPAPI ULONG ldap_add_sA (LDAP *, const PCHAR, LDAPModA *[])
 
WINLDAPAPI ULONG ldap_add_sW (LDAP *, const PWCHAR, LDAPModW *[])
 
WINLDAPAPI ULONG ldap_delete_extA (LDAP *, const PCHAR, PLDAPControlA *, PLDAPControlA *, ULONG *)
 
WINLDAPAPI ULONG ldap_delete_extW (LDAP *, const PWCHAR, PLDAPControlW *, PLDAPControlW *, ULONG *)
 
WINLDAPAPI ULONG ldap_delete_ext_sA (LDAP *, const PCHAR, PLDAPControlA *, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_delete_ext_sW (LDAP *, const PWCHAR, PLDAPControlW *, PLDAPControlW *)
 
WINLDAPAPI ULONG ldap_deleteA (LDAP *, const PCHAR)
 
WINLDAPAPI ULONG ldap_deleteW (LDAP *, const PWCHAR)
 
WINLDAPAPI ULONG ldap_delete_sA (LDAP *, const PCHAR)
 
WINLDAPAPI ULONG ldap_delete_sW (LDAP *, const PWCHAR)
 
WINLDAPAPI ULONG ldap_extended_operationA (LDAP *, const PCHAR, const struct berval *, PLDAPControlA *, PLDAPControlA *, ULONG *)
 
WINLDAPAPI ULONG ldap_extended_operationW (LDAP *, const PWCHAR, const struct berval *, PLDAPControlW *, PLDAPControlW *, ULONG *)
 
WINLDAPAPI ULONG ldap_extended_operation_sA (LDAP *, const PCHAR, const struct berval *, PLDAPControlA *, PLDAPControlA *, PCHAR *, struct berval **)
 
WINLDAPAPI ULONG ldap_extended_operation_sW (LDAP *, const PWCHAR, const struct berval *, PLDAPControlW *, PLDAPControlW *, PWCHAR *, struct berval **)
 
WINLDAPAPI ULONG ldap_close_extended_op (LDAP *, ULONG)
 
WINLDAPAPI ULONG ldap_abandon (LDAP *, ULONG)
 
WINLDAPAPI ULONG ldap_result (LDAP *, ULONG, ULONG, struct l_timeval *, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_msgfree (LDAPMessage *)
 
WINLDAPAPI ULONG ldap_parse_resultA (LDAP *, LDAPMessage *, ULONG *, PCHAR *, PCHAR *, PCHAR **, PLDAPControlA **, BOOLEAN)
 
WINLDAPAPI ULONG ldap_parse_resultW (LDAP *, LDAPMessage *, ULONG *, PWCHAR *, PWCHAR *, PWCHAR **, PLDAPControlW **, BOOLEAN)
 
WINLDAPAPI ULONG ldap_parse_extended_resultA (LDAP, LDAPMessage *, PCHAR *, struct berval **, BOOLEAN)
 
WINLDAPAPI ULONG ldap_parse_extended_resultW (LDAP, LDAPMessage *, PWCHAR *, struct berval **, BOOLEAN)
 
WINLDAPAPI PCHAR ldap_err2stringA (ULONG)
 
WINLDAPAPI PWCHAR ldap_err2stringW (ULONG)
 
WINLDAPAPI ULONG LdapGetLastError (void)
 
WINLDAPAPI ULONG LdapMapErrorToWin32 (ULONG)
 
WINLDAPAPI ULONG ldap_result2error (LDAP *, LDAPMessage *, ULONG)
 
WINLDAPAPI PLDAPMessage ldap_first_entry (LDAP *, LDAPMessage *)
 
WINLDAPAPI PLDAPMessage ldap_next_entry (LDAP *, LDAPMessage *)
 
WINLDAPAPI PLDAPMessage ldap_first_reference (LDAP *, LDAPMessage *)
 
WINLDAPAPI PLDAPMessage ldap_next_reference (LDAP *, LDAPMessage *)
 
WINLDAPAPI ULONG ldap_count_entries (LDAP *, LDAPMessage *)
 
WINLDAPAPI ULONG ldap_count_references (LDAP *, LDAPMessage *)
 
WINLDAPAPI PCHAR ldap_first_attributeA (LDAP *, LDAPMessage *, BerElement **)
 
WINLDAPAPI PWCHAR ldap_first_attributeW (LDAP *, LDAPMessage *, BerElement **)
 
WINLDAPAPI PCHAR ldap_next_attributeA (LDAP *, LDAPMessage *, BerElement *)
 
WINLDAPAPI PWCHAR ldap_next_attributeW (LDAP *, LDAPMessage *, BerElement *)
 
WINLDAPAPI VOID ldap_memfreeA (PCHAR)
 
WINLDAPAPI VOID ldap_memfreeW (PWCHAR)
 
WINLDAPAPI PCHARldap_get_valuesA (LDAP *, LDAPMessage *, const PCHAR)
 
WINLDAPAPI PWCHARldap_get_valuesW (LDAP *, LDAPMessage *, const PWCHAR)
 
WINLDAPAPI BerValue ** ldap_get_values_lenA (LDAP *, LDAPMessage *, const PCHAR)
 
WINLDAPAPI BerValue ** ldap_get_values_lenW (LDAP *, LDAPMessage *, const PWCHAR)
 
WINLDAPAPI ULONG ldap_count_valuesA (PCHAR *)
 
WINLDAPAPI ULONG ldap_count_valuesW (PWCHAR *)
 
WINLDAPAPI ULONG ldap_count_values_len (struct berval **)
 
WINLDAPAPI ULONG ldap_value_freeA (PCHAR *)
 
WINLDAPAPI ULONG ldap_value_freeW (PWCHAR *)
 
WINLDAPAPI ULONG ldap_value_free_len (struct berval **)
 
WINLDAPAPI PCHAR ldap_get_dnA (LDAP *, LDAPMessage *)
 
WINLDAPAPI PWCHAR ldap_get_dnW (LDAP *, LDAPMessage *)
 
WINLDAPAPI PCHAR ldap_explode_dnA (PCHAR, ULONG)
 
WINLDAPAPI PWCHAR ldap_explode_dnW (PWCHAR, ULONG)
 
WINLDAPAPI PCHAR ldap_dn2ufnA (PCHAR)
 
WINLDAPAPI PWCHAR ldap_dn2ufnW (PWCHAR)
 
WINLDAPAPI ULONG ldap_ufn2dnA (const PCHAR, PCHAR *)
 
WINLDAPAPI ULONG ldap_ufn2dnW (const PWCHAR, PWCHAR *)
 
WINLDAPAPI ULONG ldap_parse_referenceA (LDAP *, LDAPMessage *, PCHAR **)
 
WINLDAPAPI ULONG ldap_parse_referenceW (LDAP *, LDAPMessage *, PWCHAR **)
 
WINLDAPAPI ULONG ldap_check_filterA (LDAP *, PCHAR)
 
WINLDAPAPI ULONG ldap_check_filterW (LDAP *, PWCHAR)
 
WINLDAPAPI ULONG ldap_create_page_controlA (PLDAP, ULONG, struct berval *, UCHAR, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_create_page_controlW (PLDAP, ULONG, struct berval *, UCHAR, PLDAPControlW *)
 
WINLDAPAPI ULONG ldap_create_sort_controlA (PLDAP, PLDAPSortKeyA *, UCHAR, PLDAPControlA *)
 
WINLDAPAPI ULONG ldap_create_sort_controlW (PLDAP, PLDAPSortKeyW *, UCHAR, PLDAPControlW *)
 
WINLDAPAPI INT ldap_create_vlv_controlA (LDAP *, LDAPVLVInfo *, UCHAR, LDAPControlA **)
 
WINLDAPAPI INT ldap_create_vlv_controlW (LDAP *, LDAPVLVInfo *, UCHAR, LDAPControlW **)
 
WINLDAPAPI ULONG ldap_encode_sort_controlA (PLDAP, PLDAPSortKeyA *, PLDAPControlA, BOOLEAN)
 
WINLDAPAPI ULONG ldap_encode_sort_controlW (PLDAP, PLDAPSortKeyW *, PLDAPControlW, BOOLEAN)
 
WINLDAPAPI ULONG ldap_escape_filter_elementA (PCHAR, ULONG, PCHAR, ULONG)
 
WINLDAPAPI ULONG ldap_escape_filter_elementW (PWCHAR, ULONG, PWCHAR, ULONG)
 
WINLDAPAPI ULONG ldap_get_next_page (PLDAP, PLDAPSearch, ULONG, ULONG *)
 
WINLDAPAPI ULONG ldap_get_next_page_s (PLDAP, PLDAPSearch, struct l_timeval *, ULONG, ULONG *, LDAPMessage **)
 
WINLDAPAPI ULONG ldap_get_paged_count (PLDAP, PLDAPSearch, ULONG *, PLDAPMessage)
 
WINLDAPAPI ULONG ldap_parse_page_controlA (PLDAP, PLDAPControlA *, ULONG *, struct berval **)
 
WINLDAPAPI ULONG ldap_parse_page_controlW (PLDAP, PLDAPControlW *, ULONG *, struct berval **)
 
WINLDAPAPI ULONG ldap_parse_sort_controlA (PLDAP, PLDAPControlA *, ULONG *, PCHAR *)
 
WINLDAPAPI ULONG ldap_parse_sort_controlW (PLDAP, PLDAPControlW *, ULONG *, PWCHAR *)
 
WINLDAPAPI INT ldap_parse_vlv_controlA (LDAP *, LDAPControlA **, unsigned long *, unsigned long *, struct berval **, int *)
 
WINLDAPAPI INT ldap_parse_vlv_controlW (LDAP *, LDAPControlW **, unsigned long *, unsigned long *, struct berval **, int *)
 
WINLDAPAPI PLDAPSearch ldap_search_init_pageA (PLDAP, const PCHAR, ULONG, const PCHAR, PCHAR[], ULONG, PLDAPControlA *, PLDAPControlA *, ULONG, ULONG, PLDAPSortKeyA *)
 
WINLDAPAPI PLDAPSearch ldap_search_init_pageW (PLDAP, const PWCHAR, ULONG, const PWCHAR, PWCHAR[], ULONG, PLDAPControlW *, PLDAPControlW *, ULONG, ULONG, PLDAPSortKeyW *)
 
WINLDAPAPI ULONG ldap_search_abandon_page (PLDAP, PLDAPSearch)
 
WINLDAPAPI LDAP ldap_conn_from_msg (LDAP *, LDAPMessage *)
 
WINLDAPAPI INT LdapUnicodeToUTF8 (LPCWSTR, int, LPSTR, int)
 
WINLDAPAPI INT LdapUTF8ToUnicode (LPCSTR, int, LPWSTR, int)
 

Variables

typedef PSecPkgContext_IssuerListInfoEx
 

Macro Definition Documentation

◆ _WINLDAP_DEPRECATED

#define _WINLDAP_DEPRECATED

Definition at line 37 of file winldap.h.

◆ cldap_open

#define cldap_open   cldap_openA

Definition at line 630 of file winldap.h.

◆ ldap_add

#define ldap_add   ldap_addA

Definition at line 643 of file winldap.h.

◆ ldap_add_ext

#define ldap_add_ext   ldap_add_extA

Definition at line 644 of file winldap.h.

◆ ldap_add_ext_s

#define ldap_add_ext_s   ldap_add_ext_sA

Definition at line 646 of file winldap.h.

◆ ldap_add_s

#define ldap_add_s   ldap_add_sA

Definition at line 645 of file winldap.h.

◆ LDAP_ADMIN_LIMIT_EXCEEDED

#define LDAP_ADMIN_LIMIT_EXCEEDED   0x0b

Definition at line 70 of file winldap.h.

◆ LDAP_AFFECTS_MULTIPLE_DSAS

#define LDAP_AFFECTS_MULTIPLE_DSAS   0x47

Definition at line 99 of file winldap.h.

◆ LDAP_ALIAS_DEREF_PROBLEM

#define LDAP_ALIAS_DEREF_PROBLEM   0x24

Definition at line 84 of file winldap.h.

◆ LDAP_ALIAS_PROBLEM

#define LDAP_ALIAS_PROBLEM   0x21

Definition at line 81 of file winldap.h.

◆ LDAP_ALREADY_EXISTS

#define LDAP_ALREADY_EXISTS   0x44

Definition at line 96 of file winldap.h.

◆ LDAP_API_INFO_VERSION

#define LDAP_API_INFO_VERSION   1

Definition at line 57 of file winldap.h.

◆ LDAP_API_VERSION

#define LDAP_API_VERSION   2004

Definition at line 51 of file winldap.h.

◆ LDAP_ATTRIBUTE_OR_VALUE_EXISTS

#define LDAP_ATTRIBUTE_OR_VALUE_EXISTS   LDAP_TYPE_OR_VALUE_EXISTS

Definition at line 120 of file winldap.h.

◆ LDAP_AUTH_DIGEST

#define LDAP_AUTH_DIGEST   (LDAP_AUTH_OTHERKIND | 0x4000U)

Definition at line 232 of file winldap.h.

◆ LDAP_AUTH_DPA

#define LDAP_AUTH_DPA   (LDAP_AUTH_OTHERKIND | 0x2000U)

Definition at line 233 of file winldap.h.

◆ LDAP_AUTH_EXTERNAL

#define LDAP_AUTH_EXTERNAL   (LDAP_AUTH_OTHERKIND | 0x20U)

Definition at line 227 of file winldap.h.

◆ LDAP_AUTH_METHOD_NOT_SUPPORTED

#define LDAP_AUTH_METHOD_NOT_SUPPORTED   LDAP_STRONG_AUTH_NOT_SUPPORTED

Definition at line 119 of file winldap.h.

◆ LDAP_AUTH_MSN

#define LDAP_AUTH_MSN   (LDAP_AUTH_OTHERKIND | 0x800U)

Definition at line 230 of file winldap.h.

◆ LDAP_AUTH_NEGOTIATE

#define LDAP_AUTH_NEGOTIATE   (LDAP_AUTH_OTHERKIND | 0x400U)

Definition at line 229 of file winldap.h.

◆ LDAP_AUTH_NONE

#define LDAP_AUTH_NONE   0x00U

Definition at line 223 of file winldap.h.

◆ LDAP_AUTH_NTLM

#define LDAP_AUTH_NTLM   (LDAP_AUTH_OTHERKIND | 0x1000U)

Definition at line 231 of file winldap.h.

◆ LDAP_AUTH_OTHERKIND

#define LDAP_AUTH_OTHERKIND   0x86U

Definition at line 226 of file winldap.h.

◆ LDAP_AUTH_SASL

#define LDAP_AUTH_SASL   0x83U

Definition at line 225 of file winldap.h.

◆ LDAP_AUTH_SICILY

#define LDAP_AUTH_SICILY   (LDAP_AUTH_OTHERKIND | 0x200U)

Definition at line 228 of file winldap.h.

◆ LDAP_AUTH_SIMPLE

#define LDAP_AUTH_SIMPLE   0x80U

Definition at line 224 of file winldap.h.

◆ LDAP_AUTH_SSPI

#define LDAP_AUTH_SSPI   LDAP_AUTH_NEGOTIATE

Definition at line 234 of file winldap.h.

◆ LDAP_AUTH_UNKNOWN

#define LDAP_AUTH_UNKNOWN   0x56

Definition at line 106 of file winldap.h.

◆ ldap_bind

#define ldap_bind   ldap_bindA

Definition at line 632 of file winldap.h.

◆ ldap_bind_s

#define ldap_bind_s   ldap_bind_sA

Definition at line 633 of file winldap.h.

◆ LDAP_BUSY

#define LDAP_BUSY   0x33

Definition at line 88 of file winldap.h.

◆ LDAP_CHASE_EXTERNAL_REFERRALS

#define LDAP_CHASE_EXTERNAL_REFERRALS   0x40U

Definition at line 186 of file winldap.h.

◆ LDAP_CHASE_SUBORDINATE_REFERRALS

#define LDAP_CHASE_SUBORDINATE_REFERRALS   0x20U

Definition at line 185 of file winldap.h.

◆ ldap_check_filter

#define ldap_check_filter   ldap_check_filterA

Definition at line 661 of file winldap.h.

◆ LDAP_CLIENT_LOOP

#define LDAP_CLIENT_LOOP   0x60

Definition at line 116 of file winldap.h.

◆ ldap_compare

#define ldap_compare   ldap_compareA

Definition at line 647 of file winldap.h.

◆ ldap_compare_ext

#define ldap_compare_ext   ldap_compare_extA

Definition at line 648 of file winldap.h.

◆ ldap_compare_ext_s

#define ldap_compare_ext_s   ldap_compare_ext_sA

Definition at line 650 of file winldap.h.

◆ LDAP_COMPARE_FALSE

#define LDAP_COMPARE_FALSE   0x05

Definition at line 64 of file winldap.h.

◆ ldap_compare_s

#define ldap_compare_s   ldap_compare_sA

Definition at line 649 of file winldap.h.

◆ LDAP_COMPARE_TRUE

#define LDAP_COMPARE_TRUE   0x06

Definition at line 65 of file winldap.h.

◆ LDAP_CONFIDENTIALITY_REQUIRED

#define LDAP_CONFIDENTIALITY_REQUIRED   0x0d

Definition at line 72 of file winldap.h.

◆ LDAP_CONNECT_ERROR

#define LDAP_CONNECT_ERROR   0x5b

Definition at line 111 of file winldap.h.

◆ LDAP_CONSTRAINT_VIOLATION

#define LDAP_CONSTRAINT_VIOLATION   0x13

Definition at line 77 of file winldap.h.

◆ ldap_control_free

#define ldap_control_free   ldap_control_freeA

Definition at line 685 of file winldap.h.

◆ LDAP_CONTROL_NOT_FOUND

#define LDAP_CONTROL_NOT_FOUND   0x5d

Definition at line 113 of file winldap.h.

◆ LDAP_CONTROL_REFERRALS

#define LDAP_CONTROL_REFERRALS   "1.2.840.113556.1.4.616"

Definition at line 183 of file winldap.h.

◆ LDAP_CONTROL_REFERRALS_W

#define LDAP_CONTROL_REFERRALS_W   L"1.2.840.113556.1.4.616"

Definition at line 184 of file winldap.h.

◆ LDAP_CONTROL_VLVREQUEST

#define LDAP_CONTROL_VLVREQUEST   "2.16.840.1.113730.3.4.9"

Definition at line 215 of file winldap.h.

◆ LDAP_CONTROL_VLVREQUEST_W

#define LDAP_CONTROL_VLVREQUEST_W   L"2.16.840.1.113730.3.4.9"

Definition at line 216 of file winldap.h.

◆ LDAP_CONTROL_VLVRESPONSE

#define LDAP_CONTROL_VLVRESPONSE   "2.16.840.1.113730.3.4.10"

Definition at line 217 of file winldap.h.

◆ LDAP_CONTROL_VLVRESPONSE_W

#define LDAP_CONTROL_VLVRESPONSE_W   L"2.16.840.1.113730.3.4.10"

Definition at line 218 of file winldap.h.

◆ ldap_controls_free

#define ldap_controls_free   ldap_controls_freeA

Definition at line 686 of file winldap.h.

◆ ldap_count_values

#define ldap_count_values   ldap_count_valuesA

Definition at line 662 of file winldap.h.

◆ ldap_create_page_control

#define ldap_create_page_control   ldap_create_page_controlA

Definition at line 663 of file winldap.h.

◆ ldap_create_sort_control

#define ldap_create_sort_control   ldap_create_sort_controlA

Definition at line 664 of file winldap.h.

◆ ldap_create_vlv_control

#define ldap_create_vlv_control   ldap_create_vlv_controlA

Definition at line 665 of file winldap.h.

◆ LDAP_DECODING_ERROR

#define LDAP_DECODING_ERROR   0x54

Definition at line 104 of file winldap.h.

◆ ldap_delete

#define ldap_delete   ldap_deleteA

Definition at line 651 of file winldap.h.

◆ ldap_delete_ext

#define ldap_delete_ext   ldap_delete_extA

Definition at line 652 of file winldap.h.

◆ ldap_delete_ext_s

#define ldap_delete_ext_s   ldap_delete_ext_sA

Definition at line 654 of file winldap.h.

◆ ldap_delete_s

#define ldap_delete_s   ldap_delete_sA

Definition at line 653 of file winldap.h.

◆ LDAP_DEREF_ALWAYS

#define LDAP_DEREF_ALWAYS   0x03

Definition at line 181 of file winldap.h.

◆ LDAP_DEREF_FINDING

#define LDAP_DEREF_FINDING   0x02

Definition at line 180 of file winldap.h.

◆ LDAP_DEREF_NEVER

#define LDAP_DEREF_NEVER   0x00

Definition at line 178 of file winldap.h.

◆ LDAP_DEREF_SEARCHING

#define LDAP_DEREF_SEARCHING   0x01

Definition at line 179 of file winldap.h.

◆ ldap_dn2ufn

#define ldap_dn2ufn   ldap_dn2ufnA

Definition at line 690 of file winldap.h.

◆ ldap_encode_sort_control

#define ldap_encode_sort_control   ldap_encode_sort_controlA

Definition at line 666 of file winldap.h.

◆ LDAP_ENCODING_ERROR

#define LDAP_ENCODING_ERROR   0x53

Definition at line 103 of file winldap.h.

◆ ldap_err2string

#define ldap_err2string   ldap_err2stringA

Definition at line 684 of file winldap.h.

◆ ldap_escape_filter_element

#define ldap_escape_filter_element   ldap_escape_filter_elementA

Definition at line 667 of file winldap.h.

◆ ldap_explode_dn

#define ldap_explode_dn   ldap_explode_dnA

Definition at line 692 of file winldap.h.

◆ ldap_extended_operation

#define ldap_extended_operation   ldap_extended_operationA

Definition at line 656 of file winldap.h.

◆ ldap_extended_operation_s

#define ldap_extended_operation_s   ldap_extended_operation_sA

Definition at line 655 of file winldap.h.

◆ LDAP_FEATURE_INFO_VERSION

#define LDAP_FEATURE_INFO_VERSION   1

Definition at line 58 of file winldap.h.

◆ LDAP_FILTER_AND

#define LDAP_FILTER_AND   0xa0

Definition at line 235 of file winldap.h.

◆ LDAP_FILTER_APPROX

#define LDAP_FILTER_APPROX   0xa8

Definition at line 242 of file winldap.h.

◆ LDAP_FILTER_EQUALITY

#define LDAP_FILTER_EQUALITY   0xa3

Definition at line 238 of file winldap.h.

◆ LDAP_FILTER_ERROR

#define LDAP_FILTER_ERROR   0x57

Definition at line 107 of file winldap.h.

◆ LDAP_FILTER_EXTENSIBLE

#define LDAP_FILTER_EXTENSIBLE   0xa9

Definition at line 243 of file winldap.h.

◆ LDAP_FILTER_GE

#define LDAP_FILTER_GE   0xa5

Definition at line 240 of file winldap.h.

◆ LDAP_FILTER_LE

#define LDAP_FILTER_LE   0xa6

Definition at line 241 of file winldap.h.

◆ LDAP_FILTER_NOT

#define LDAP_FILTER_NOT   0xa2

Definition at line 237 of file winldap.h.

◆ LDAP_FILTER_OR

#define LDAP_FILTER_OR   0xa1

Definition at line 236 of file winldap.h.

◆ LDAP_FILTER_PRESENT

#define LDAP_FILTER_PRESENT   0x87

Definition at line 244 of file winldap.h.

◆ LDAP_FILTER_SUBSTRINGS

#define LDAP_FILTER_SUBSTRINGS   0xa4

Definition at line 239 of file winldap.h.

◆ ldap_first_attribute

#define ldap_first_attribute   ldap_first_attributeA

Definition at line 668 of file winldap.h.

◆ ldap_free_controls

#define ldap_free_controls   ldap_free_controlsA

Definition at line 687 of file winldap.h.

◆ LDAP_GC_PORT

#define LDAP_GC_PORT   3268

Definition at line 125 of file winldap.h.

◆ ldap_get_dn

#define ldap_get_dn   ldap_get_dnA

Definition at line 693 of file winldap.h.

◆ ldap_get_option

#define ldap_get_option   ldap_get_optionA

Definition at line 640 of file winldap.h.

◆ ldap_get_values

#define ldap_get_values   ldap_get_valuesA

Definition at line 670 of file winldap.h.

◆ ldap_get_values_len

#define ldap_get_values_len   ldap_get_values_lenA

Definition at line 671 of file winldap.h.

◆ LDAP_INAPPROPRIATE_AUTH

#define LDAP_INAPPROPRIATE_AUTH   0x30

Definition at line 85 of file winldap.h.

◆ LDAP_INAPPROPRIATE_MATCHING

#define LDAP_INAPPROPRIATE_MATCHING   0x12

Definition at line 76 of file winldap.h.

◆ ldap_init

#define ldap_init   ldap_initA

Definition at line 638 of file winldap.h.

◆ LDAP_INSUFFICIENT_ACCESS

#define LDAP_INSUFFICIENT_ACCESS   0x32

Definition at line 87 of file winldap.h.

◆ LDAP_INSUFFICIENT_RIGHTS

#define LDAP_INSUFFICIENT_RIGHTS   LDAP_INSUFFICIENT_ACCESS

Definition at line 121 of file winldap.h.

◆ LDAP_INVALID_CREDENTIALS

#define LDAP_INVALID_CREDENTIALS   0x31

Definition at line 86 of file winldap.h.

◆ LDAP_INVALID_DN_SYNTAX

#define LDAP_INVALID_DN_SYNTAX   0x22

Definition at line 82 of file winldap.h.

◆ LDAP_INVALID_SYNTAX

#define LDAP_INVALID_SYNTAX   0x15

Definition at line 79 of file winldap.h.

◆ LDAP_IS_LEAF

#define LDAP_IS_LEAF   0x23

Definition at line 83 of file winldap.h.

◆ LDAP_LOCAL_ERROR

#define LDAP_LOCAL_ERROR   0x52

Definition at line 102 of file winldap.h.

◆ LDAP_LOOP_DETECT

#define LDAP_LOOP_DETECT   0x36

Definition at line 91 of file winldap.h.

◆ ldap_memfree

#define ldap_memfree   ldap_memfreeA

Definition at line 688 of file winldap.h.

◆ LDAP_MOD_ADD

#define LDAP_MOD_ADD   0x00

Definition at line 191 of file winldap.h.

◆ LDAP_MOD_BVALUES

#define LDAP_MOD_BVALUES   0x80

Definition at line 194 of file winldap.h.

◆ LDAP_MOD_DELETE

#define LDAP_MOD_DELETE   0x01

Definition at line 192 of file winldap.h.

◆ LDAP_MOD_REPLACE

#define LDAP_MOD_REPLACE   0x02

Definition at line 193 of file winldap.h.

◆ ldap_modify

#define ldap_modify   ldap_modifyA

Definition at line 657 of file winldap.h.

◆ ldap_modify_ext

#define ldap_modify_ext   ldap_modify_extA

Definition at line 658 of file winldap.h.

◆ ldap_modify_ext_s

#define ldap_modify_ext_s   ldap_modify_ext_sA

Definition at line 660 of file winldap.h.

◆ ldap_modify_s

#define ldap_modify_s   ldap_modify_sA

Definition at line 659 of file winldap.h.

◆ ldap_modrdn

#define ldap_modrdn   ldap_modrdnA

Definition at line 694 of file winldap.h.

◆ ldap_modrdn2

#define ldap_modrdn2   ldap_modrdn2A

Definition at line 696 of file winldap.h.

◆ ldap_modrdn2_s

#define ldap_modrdn2_s   ldap_modrdn2_sA

Definition at line 697 of file winldap.h.

◆ ldap_modrdn_s

#define ldap_modrdn_s   ldap_modrdn_sA

Definition at line 695 of file winldap.h.

◆ LDAP_MORE_RESULTS_TO_RETURN

#define LDAP_MORE_RESULTS_TO_RETURN   0x5f

Definition at line 115 of file winldap.h.

◆ LDAP_MSG_ALL

#define LDAP_MSG_ALL   0x01

Definition at line 207 of file winldap.h.

◆ LDAP_MSG_ONE

#define LDAP_MSG_ONE   0x00

Definition at line 206 of file winldap.h.

◆ LDAP_MSG_RECEIVED

#define LDAP_MSG_RECEIVED   0x02

Definition at line 208 of file winldap.h.

◆ LDAP_NAMING_VIOLATION

#define LDAP_NAMING_VIOLATION   0x40

Definition at line 92 of file winldap.h.

◆ ldap_next_attribute

#define ldap_next_attribute   ldap_next_attributeA

Definition at line 669 of file winldap.h.

◆ LDAP_NO_LIMIT

#define LDAP_NO_LIMIT   0

Definition at line 182 of file winldap.h.

◆ LDAP_NO_MEMORY

#define LDAP_NO_MEMORY   0x5a

Definition at line 110 of file winldap.h.

◆ LDAP_NO_OBJECT_CLASS_MODS

#define LDAP_NO_OBJECT_CLASS_MODS   0x45

Definition at line 97 of file winldap.h.

◆ LDAP_NO_RESULTS_RETURNED

#define LDAP_NO_RESULTS_RETURNED   0x5e

Definition at line 114 of file winldap.h.

◆ LDAP_NO_SUCH_ATTRIBUTE

#define LDAP_NO_SUCH_ATTRIBUTE   0x10

Definition at line 74 of file winldap.h.

◆ LDAP_NO_SUCH_OBJECT

#define LDAP_NO_SUCH_OBJECT   0x20

Definition at line 80 of file winldap.h.

◆ LDAP_NOT_ALLOWED_ON_NONLEAF

#define LDAP_NOT_ALLOWED_ON_NONLEAF   0x42

Definition at line 94 of file winldap.h.

◆ LDAP_NOT_ALLOWED_ON_RDN

#define LDAP_NOT_ALLOWED_ON_RDN   0x43

Definition at line 95 of file winldap.h.

◆ LDAP_NOT_SUPPORTED

#define LDAP_NOT_SUPPORTED   0x5c

Definition at line 112 of file winldap.h.

◆ LDAP_OBJECT_CLASS_VIOLATION

#define LDAP_OBJECT_CLASS_VIOLATION   0x41

Definition at line 93 of file winldap.h.

◆ ldap_open

#define ldap_open   ldap_openA

Definition at line 631 of file winldap.h.

◆ LDAP_OPERATIONS_ERROR

#define LDAP_OPERATIONS_ERROR   0x01

Definition at line 60 of file winldap.h.

◆ LDAP_OPT_API_FEATURE_INFO

#define LDAP_OPT_API_FEATURE_INFO   0x15

Definition at line 148 of file winldap.h.

◆ LDAP_OPT_API_INFO

#define LDAP_OPT_API_INFO   0x00

Definition at line 129 of file winldap.h.

◆ LDAP_OPT_AREC_EXCLUSIVE

#define LDAP_OPT_AREC_EXCLUSIVE   0x98

Definition at line 172 of file winldap.h.

◆ LDAP_OPT_AUTO_RECONNECT

#define LDAP_OPT_AUTO_RECONNECT   0x91

Definition at line 165 of file winldap.h.

◆ LDAP_OPT_CACHE_ENABLE

#define LDAP_OPT_CACHE_ENABLE   0x0f

Definition at line 143 of file winldap.h.

◆ LDAP_OPT_CACHE_FN_PTRS

#define LDAP_OPT_CACHE_FN_PTRS   0x0d

Definition at line 141 of file winldap.h.

◆ LDAP_OPT_CACHE_STRATEGY

#define LDAP_OPT_CACHE_STRATEGY   0x0e

Definition at line 142 of file winldap.h.

◆ LDAP_OPT_CLIENT_CERTIFICATE

#define LDAP_OPT_CLIENT_CERTIFICATE   0x80

Definition at line 163 of file winldap.h.

◆ LDAP_OPT_CLIENT_CONTROLS

#define LDAP_OPT_CLIENT_CONTROLS   0x13

Definition at line 147 of file winldap.h.

◆ LDAP_OPT_DEREF

#define LDAP_OPT_DEREF   0x02

Definition at line 131 of file winldap.h.

◆ LDAP_OPT_DESC

#define LDAP_OPT_DESC   0x01

Definition at line 130 of file winldap.h.

◆ LDAP_OPT_DNSDOMAIN_NAME

#define LDAP_OPT_DNSDOMAIN_NAME   0x3b

Definition at line 157 of file winldap.h.

◆ LDAP_OPT_ENCRYPT

#define LDAP_OPT_ENCRYPT   0x96

Definition at line 170 of file winldap.h.

◆ LDAP_OPT_ERROR_NUMBER

#define LDAP_OPT_ERROR_NUMBER   0x31

Definition at line 150 of file winldap.h.

◆ LDAP_OPT_ERROR_STRING

#define LDAP_OPT_ERROR_STRING   0x32

Definition at line 151 of file winldap.h.

◆ LDAP_OPT_GETDSNAME_FLAGS

#define LDAP_OPT_GETDSNAME_FLAGS   0x3d

Definition at line 158 of file winldap.h.

◆ LDAP_OPT_HOST_NAME

#define LDAP_OPT_HOST_NAME   0x30

Definition at line 149 of file winldap.h.

◆ LDAP_OPT_HOST_REACHABLE

#define LDAP_OPT_HOST_REACHABLE   0x3e

Definition at line 159 of file winldap.h.

◆ LDAP_OPT_IO_FN_PTRS

#define LDAP_OPT_IO_FN_PTRS   0x0b

Definition at line 140 of file winldap.h.

◆ LDAP_OPT_OFF

#define LDAP_OPT_OFF   ((void*)0)

Definition at line 128 of file winldap.h.

◆ LDAP_OPT_ON

#define LDAP_OPT_ON   ((void*)1)

Definition at line 127 of file winldap.h.

◆ LDAP_OPT_PING_KEEP_ALIVE

#define LDAP_OPT_PING_KEEP_ALIVE   0x36

Definition at line 154 of file winldap.h.

◆ LDAP_OPT_PING_LIMIT

#define LDAP_OPT_PING_LIMIT   0x38

Definition at line 156 of file winldap.h.

◆ LDAP_OPT_PING_WAIT_TIME

#define LDAP_OPT_PING_WAIT_TIME   0x37

Definition at line 155 of file winldap.h.

◆ LDAP_OPT_PROMPT_CREDENTIALS

#define LDAP_OPT_PROMPT_CREDENTIALS   0x3f

Definition at line 160 of file winldap.h.

◆ LDAP_OPT_PROTOCOL_VERSION

#define LDAP_OPT_PROTOCOL_VERSION   0x11

Definition at line 145 of file winldap.h.

◆ LDAP_OPT_REBIND_ARG

#define LDAP_OPT_REBIND_ARG   0x07

Definition at line 136 of file winldap.h.

◆ LDAP_OPT_REBIND_FN

#define LDAP_OPT_REBIND_FN   0x06

Definition at line 135 of file winldap.h.

◆ LDAP_OPT_REF_DEREF_CONN_PER_MSG

#define LDAP_OPT_REF_DEREF_CONN_PER_MSG   0x94

Definition at line 168 of file winldap.h.

◆ LDAP_OPT_REFERRAL_CALLBACK

#define LDAP_OPT_REFERRAL_CALLBACK   0x70

Definition at line 162 of file winldap.h.

◆ LDAP_OPT_REFERRAL_HOP_LIMIT

#define LDAP_OPT_REFERRAL_HOP_LIMIT   0x10

Definition at line 144 of file winldap.h.

◆ LDAP_OPT_REFERRALS

#define LDAP_OPT_REFERRALS   0x08

Definition at line 137 of file winldap.h.

◆ LDAP_OPT_RESTART

#define LDAP_OPT_RESTART   0x09

Definition at line 138 of file winldap.h.

◆ LDAP_OPT_ROOTDSE_CACHE

#define LDAP_OPT_ROOTDSE_CACHE   0x9a

Definition at line 174 of file winldap.h.

◆ LDAP_OPT_SASL_METHOD

#define LDAP_OPT_SASL_METHOD   0x97

Definition at line 171 of file winldap.h.

◆ LDAP_OPT_SECURITY_CONTEXT

#define LDAP_OPT_SECURITY_CONTEXT   0x99

Definition at line 173 of file winldap.h.

◆ LDAP_OPT_SERVER_CERTIFICATE

#define LDAP_OPT_SERVER_CERTIFICATE   0x81

Definition at line 164 of file winldap.h.

◆ LDAP_OPT_SERVER_CONTROLS

#define LDAP_OPT_SERVER_CONTROLS   0x12

Definition at line 146 of file winldap.h.

◆ LDAP_OPT_SERVER_ERROR

#define LDAP_OPT_SERVER_ERROR   0x33

Definition at line 152 of file winldap.h.

◆ LDAP_OPT_SERVER_EXT_ERROR

#define LDAP_OPT_SERVER_EXT_ERROR   0x34

Definition at line 153 of file winldap.h.

◆ LDAP_OPT_SIGN

#define LDAP_OPT_SIGN   0x95

Definition at line 169 of file winldap.h.

◆ LDAP_OPT_SIZELIMIT

#define LDAP_OPT_SIZELIMIT   0x03

Definition at line 132 of file winldap.h.

◆ LDAP_OPT_SSL

#define LDAP_OPT_SSL   0x0a

Definition at line 139 of file winldap.h.

◆ LDAP_OPT_SSL_INFO

#define LDAP_OPT_SSL_INFO   0x93

Definition at line 167 of file winldap.h.

◆ LDAP_OPT_SSPI_FLAGS

#define LDAP_OPT_SSPI_FLAGS   0x92

Definition at line 166 of file winldap.h.

◆ LDAP_OPT_SUCCESS

#define LDAP_OPT_SUCCESS   LDAP_SUCCESS

Definition at line 118 of file winldap.h.

◆ LDAP_OPT_TCP_KEEPALIVE

#define LDAP_OPT_TCP_KEEPALIVE   0x40

Definition at line 161 of file winldap.h.

◆ LDAP_OPT_THREAD_FN_PTRS

#define LDAP_OPT_THREAD_FN_PTRS   0x05

Definition at line 134 of file winldap.h.

◆ LDAP_OPT_TIMELIMIT

#define LDAP_OPT_TIMELIMIT   0x04

Definition at line 133 of file winldap.h.

◆ LDAP_OPT_TLS

#define LDAP_OPT_TLS   LDAP_OPT_SSL

Definition at line 176 of file winldap.h.

◆ LDAP_OPT_TLS_INFO

#define LDAP_OPT_TLS_INFO   LDAP_OPT_SSL_INFO

Definition at line 177 of file winldap.h.

◆ LDAP_OPT_VERSION

#define LDAP_OPT_VERSION   LDAP_OPT_PROTOCOL_VERSION

Definition at line 175 of file winldap.h.

◆ LDAP_OTHER

#define LDAP_OTHER   0x50

Definition at line 100 of file winldap.h.

◆ LDAP_PAGED_RESULT_OID_STRING

#define LDAP_PAGED_RESULT_OID_STRING   "1.2.840.113556.1.4.319"

Definition at line 213 of file winldap.h.

◆ LDAP_PAGED_RESULT_OID_STRING_W

#define LDAP_PAGED_RESULT_OID_STRING_W   L"1.2.840.113556.1.4.319"

Definition at line 214 of file winldap.h.

◆ LDAP_PARAM_ERROR

#define LDAP_PARAM_ERROR   0x59

Definition at line 109 of file winldap.h.

◆ ldap_parse_extended_result

#define ldap_parse_extended_result   ldap_parse_extended_resultA

Definition at line 672 of file winldap.h.

◆ ldap_parse_page_control

#define ldap_parse_page_control   ldap_parse_page_controlA

Definition at line 673 of file winldap.h.

◆ ldap_parse_reference

#define ldap_parse_reference   ldap_parse_referenceA

Definition at line 674 of file winldap.h.

◆ ldap_parse_result

#define ldap_parse_result   ldap_parse_resultA

Definition at line 675 of file winldap.h.

◆ ldap_parse_sort_control

#define ldap_parse_sort_control   ldap_parse_sort_controlA

Definition at line 676 of file winldap.h.

◆ ldap_parse_vlv_control

#define ldap_parse_vlv_control   ldap_parse_vlv_controlA

Definition at line 677 of file winldap.h.

◆ LDAP_PARTIAL_RESULTS

#define LDAP_PARTIAL_RESULTS   LDAP_REFERRAL_V2

Definition at line 122 of file winldap.h.

◆ ldap_perror

#define ldap_perror (   handle,
  message 
)    printf("%s: %s\n", message, handle->ld_error);

Definition at line 367 of file winldap.h.

◆ LDAP_PORT

#define LDAP_PORT   389

Definition at line 123 of file winldap.h.

◆ LDAP_PROTOCOL_ERROR

#define LDAP_PROTOCOL_ERROR   0x02

Definition at line 61 of file winldap.h.

◆ LDAP_REFERRAL

#define LDAP_REFERRAL   0x0a

Definition at line 69 of file winldap.h.

◆ LDAP_REFERRAL_LIMIT_EXCEEDED

#define LDAP_REFERRAL_LIMIT_EXCEEDED   0x61

Definition at line 117 of file winldap.h.

◆ LDAP_REFERRAL_V2

#define LDAP_REFERRAL_V2   0x09

Definition at line 68 of file winldap.h.

◆ ldap_rename

#define ldap_rename   ldap_rename_extA

Definition at line 698 of file winldap.h.

◆ ldap_rename_ext

#define ldap_rename_ext   ldap_rename_extA

Definition at line 700 of file winldap.h.

◆ ldap_rename_ext_s

#define ldap_rename_ext_s   ldap_rename_ext_sA

Definition at line 701 of file winldap.h.

◆ ldap_rename_s

#define ldap_rename_s   ldap_rename_ext_sA

Definition at line 699 of file winldap.h.

◆ LDAP_RES_ADD

#define LDAP_RES_ADD   0x69

Definition at line 199 of file winldap.h.

◆ LDAP_RES_ANY

#define LDAP_RES_ANY   (-1L)

Definition at line 205 of file winldap.h.

◆ LDAP_RES_BIND

#define LDAP_RES_BIND   0x61

Definition at line 195 of file winldap.h.

◆ LDAP_RES_COMPARE

#define LDAP_RES_COMPARE   0x6f

Definition at line 202 of file winldap.h.

◆ LDAP_RES_DELETE

#define LDAP_RES_DELETE   0x6b

Definition at line 200 of file winldap.h.

◆ LDAP_RES_EXTENDED

#define LDAP_RES_EXTENDED   0x78

Definition at line 204 of file winldap.h.

◆ LDAP_RES_MODIFY

#define LDAP_RES_MODIFY   0x67

Definition at line 198 of file winldap.h.

◆ LDAP_RES_MODRDN

#define LDAP_RES_MODRDN   0x6d

Definition at line 201 of file winldap.h.

◆ LDAP_RES_SEARCH_ENTRY

#define LDAP_RES_SEARCH_ENTRY   0x64

Definition at line 196 of file winldap.h.

◆ LDAP_RES_SEARCH_REFERENCE

#define LDAP_RES_SEARCH_REFERENCE   0x73

Definition at line 203 of file winldap.h.

◆ LDAP_RES_SEARCH_RESULT

#define LDAP_RES_SEARCH_RESULT   0x65

Definition at line 197 of file winldap.h.

◆ LDAP_RESULTS_TOO_LARGE

#define LDAP_RESULTS_TOO_LARGE   0x46

Definition at line 98 of file winldap.h.

◆ ldap_sasl_bind

#define ldap_sasl_bind   ldap_sasl_bindA

Definition at line 636 of file winldap.h.

◆ LDAP_SASL_BIND_IN_PROGRESS

#define LDAP_SASL_BIND_IN_PROGRESS   0x0e

Definition at line 73 of file winldap.h.

◆ ldap_sasl_bind_s

#define ldap_sasl_bind_s   ldap_sasl_bind_sA

Definition at line 637 of file winldap.h.

◆ LDAP_SCOPE_BASE

#define LDAP_SCOPE_BASE   0x0000

Definition at line 188 of file winldap.h.

◆ LDAP_SCOPE_DEFAULT

#define LDAP_SCOPE_DEFAULT   -1

Definition at line 187 of file winldap.h.

◆ LDAP_SCOPE_ONELEVEL

#define LDAP_SCOPE_ONELEVEL   0x0001

Definition at line 189 of file winldap.h.

◆ LDAP_SCOPE_SUBTREE

#define LDAP_SCOPE_SUBTREE   0x0002

Definition at line 190 of file winldap.h.

◆ ldap_search

#define ldap_search   ldap_searchA

Definition at line 678 of file winldap.h.

◆ ldap_search_ext

#define ldap_search_ext   ldap_search_extA

Definition at line 681 of file winldap.h.

◆ ldap_search_ext_s

#define ldap_search_ext_s   ldap_search_ext_sA

Definition at line 682 of file winldap.h.

◆ ldap_search_init_page

#define ldap_search_init_page   ldap_search_init_pageA

Definition at line 683 of file winldap.h.

◆ ldap_search_s

#define ldap_search_s   ldap_search_sA

Definition at line 679 of file winldap.h.

◆ ldap_search_st

#define ldap_search_st   ldap_search_stA

Definition at line 680 of file winldap.h.

◆ LDAP_SERVER_DOWN

#define LDAP_SERVER_DOWN   0x51

Definition at line 101 of file winldap.h.

◆ LDAP_SERVER_RESP_SORT_OID

#define LDAP_SERVER_RESP_SORT_OID   "1.2.840.113556.1.4.474"

Definition at line 211 of file winldap.h.

◆ LDAP_SERVER_RESP_SORT_OID_W

#define LDAP_SERVER_RESP_SORT_OID_W   L"1.2.840.113556.1.4.474"

Definition at line 212 of file winldap.h.

◆ LDAP_SERVER_SORT_OID

#define LDAP_SERVER_SORT_OID   "1.2.840.113556.1.4.473"

Definition at line 209 of file winldap.h.

◆ LDAP_SERVER_SORT_OID_W

#define LDAP_SERVER_SORT_OID_W   L"1.2.840.113556.1.4.473"

Definition at line 210 of file winldap.h.

◆ ldap_set_option

#define ldap_set_option   ldap_set_optionA

Definition at line 641 of file winldap.h.

◆ ldap_simple_bind

#define ldap_simple_bind   ldap_simple_bindA

Definition at line 634 of file winldap.h.

◆ ldap_simple_bind_s

#define ldap_simple_bind_s   ldap_simple_bind_sA

Definition at line 635 of file winldap.h.

◆ LDAP_SIZELIMIT_EXCEEDED

#define LDAP_SIZELIMIT_EXCEEDED   0x04

Definition at line 63 of file winldap.h.

◆ LDAP_SSL_GC_PORT

#define LDAP_SSL_GC_PORT   3269

Definition at line 126 of file winldap.h.

◆ LDAP_SSL_PORT

#define LDAP_SSL_PORT   636

Definition at line 124 of file winldap.h.

◆ ldap_sslinit

#define ldap_sslinit   ldap_sslinitA

Definition at line 639 of file winldap.h.

◆ LDAP_START_TLS_OID

#define LDAP_START_TLS_OID   "1.3.6.1.4.1.1466.20037"

Definition at line 219 of file winldap.h.

◆ LDAP_START_TLS_OID_W

#define LDAP_START_TLS_OID_W   L"1.3.6.1.4.1.1466.20037"

Definition at line 220 of file winldap.h.

◆ ldap_start_tls_s

#define ldap_start_tls_s   ldap_start_tls_sA

Definition at line 642 of file winldap.h.

◆ LDAP_STRONG_AUTH_NOT_SUPPORTED

#define LDAP_STRONG_AUTH_NOT_SUPPORTED   0x07

Definition at line 66 of file winldap.h.

◆ LDAP_STRONG_AUTH_REQUIRED

#define LDAP_STRONG_AUTH_REQUIRED   0x08

Definition at line 67 of file winldap.h.

◆ LDAP_SUBSTRING_ANY

#define LDAP_SUBSTRING_ANY   0x81

Definition at line 246 of file winldap.h.

◆ LDAP_SUBSTRING_FINAL

#define LDAP_SUBSTRING_FINAL   0x82

Definition at line 247 of file winldap.h.

◆ LDAP_SUBSTRING_INITIAL

#define LDAP_SUBSTRING_INITIAL   0x80

Definition at line 245 of file winldap.h.

◆ LDAP_SUCCESS

#define LDAP_SUCCESS   0x00

Definition at line 59 of file winldap.h.

◆ LDAP_TIMELIMIT_EXCEEDED

#define LDAP_TIMELIMIT_EXCEEDED   0x03

Definition at line 62 of file winldap.h.

◆ LDAP_TIMEOUT

#define LDAP_TIMEOUT   0x55

Definition at line 105 of file winldap.h.

◆ LDAP_TTL_EXTENDED_OP_OID

#define LDAP_TTL_EXTENDED_OP_OID   "1.3.6.1.4.1.1466.101.119.1"

Definition at line 221 of file winldap.h.

◆ LDAP_TTL_EXTENDED_OP_OID_W

#define LDAP_TTL_EXTENDED_OP_OID_W   L"1.3.6.1.4.1.1466.101.119.1"

Definition at line 222 of file winldap.h.

◆ LDAP_TYPE_OR_VALUE_EXISTS

#define LDAP_TYPE_OR_VALUE_EXISTS   0x14

Definition at line 78 of file winldap.h.

◆ ldap_ufn2dn

#define ldap_ufn2dn   ldap_ufn2dnA

Definition at line 691 of file winldap.h.

◆ LDAP_UNAVAILABLE

#define LDAP_UNAVAILABLE   0x34

Definition at line 89 of file winldap.h.

◆ LDAP_UNAVAILABLE_CRIT_EXTENSION

#define LDAP_UNAVAILABLE_CRIT_EXTENSION   0x0c

Definition at line 71 of file winldap.h.

◆ LDAP_UNDEFINED_TYPE

#define LDAP_UNDEFINED_TYPE   0x11

Definition at line 75 of file winldap.h.

◆ LDAP_UNWILLING_TO_PERFORM

#define LDAP_UNWILLING_TO_PERFORM   0x35

Definition at line 90 of file winldap.h.

◆ LDAP_USER_CANCELLED

#define LDAP_USER_CANCELLED   0x58

Definition at line 108 of file winldap.h.

◆ ldap_value_free

#define ldap_value_free   ldap_value_freeA

Definition at line 689 of file winldap.h.

◆ LDAP_VENDOR_NAME

#define LDAP_VENDOR_NAME   "Microsoft Corporation."

Definition at line 54 of file winldap.h.

◆ LDAP_VENDOR_NAME_W

#define LDAP_VENDOR_NAME_W   L"Microsoft Corporation."

Definition at line 55 of file winldap.h.

◆ LDAP_VENDOR_VERSION

#define LDAP_VENDOR_VERSION   510

Definition at line 56 of file winldap.h.

◆ LDAP_VERSION

#define LDAP_VERSION   LDAP_VERSION2

Definition at line 50 of file winldap.h.

◆ LDAP_VERSION1

#define LDAP_VERSION1   1

Definition at line 47 of file winldap.h.

◆ LDAP_VERSION2

#define LDAP_VERSION2   2

Definition at line 48 of file winldap.h.

◆ LDAP_VERSION3

#define LDAP_VERSION3   3

Definition at line 49 of file winldap.h.

◆ LDAP_VERSION_MAX

#define LDAP_VERSION_MAX   LDAP_VERSION3

Definition at line 53 of file winldap.h.

◆ LDAP_VERSION_MIN

#define LDAP_VERSION_MIN   LDAP_VERSION2

Definition at line 52 of file winldap.h.

◆ LDAPAPIFeatureInfo

#define LDAPAPIFeatureInfo   LDAPAPIFeatureInfoA

Definition at line 628 of file winldap.h.

◆ LDAPAPIInfo

#define LDAPAPIInfo   LDAPAPIInfoA

Definition at line 626 of file winldap.h.

◆ LDAPControl

#define LDAPControl   LDAPControlA

Definition at line 620 of file winldap.h.

◆ LDAPMod

#define LDAPMod   LDAPModA

Definition at line 622 of file winldap.h.

◆ LDAPSortKey

#define LDAPSortKey   LDAPSortKeyA

Definition at line 624 of file winldap.h.

◆ mod_bvalues

#define mod_bvalues   mod_vals.modv_bvals

Definition at line 329 of file winldap.h.

◆ mod_values

#define mod_values   mod_vals.modv_strvals

Definition at line 328 of file winldap.h.

◆ PLDAPAPIFeatureInfo

#define PLDAPAPIFeatureInfo   PLDAPAPIFeatureInfoA

Definition at line 629 of file winldap.h.

◆ PLDAPAPIInfo

#define PLDAPAPIInfo   PLDAPAPIInfoA

Definition at line 627 of file winldap.h.

◆ PLDAPControl

#define PLDAPControl   PLDAPControlA

Definition at line 621 of file winldap.h.

◆ PLDAPMod

#define PLDAPMod   LDAPModA

Definition at line 623 of file winldap.h.

◆ PLDAPSortKey

#define PLDAPSortKey   PLDAPSortKeyA

Definition at line 625 of file winldap.h.

◆ WINLDAPAPI

#define WINLDAPAPI   DECLSPEC_IMPORT

Definition at line 30 of file winldap.h.

Typedef Documentation

◆ BOOLEAN

typedef PLDAP *typedef BOOLEAN(__cdecl NOTIFYOFNEWCONNECTION)(PLDAP

Definition at line 343 of file winldap.h.

◆ LDAP

typedef struct ldap LDAP

◆ LDAP_REFERRAL_CALLBACK

◆ LDAP_TIMEVAL

◆ LDAPAPIFeatureInfoA

◆ LDAPAPIFeatureInfoW

◆ LDAPAPIInfoA

◆ LDAPAPIInfoW

◆ LDAPControlA

◆ LDAPControlW

◆ LDAPMessage

◆ LDAPModA

◆ LDAPModW

◆ LDAPSearch

typedef struct ldapsearch LDAPSearch

Definition at line 331 of file winldap.h.

◆ LDAPSortKeyA

◆ LDAPSortKeyW

◆ LDAPVLVInfo

◆ mod_vals_u_tA

typedef union mod_vals_uA mod_vals_u_tA

◆ mod_vals_u_tW

typedef union mod_vals_uW mod_vals_u_tW

◆ PCHAR

typedef PCHAR

Definition at line 343 of file winldap.h.

◆ PLDAP

typedef PLDAP

Definition at line 343 of file winldap.h.

◆ PLDAP_REFERRAL_CALLBACK

◆ PLDAP_TIMEVAL

◆ PLDAPAPIFeatureInfoA

◆ PLDAPAPIFeatureInfoW

◆ PLDAPAPIInfoA

◆ PLDAPAPIInfoW

◆ PLDAPControlA

◆ PLDAPControlW

◆ PLDAPMessage

◆ PLDAPModA

◆ PLDAPModW

◆ PLDAPSearch

typedef struct ldapsearch * PLDAPSearch

Definition at line 331 of file winldap.h.

◆ PLDAPSortKeyA

◆ PLDAPSortKeyW

◆ PVOID

typedef PLDAP *typedef PVOID

Definition at line 343 of file winldap.h.

◆ PWCHAR

typedef PWCHAR

Definition at line 343 of file winldap.h.

◆ ULONG

typedef PLDAP *typedef ULONG

Definition at line 343 of file winldap.h.

Function Documentation

◆ cldap_openA()

WINLDAPAPI PLDAP cldap_openA ( const  PCHAR,
ULONG  portnumber 
)

Definition at line 223 of file init.c.

224{
225#ifdef HAVE_LDAP
226 WLDAP32_LDAP *ld = NULL;
227 WCHAR *hostnameW = NULL;
228
229 TRACE( "(%s, %d)\n", debugstr_a(hostname), portnumber );
230
231 if (hostname) {
232 hostnameW = strAtoW( hostname );
233 if (!hostnameW) goto exit;
234 }
235
236 ld = cldap_openW( hostnameW, portnumber );
237
238exit:
239 strfreeW( hostnameW );
240 return ld;
241
242#else
243 return NULL;
244#endif
245}
char * hostname
Definition: ftp.c:88
#define NULL
Definition: types.h:112
WLDAP32_LDAP *CDECL cldap_openW(PWCHAR hostname, ULONG portnumber)
Definition: init.c:268
static LPWSTR strAtoW(const char *str)
#define debugstr_a
Definition: kernel32.h:31
#define exit(n)
Definition: config.h:202
#define TRACE(s)
Definition: solgame.cpp:4
static void strfreeW(LPWSTR str)
Definition: wldap32.h:103
__wchar_t WCHAR
Definition: xmlstorage.h:180

◆ cldap_openW()

WINLDAPAPI PLDAP cldap_openW ( const  PWCHAR,
ULONG  portnumber 
)

Definition at line 268 of file init.c.

269{
270#ifdef HAVE_LDAP
271 LDAP *ld = NULL;
272 char *hostnameU = NULL, *url = NULL;
273
274 TRACE( "(%s, %d)\n", debugstr_w(hostname), portnumber );
275
276 if (hostname) {
277 hostnameU = strWtoU( hostname );
278 if (!hostnameU) goto exit;
279 }
280 else {
281 hostnameU = strWtoU( defaulthost );
282 if (!hostnameU) goto exit;
283 }
284
285 url = urlify_hostnames( "cldap://", hostnameU, portnumber );
286 if (!url) goto exit;
287
288 ld = create_context( url );
289
290exit:
291 strfreeU( hostnameU );
292 strfreeU( url );
293 return ld;
294
295#else
296 return NULL;
297#endif
298}
#define debugstr_w
Definition: kernel32.h:32
static const WCHAR url[]
Definition: encode.c:1432
static void strfreeU(char *str)
Definition: wldap32.h:108
static char * strWtoU(LPCWSTR str)
Definition: wldap32.h:74

Referenced by cldap_openA().

◆ ldap_abandon()

WINLDAPAPI ULONG ldap_abandon ( LDAP ,
ULONG   
)

◆ ldap_add_ext_sA()

WINLDAPAPI ULONG ldap_add_ext_sA ( LDAP ld,
const  PCHAR,
LDAPModA attrs[],
PLDAPControlA serverctrls,
PLDAPControlA clientctrls 
)

Definition at line 263 of file add.c.

265{
267#ifdef HAVE_LDAP
268 WCHAR *dnW = NULL;
269 LDAPModW **attrsW = NULL;
270 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
271
273
274 TRACE( "(%p, %s, %p, %p, %p)\n", ld, debugstr_a(dn), attrs,
275 serverctrls, clientctrls );
276
277 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
278
279 if (dn) {
280 dnW = strAtoW( dn );
281 if (!dnW) goto exit;
282 }
283 if (attrs) {
284 attrsW = modarrayAtoW( attrs );
285 if (!attrsW) goto exit;
286 }
287 if (serverctrls) {
288 serverctrlsW = controlarrayAtoW( serverctrls );
289 if (!serverctrlsW) goto exit;
290 }
291 if (clientctrls) {
292 clientctrlsW = controlarrayAtoW( clientctrls );
293 if (!clientctrlsW) goto exit;
294 }
295
296 ret = ldap_add_ext_sW( ld, dnW, attrsW, serverctrlsW, clientctrlsW );
297
298exit:
299 strfreeW( dnW );
300 modarrayfreeW( attrsW );
301 controlarrayfreeW( serverctrlsW );
302 controlarrayfreeW( clientctrlsW );
303
304#endif
305 return ret;
306}
ULONG CDECL ldap_add_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
Definition: add.c:329
uint32_t ULONG
Definition: typedefs.h:59
int ret
@ WLDAP32_LDAP_PARAM_ERROR
@ WLDAP32_LDAP_NOT_SUPPORTED
@ WLDAP32_LDAP_NO_MEMORY

◆ ldap_add_ext_sW()

WINLDAPAPI ULONG ldap_add_ext_sW ( LDAP ld,
const  PWCHAR,
LDAPModW attrs[],
PLDAPControlW serverctrls,
PLDAPControlW clientctrls 
)

Definition at line 329 of file add.c.

331{
333#ifdef HAVE_LDAP
334 char *dnU = NULL;
335 LDAPMod **attrsU = NULL;
336 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
337
339
340 TRACE( "(%p, %s, %p, %p, %p)\n", ld, debugstr_w(dn), attrs,
341 serverctrls, clientctrls );
342
343 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
344
345 if (dn) {
346 dnU = strWtoU( dn );
347 if (!dnU) goto exit;
348 }
349 if (attrs) {
350 attrsU = modarrayWtoU( attrs );
351 if (!attrsU) goto exit;
352 }
353 if (serverctrls) {
354 serverctrlsU = controlarrayWtoU( serverctrls );
355 if (!serverctrlsU) goto exit;
356 }
357 if (clientctrls) {
358 clientctrlsU = controlarrayWtoU( clientctrls );
359 if (!clientctrlsU) goto exit;
360 }
361
362 ret = map_error( ldap_add_ext_s( ld, dn ? dnU : "", attrs ? attrsU : nullattrs,
363 serverctrlsU, clientctrlsU ));
364
365exit:
366 strfreeU( dnU );
367 modarrayfreeU( attrsU );
368 controlarrayfreeU( serverctrlsU );
369 controlarrayfreeU( clientctrlsU );
370
371#endif
372 return ret;
373}
static UINT map_error(DWORD error)
Definition: service.c:35
#define LDAPControl
Definition: winldap.h:620
#define LDAPMod
Definition: winldap.h:622
#define ldap_add_ext_s
Definition: winldap.h:646

Referenced by ldap_add_ext_sA().

◆ ldap_add_extA()

WINLDAPAPI ULONG ldap_add_extA ( LDAP ld,
const  PCHAR,
LDAPModA attrs[],
PLDAPControlA serverctrls,
PLDAPControlA clientctrls,
ULONG message 
)

Definition at line 143 of file add.c.

145{
147#ifdef HAVE_LDAP
148 WCHAR *dnW = NULL;
149 LDAPModW **attrsW = NULL;
150 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
151
153
154 TRACE( "(%p, %s, %p, %p, %p, %p)\n", ld, debugstr_a(dn), attrs,
155 serverctrls, clientctrls, message );
156
157 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
158
159 if (dn) {
160 dnW = strAtoW( dn );
161 if (!dnW) goto exit;
162 }
163 if (attrs) {
164 attrsW = modarrayAtoW( attrs );
165 if (!attrsW) goto exit;
166 }
167 if (serverctrls) {
168 serverctrlsW = controlarrayAtoW( serverctrls );
169 if (!serverctrlsW) goto exit;
170 }
171 if (clientctrls) {
172 clientctrlsW = controlarrayAtoW( clientctrls );
173 if (!clientctrlsW) goto exit;
174 }
175
176 ret = ldap_add_extW( ld, dnW, attrsW, serverctrlsW, clientctrlsW, message );
177
178exit:
179 strfreeW( dnW );
180 modarrayfreeW( attrsW );
181 controlarrayfreeW( serverctrlsW );
182 controlarrayfreeW( clientctrlsW );
183
184#endif
185 return ret;
186}
ULONG CDECL ldap_add_extW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message)
Definition: add.c:211
Definition: tftpd.h:60

◆ ldap_add_extW()

WINLDAPAPI ULONG ldap_add_extW ( LDAP ld,
const  PWCHAR,
LDAPModW attrs[],
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
ULONG message 
)

Definition at line 211 of file add.c.

213{
215#ifdef HAVE_LDAP
216 char *dnU = NULL;
217 LDAPMod **attrsU = NULL;
218 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
219 int dummy;
220
222
223 TRACE( "(%p, %s, %p, %p, %p, %p)\n", ld, debugstr_w(dn), attrs,
224 serverctrls, clientctrls, message );
225
226 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
227
228 if (dn) {
229 dnU = strWtoU( dn );
230 if (!dnU) goto exit;
231 }
232 if (attrs) {
233 attrsU = modarrayWtoU( attrs );
234 if (!attrsU) goto exit;
235 }
236 if (serverctrls) {
237 serverctrlsU = controlarrayWtoU( serverctrls );
238 if (!serverctrlsU) goto exit;
239 }
240 if (clientctrls) {
241 clientctrlsU = controlarrayWtoU( clientctrls );
242 if (!clientctrlsU) goto exit;
243 }
244
245 ret = map_error( ldap_add_ext( ld, dn ? dnU : "", attrs ? attrsU : nullattrs, serverctrlsU,
246 clientctrlsU, message ? (int *)message : &dummy ));
247
248exit:
249 strfreeU( dnU );
250 modarrayfreeU( attrsU );
251 controlarrayfreeU( serverctrlsU );
252 controlarrayfreeU( clientctrlsU );
253
254#endif
255 return ret;
256}
#define ldap_add_ext
Definition: winldap.h:644

Referenced by ldap_add_extA().

◆ ldap_add_sA()

WINLDAPAPI ULONG ldap_add_sA ( LDAP ld,
const  PCHAR,
LDAPModA attrs[] 
)

Definition at line 380 of file add.c.

381{
383#ifdef HAVE_LDAP
384 WCHAR *dnW = NULL;
385 LDAPModW **attrsW = NULL;
386
388
389 TRACE( "(%p, %s, %p)\n", ld, debugstr_a(dn), attrs );
390
391 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
392
393 if (dn) {
394 dnW = strAtoW( dn );
395 if (!dnW) goto exit;
396 }
397 if (attrs) {
398 attrsW = modarrayAtoW( attrs );
399 if (!attrsW) goto exit;
400 }
401
402 ret = ldap_add_sW( ld, dnW, attrsW );
403
404exit:
405 strfreeW( dnW );
406 modarrayfreeW( attrsW );
407
408#endif
409 return ret;
410}
ULONG CDECL ldap_add_sW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[])
Definition: add.c:427

◆ ldap_add_sW()

WINLDAPAPI ULONG ldap_add_sW ( LDAP ld,
const  PWCHAR,
LDAPModW attrs[] 
)

Definition at line 427 of file add.c.

428{
430#ifdef HAVE_LDAP
431 char *dnU = NULL;
432 LDAPMod **attrsU = NULL;
433
435
436 TRACE( "(%p, %s, %p)\n", ld, debugstr_w(dn), attrs );
437
438 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
439
440 if (dn) {
441 dnU = strWtoU( dn );
442 if (!dnU) goto exit;
443 }
444 if (attrs) {
445 attrsU = modarrayWtoU( attrs );
446 if (!attrsU) goto exit;
447 }
448
449 ret = map_error( ldap_add_ext_s( ld, dn ? dnU : "", attrs ? attrsU : nullattrs, NULL, NULL ));
450
451exit:
452 strfreeU( dnU );
453 modarrayfreeU( attrsU );
454
455#endif
456 return ret;
457}

Referenced by ldap_add_sA().

◆ ldap_addA()

WINLDAPAPI ULONG ldap_addA ( LDAP ld,
const  PCHAR,
LDAPModA attrs[] 
)

Definition at line 48 of file add.c.

49{
51#ifdef HAVE_LDAP
52 WCHAR *dnW = NULL;
53 LDAPModW **attrsW = NULL;
54
56
57 TRACE( "(%p, %s, %p)\n", ld, debugstr_a(dn), attrs );
58
59 if (!ld) return ~0u;
60
61 if (dn) {
62 dnW = strAtoW( dn );
63 if (!dnW) goto exit;
64 }
65 if (attrs) {
66 attrsW = modarrayAtoW( attrs );
67 if (!attrsW) goto exit;
68 }
69
70 ret = ldap_addW( ld, dnW, attrsW );
71
72exit:
73 strfreeW( dnW );
74 modarrayfreeW( attrsW );
75
76#endif
77 return ret;
78}
ULONG CDECL ldap_addW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *attrs[])
Definition: add.c:100
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
Definition: glfuncs.h:240

◆ ldap_addW()

WINLDAPAPI ULONG ldap_addW ( LDAP ld,
const  PWCHAR,
LDAPModW attrs[] 
)

Definition at line 100 of file add.c.

101{
103#ifdef HAVE_LDAP
104 char *dnU = NULL;
105 LDAPMod **attrsU = NULL;
106 int msg;
107
109
110 TRACE( "(%p, %s, %p)\n", ld, debugstr_w(dn), attrs );
111
112 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
113
114 if (dn) {
115 dnU = strWtoU( dn );
116 if (!dnU) goto exit;
117 }
118 if (attrs) {
119 attrsU = modarrayWtoU( attrs );
120 if (!attrsU) goto exit;
121 }
122
123 ret = ldap_add_ext( ld, dn ? dnU : "", attrs ? attrsU : nullattrs, NULL, NULL, &msg );
124
125 if (ret == LDAP_SUCCESS)
126 ret = msg;
127 else
128 ret = ~0u;
129
130exit:
131 strfreeU( dnU );
132 modarrayfreeU( attrsU );
133
134#endif
135 return ret;
136}
#define msg(x)
Definition: auth_time.c:54
#define LDAP_SUCCESS
Definition: winldap.h:59

Referenced by ldap_addA().

◆ ldap_bind_sA()

WINLDAPAPI ULONG ldap_bind_sA ( LDAP ld,
const  PCHAR,
const  PCHAR,
ULONG  method 
)

Definition at line 140 of file bind.c.

141{
143#ifdef HAVE_LDAP
144 WCHAR *dnW = NULL, *credW = NULL;
145
147
148 TRACE( "(%p, %s, %p, 0x%08x)\n", ld, debugstr_a(dn), cred, method );
149
150 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
151
152 if (dn) {
153 dnW = strAtoW( dn );
154 if (!dnW) goto exit;
155 }
156 if (cred) {
157 credW = strAtoW( cred );
158 if (!credW) goto exit;
159 }
160
161 ret = ldap_bind_sW( ld, dnW, credW, method );
162
163exit:
164 strfreeW( dnW );
165 strfreeW( credW );
166
167#endif
168 return ret;
169}
ULONG CDECL ldap_bind_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR cred, ULONG method)
Definition: bind.c:186
method
Definition: dragdrop.c:54

◆ ldap_bind_sW()

WINLDAPAPI ULONG ldap_bind_sW ( LDAP ,
const  PWCHAR,
const  PCHAR,
ULONG   
)

◆ ldap_bindA()

WINLDAPAPI ULONG ldap_bindA ( LDAP ld,
const  PCHAR,
const  PCHAR,
ULONG  method 
)

Definition at line 44 of file bind.c.

45{
47#ifdef HAVE_LDAP
48 WCHAR *dnW = NULL, *credW = NULL;
49
51
52 TRACE( "(%p, %s, %p, 0x%08x)\n", ld, debugstr_a(dn), cred, method );
53
54 if (!ld) return ~0u;
55
56 if (dn) {
57 dnW = strAtoW( dn );
58 if (!dnW) goto exit;
59 }
60 if (cred) {
61 credW = strAtoW( cred );
62 if (!credW) goto exit;
63 }
64
65 ret = ldap_bindW( ld, dnW, credW, method );
66
67exit:
68 strfreeW( dnW );
69 strfreeW( credW );
70
71#endif
72 return ret;
73}
ULONG CDECL ldap_bindW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR cred, ULONG method)
Definition: bind.c:93

◆ ldap_bindW()

WINLDAPAPI ULONG ldap_bindW ( LDAP ,
const  PWCHAR,
const  PCHAR,
ULONG   
)

◆ ldap_check_filterA()

WINLDAPAPI ULONG ldap_check_filterA ( LDAP ld,
PCHAR  filter 
)

Definition at line 72 of file misc.c.

73{
74 ULONG ret;
75 WCHAR *filterW = NULL;
76
77 TRACE( "(%p, %s)\n", ld, debugstr_a(filter) );
78
79 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
80
81 if (filter) {
82 filterW = strAtoW( filter );
83 if (!filterW) return WLDAP32_LDAP_NO_MEMORY;
84 }
85
86 ret = ldap_check_filterW( ld, filterW );
87
88 strfreeW( filterW );
89 return ret;
90}
ULONG CDECL ldap_check_filterW(WLDAP32_LDAP *ld, PWCHAR filter)
Definition: misc.c:105
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
Definition: glext.h:7005

◆ ldap_check_filterW()

WINLDAPAPI ULONG ldap_check_filterW ( LDAP ld,
PWCHAR  filter 
)

Definition at line 105 of file misc.c.

106{
107 TRACE( "(%p, %s)\n", ld, debugstr_w(filter) );
108
109 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
110 return WLDAP32_LDAP_SUCCESS; /* FIXME: do some checks */
111}
@ WLDAP32_LDAP_SUCCESS

Referenced by ldap_check_filterA().

◆ ldap_close_extended_op()

WINLDAPAPI ULONG ldap_close_extended_op ( LDAP ld,
ULONG  msgid 
)

Definition at line 56 of file extended.c.

57{
58 TRACE( "(%p, 0x%08x)\n", ld, msgid );
59
60 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
62}

◆ ldap_compare_ext_sA()

WINLDAPAPI ULONG ldap_compare_ext_sA ( LDAP ,
const  PCHAR,
const  PCHAR,
const  PCHAR,
struct berval ,
PLDAPControlA ,
PLDAPControlA  
)

◆ ldap_compare_ext_sW()

WINLDAPAPI ULONG ldap_compare_ext_sW ( LDAP ,
const  PWCHAR,
const  PWCHAR,
const  PWCHAR,
struct berval ,
PLDAPControlW ,
PLDAPControlW  
)

◆ ldap_compare_extA()

WINLDAPAPI ULONG ldap_compare_extA ( LDAP ,
const  PCHAR,
const  PCHAR,
PCHAR  ,
struct berval ,
PLDAPControlA ,
PLDAPControlA ,
ULONG  
)

◆ ldap_compare_extW()

WINLDAPAPI ULONG ldap_compare_extW ( LDAP ,
const  PWCHAR,
const  PWCHAR,
PWCHAR  ,
struct berval ,
PLDAPControlW ,
PLDAPControlW ,
ULONG  
)

◆ ldap_compare_sA()

WINLDAPAPI ULONG ldap_compare_sA ( LDAP ld,
const  PCHAR,
const  PCHAR,
PCHAR  value 
)

Definition at line 425 of file compare.c.

426{
428#ifdef HAVE_LDAP
429 WCHAR *dnW = NULL, *attrW = NULL, *valueW = NULL;
430
432
433 TRACE( "(%p, %s, %s, %s)\n", ld, debugstr_a(dn), debugstr_a(attr),
434 debugstr_a(value) );
435
436 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
437
438 if (dn) {
439 dnW = strAtoW( dn );
440 if (!dnW) goto exit;
441 }
442 if (attr) {
443 attrW = strAtoW( attr );
444 if (!attrW) goto exit;
445 }
446 if (value) {
447 valueW = strAtoW( value );
448 if (!valueW) goto exit;
449 }
450
451 ret = ldap_compare_sW( ld, dnW, attrW, valueW );
452
453exit:
454 strfreeW( dnW );
455 strfreeW( attrW );
456 strfreeW( valueW );
457
458#endif
459 return ret;
460}
ULONG CDECL ldap_compare_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value)
Definition: compare.c:477
static const WCHAR valueW[]
Definition: object.c:48
Definition: cookie.c:202
Definition: pdh_main.c:94

◆ ldap_compare_sW()

WINLDAPAPI ULONG ldap_compare_sW ( LDAP ld,
const  PWCHAR,
const  PWCHAR,
PWCHAR  value 
)

Definition at line 477 of file compare.c.

478{
480#ifdef HAVE_LDAP
481 char *dnU = NULL, *attrU = NULL, *valueU = NULL;
482 struct berval val = { 0, NULL };
483
485
486 TRACE( "(%p, %s, %s, %s)\n", ld, debugstr_w(dn), debugstr_w(attr),
487 debugstr_w(value) );
488
489 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
490
491 if (dn) {
492 dnU = strWtoU( dn );
493 if (!dnU) goto exit;
494 }
495 if (attr) {
496 attrU = strWtoU( attr );
497 if (!attrU) goto exit;
498 }
499 if (value) {
500 valueU = strWtoU( value );
501 if (!valueU) goto exit;
502
503 val.bv_len = strlen( valueU );
504 val.bv_val = valueU;
505 }
506
507 ret = map_error( ldap_compare_ext_s( ld, dn ? dnU : "", attr ? attrU : "", &val, NULL, NULL ));
508
509exit:
510 strfreeU( dnU );
511 strfreeU( attrU );
512 strfreeU( valueU );
513
514#endif
515 return ret;
516}
ACPI_SIZE strlen(const char *String)
Definition: utclib.c:269
GLuint GLfloat * val
Definition: glext.h:7180
Definition: winber.h:32
#define ldap_compare_ext_s
Definition: winldap.h:650

Referenced by ldap_compare_sA().

◆ ldap_compareA()

WINLDAPAPI ULONG ldap_compareA ( LDAP ld,
const  PCHAR,
const  PCHAR,
PCHAR  value 
)

Definition at line 44 of file compare.c.

45{
47#ifdef HAVE_LDAP
48 WCHAR *dnW = NULL, *attrW = NULL, *valueW = NULL;
49
50 ret = ~0u;
51
52 TRACE( "(%p, %s, %s, %s)\n", ld, debugstr_a(dn), debugstr_a(attr),
54
55 if (!ld || !attr) return ~0u;
56
57 if (dn) {
58 dnW = strAtoW( dn );
59 if (!dnW) goto exit;
60 }
61
62 attrW = strAtoW( attr );
63 if (!attrW) goto exit;
64
65 if (value) {
66 valueW = strAtoW( value );
67 if (!valueW) goto exit;
68 }
69
70 ret = ldap_compareW( ld, dnW, attrW, valueW );
71
72exit:
73 strfreeW( dnW );
74 strfreeW( attrW );
76
77#endif
78 return ret;
79}
ULONG CDECL ldap_compareW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR attr, PWCHAR value)
Definition: compare.c:96

◆ ldap_compareW()

WINLDAPAPI ULONG ldap_compareW ( LDAP ld,
const  PWCHAR,
const  PWCHAR,
PWCHAR  value 
)

Definition at line 96 of file compare.c.

97{
99#ifdef HAVE_LDAP
100 char *dnU = NULL, *attrU = NULL, *valueU = NULL;
101 struct berval val = { 0, NULL };
102 int msg;
103
104 ret = ~0u;
105
106 TRACE( "(%p, %s, %s, %s)\n", ld, debugstr_w(dn), debugstr_w(attr),
107 debugstr_w(value) );
108
109 if (!ld || !attr) return ~0u;
110
111 if (dn) {
112 dnU = strWtoU( dn );
113 if (!dnU) goto exit;
114 }
115
116 attrU = strWtoU( attr );
117 if (!attrU) goto exit;
118
119 if (value) {
120 valueU = strWtoU( value );
121 if (!valueU) goto exit;
122
123 val.bv_len = strlen( valueU );
124 val.bv_val = valueU;
125 }
126
127 ret = ldap_compare_ext( ld, dn ? dnU : "", attrU, &val, NULL, NULL, &msg );
128
129 if (ret == LDAP_SUCCESS)
130 ret = msg;
131 else
132 ret = ~0u;
133
134exit:
135 strfreeU( dnU );
136 strfreeU( attrU );
137 strfreeU( valueU );
138
139#endif
140 return ret;
141}
#define ldap_compare_ext
Definition: winldap.h:648

Referenced by ldap_compareA().

◆ ldap_conn_from_msg()

WINLDAPAPI LDAP ldap_conn_from_msg ( LDAP ld,
LDAPMessage res 
)

Definition at line 135 of file misc.c.

136{
137 TRACE( "(%p, %p)\n", ld, res );
138
139 if (!ld || !res) return NULL;
140 return ld; /* FIXME: not always correct */
141}
GLuint res
Definition: glext.h:9613

◆ ldap_connect()

WINLDAPAPI ULONG ldap_connect ( LDAP ld,
struct l_timeval timeout 
)

Definition at line 318 of file init.c.

319{
320 TRACE( "(%p, %p)\n", ld, timeout );
321
322 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
323 return WLDAP32_LDAP_SUCCESS; /* FIXME: do something, e.g. ping the host */
324}
Definition: dhcpd.h:245

◆ ldap_control_freeA()

WINLDAPAPI ULONG ldap_control_freeA ( LDAPControlA control)

Definition at line 44 of file control.c.

45{
47#ifdef HAVE_LDAP
48
49 TRACE( "(%p)\n", control );
50 controlfreeA( control );
51
52#endif
53 return ret;
54}

Referenced by ldap_encode_sort_controlA(), and test_ldap_parse_sort_control().

◆ ldap_control_freeW()

WINLDAPAPI ULONG ldap_control_freeW ( LDAPControlW control)

Definition at line 67 of file control.c.

68{
70#ifdef HAVE_LDAP
71
72 TRACE( "(%p)\n", control );
73 controlfreeW( control );
74
75#endif
76 return ret;
77}

Referenced by ldap_create_page_controlA(), ldap_create_sort_controlA(), ldap_create_vlv_controlA(), and ldap_encode_sort_controlW().

◆ ldap_controls_freeA()

WINLDAPAPI ULONG ldap_controls_freeA ( LDAPControlA **  controls)

Definition at line 84 of file control.c.

85{
87#ifdef HAVE_LDAP
88
89 TRACE( "(%p)\n", controls );
90 controlarrayfreeA( controls );
91
92#endif
93 return ret;
94}

Referenced by ldap_free_controlsA(), and test_ldap_parse_sort_control().

◆ ldap_controls_freeW()

WINLDAPAPI ULONG ldap_controls_freeW ( LDAPControlW **  controls)

Definition at line 107 of file control.c.

108{
110#ifdef HAVE_LDAP
111
112 TRACE( "(%p)\n", controls );
113 controlarrayfreeW( controls );
114
115#endif
116 return ret;
117}

Referenced by ldap_free_controlsW(), and ldap_parse_resultA().

◆ ldap_count_entries()

WINLDAPAPI ULONG ldap_count_entries ( LDAP ,
LDAPMessage  
)

◆ ldap_count_references()

WINLDAPAPI ULONG ldap_count_references ( LDAP ,
LDAPMessage  
)

◆ ldap_count_values_len()

WINLDAPAPI ULONG ldap_count_values_len ( struct berval **  )

◆ ldap_count_valuesA()

WINLDAPAPI ULONG ldap_count_valuesA ( PCHAR vals)

Definition at line 72 of file value.c.

73{
75#ifdef HAVE_LDAP
76 WCHAR **valsW = NULL;
77
78 TRACE( "(%p)\n", vals );
79
80 if (!vals) return 0;
81
82 valsW = strarrayAtoW( vals );
83 if (!valsW) return WLDAP32_LDAP_NO_MEMORY;
84
85 ret = ldap_count_valuesW( valsW );
86 strarrayfreeW( valsW );
87
88#endif
89 return ret;
90}
ULONG CDECL ldap_count_valuesW(PWCHAR *vals)
Definition: value.c:108
static void strarrayfreeW(LPWSTR *strarray)
Definition: wldap32.h:224
static LPWSTR * strarrayAtoW(LPSTR *strarray)
Definition: wldap32.h:134

◆ ldap_count_valuesW()

WINLDAPAPI ULONG ldap_count_valuesW ( PWCHAR vals)

Definition at line 108 of file value.c.

109{
111#ifdef HAVE_LDAP
112 WCHAR **p = vals;
113
114 TRACE( "(%p)\n", vals );
115
116 if (!vals) return 0;
117
118 ret = 0;
119 while (*p++) ret++;
120
121#endif
122 return ret;
123}
GLfloat GLfloat p
Definition: glext.h:8902

Referenced by ldap_count_valuesA().

◆ ldap_create_page_controlA()

WINLDAPAPI ULONG ldap_create_page_controlA ( PLDAP  ,
ULONG  ,
struct berval ,
UCHAR  ,
PLDAPControlA  
)

◆ ldap_create_page_controlW()

WINLDAPAPI ULONG ldap_create_page_controlW ( PLDAP  ,
ULONG  ,
struct berval ,
UCHAR  ,
PLDAPControlW  
)

◆ ldap_create_sort_controlA()

WINLDAPAPI ULONG ldap_create_sort_controlA ( PLDAP  ,
PLDAPSortKeyA ,
UCHAR  ,
PLDAPControlA  
)

◆ ldap_create_sort_controlW()

WINLDAPAPI ULONG ldap_create_sort_controlW ( PLDAP  ,
PLDAPSortKeyW ,
UCHAR  ,
PLDAPControlW  
)

◆ ldap_create_vlv_controlA()

WINLDAPAPI INT ldap_create_vlv_controlA ( LDAP ,
LDAPVLVInfo ,
UCHAR  ,
LDAPControlA **   
)

◆ ldap_create_vlv_controlW()

WINLDAPAPI INT ldap_create_vlv_controlW ( LDAP ,
LDAPVLVInfo ,
UCHAR  ,
LDAPControlW **   
)

◆ ldap_delete_ext_sA()

WINLDAPAPI ULONG ldap_delete_ext_sA ( LDAP ld,
const  PCHAR,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls 
)

Definition at line 224 of file delete.c.

226{
228#ifdef HAVE_LDAP
229 WCHAR *dnW = NULL;
230 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
231
232 TRACE( "(%p, %s, %p, %p)\n", ld, debugstr_a(dn), serverctrls,
233 clientctrls );
234
235 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
236
237 if (dn) {
238 dnW = strAtoW( dn );
239 if (!dnW) goto exit;
240 }
241 if (serverctrls) {
242 serverctrlsW = controlarrayAtoW( serverctrls );
243 if (!serverctrlsW) goto exit;
244 }
245 if (clientctrls) {
246 clientctrlsW = controlarrayAtoW( clientctrls );
247 if (!clientctrlsW) goto exit;
248 }
249
250 ret = ldap_delete_ext_sW( ld, dnW, serverctrlsW, clientctrlsW );
251
252exit:
253 strfreeW( dnW );
254 controlarrayfreeW( serverctrlsW );
255 controlarrayfreeW( clientctrlsW );
256
257#endif
258 return ret;
259}
ULONG CDECL ldap_delete_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
Definition: delete.c:280

◆ ldap_delete_ext_sW()

WINLDAPAPI ULONG ldap_delete_ext_sW ( LDAP ld,
const  PWCHAR,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls 
)

Definition at line 280 of file delete.c.

282{
284#ifdef HAVE_LDAP
285 char *dnU = NULL;
286 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
287
288 TRACE( "(%p, %s, %p, %p)\n", ld, debugstr_w(dn), serverctrls,
289 clientctrls );
290
291 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
292
293 if (dn) {
294 dnU = strWtoU( dn );
295 if (!dnU) goto exit;
296 }
297 if (serverctrls) {
298 serverctrlsU = controlarrayWtoU( serverctrls );
299 if (!serverctrlsU) goto exit;
300 }
301 if (clientctrls) {
302 clientctrlsU = controlarrayWtoU( clientctrls );
303 if (!clientctrlsU) goto exit;
304 }
305
306 ret = map_error( ldap_delete_ext_s( ld, dn ? dnU : "", serverctrlsU, clientctrlsU ));
307
308exit:
309 strfreeU( dnU );
310 controlarrayfreeU( serverctrlsU );
311 controlarrayfreeU( clientctrlsU );
312
313#endif
314 return ret;
315}
#define ldap_delete_ext_s
Definition: winldap.h:654

Referenced by ldap_delete_ext_sA().

◆ ldap_delete_extA()

WINLDAPAPI ULONG ldap_delete_extA ( LDAP ld,
const  PCHAR,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls,
ULONG message 
)

Definition at line 118 of file delete.c.

120{
122#ifdef HAVE_LDAP
123 WCHAR *dnW = NULL;
124 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
125
126 TRACE( "(%p, %s, %p, %p, %p)\n", ld, debugstr_a(dn), serverctrls,
127 clientctrls, message );
128
130
131 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
132
133 if (dn) {
134 dnW = strAtoW( dn );
135 if (!dnW) goto exit;
136 }
137 if (serverctrls) {
138 serverctrlsW = controlarrayAtoW( serverctrls );
139 if (!serverctrlsW) goto exit;
140 }
141 if (clientctrls) {
142 clientctrlsW = controlarrayAtoW( clientctrls );
143 if (!clientctrlsW) goto exit;
144 }
145
146 ret = ldap_delete_extW( ld, dnW, serverctrlsW, clientctrlsW, message );
147
148exit:
149 strfreeW( dnW );
150 controlarrayfreeW( serverctrlsW );
151 controlarrayfreeW( clientctrlsW );
152
153#endif
154 return ret;
155}
ULONG CDECL ldap_delete_extW(WLDAP32_LDAP *ld, PWCHAR dn, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message)
Definition: delete.c:178

◆ ldap_delete_extW()

WINLDAPAPI ULONG ldap_delete_extW ( LDAP ld,
const  PWCHAR,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
ULONG message 
)

Definition at line 178 of file delete.c.

180{
182#ifdef HAVE_LDAP
183 char *dnU = NULL;
184 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
185 int dummy;
186
187 TRACE( "(%p, %s, %p, %p, %p)\n", ld, debugstr_w(dn), serverctrls,
188 clientctrls, message );
189
191
192 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
193
194 if (dn) {
195 dnU = strWtoU( dn );
196 if (!dnU) goto exit;
197 }
198 if (serverctrls) {
199 serverctrlsU = controlarrayWtoU( serverctrls );
200 if (!serverctrlsU) goto exit;
201 }
202 if (clientctrls) {
203 clientctrlsU = controlarrayWtoU( clientctrls );
204 if (!clientctrlsU) goto exit;
205 }
206
207 ret = map_error( ldap_delete_ext( ld, dn ? dnU : "", serverctrlsU, clientctrlsU,
208 message ? (int *)message : &dummy ));
209
210exit:
211 strfreeU( dnU );
212 controlarrayfreeU( serverctrlsU );
213 controlarrayfreeU( clientctrlsU );
214
215#endif
216 return ret;
217}
#define ldap_delete_ext
Definition: winldap.h:652

Referenced by ldap_delete_extA().

◆ ldap_delete_sA()

WINLDAPAPI ULONG ldap_delete_sA ( LDAP ld,
const  PCHAR 
)

Definition at line 322 of file delete.c.

323{
325#ifdef HAVE_LDAP
326 WCHAR *dnW = NULL;
327
328 TRACE( "(%p, %s)\n", ld, debugstr_a(dn) );
329
330 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
331
332 if (dn) {
333 dnW = strAtoW( dn );
334 if (!dnW) return WLDAP32_LDAP_NO_MEMORY;
335 }
336
337 ret = ldap_delete_sW( ld, dnW );
338 strfreeW( dnW );
339
340#endif
341 return ret;
342}
ULONG CDECL ldap_delete_sW(WLDAP32_LDAP *ld, PWCHAR dn)
Definition: delete.c:357

◆ ldap_delete_sW()

WINLDAPAPI ULONG ldap_delete_sW ( LDAP ld,
const  PWCHAR 
)

Definition at line 357 of file delete.c.

358{
360#ifdef HAVE_LDAP
361 char *dnU = NULL;
362
363 TRACE( "(%p, %s)\n", ld, debugstr_w(dn) );
364
365 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
366
367 if (dn) {
368 dnU = strWtoU( dn );
369 if (!dnU) return WLDAP32_LDAP_NO_MEMORY;
370 }
371
372 ret = map_error( ldap_delete_ext_s( ld, dn ? dnU : "", NULL, NULL ));
373 strfreeU( dnU );
374
375#endif
376 return ret;
377}

Referenced by ldap_delete_sA().

◆ ldap_deleteA()

WINLDAPAPI ULONG ldap_deleteA ( LDAP ld,
const  PCHAR 
)

Definition at line 44 of file delete.c.

45{
47#ifdef HAVE_LDAP
48 WCHAR *dnW = NULL;
49
50 TRACE( "(%p, %s)\n", ld, debugstr_a(dn) );
51
52 if (!ld) return ~0u;
53
54 if (dn) {
55 dnW = strAtoW( dn );
56 if (!dnW) return WLDAP32_LDAP_NO_MEMORY;
57 }
58
59 ret = ldap_deleteW( ld, dnW );
60 strfreeW( dnW );
61
62#endif
63 return ret;
64}
ULONG CDECL ldap_deleteW(WLDAP32_LDAP *ld, PWCHAR dn)
Definition: delete.c:84

◆ ldap_deleteW()

WINLDAPAPI ULONG ldap_deleteW ( LDAP ld,
const  PWCHAR 
)

Definition at line 84 of file delete.c.

85{
87#ifdef HAVE_LDAP
88 char *dnU = NULL;
89 int msg;
90
91 TRACE( "(%p, %s)\n", ld, debugstr_w(dn) );
92
93 if (!ld) return ~0u;
94
95 if (dn) {
96 dnU = strWtoU( dn );
97 if (!dnU) return WLDAP32_LDAP_NO_MEMORY;
98 }
99
100 ret = ldap_delete_ext( ld, dn ? dnU : "", NULL, NULL, &msg );
101
102 if (ret == LDAP_SUCCESS)
103 ret = msg;
104 else
105 ret = ~0u;
106
107 strfreeU( dnU );
108
109#endif
110 return ret;
111}

Referenced by ldap_deleteA().

◆ ldap_dn2ufnA()

WINLDAPAPI PCHAR ldap_dn2ufnA ( PCHAR  dn)

Definition at line 44 of file dn.c.

45{
46 PCHAR ret = NULL;
47#ifdef HAVE_LDAP
48 WCHAR *dnW, *retW;
49
50 TRACE( "(%s)\n", debugstr_a(dn) );
51
52 dnW = strAtoW( dn );
53 if (!dnW) return NULL;
54
55 retW = ldap_dn2ufnW( dnW );
56 ret = strWtoA( retW );
57
58 strfreeW( dnW );
59 ldap_memfreeW( retW );
60
61#endif
62 return ret;
63}
void CDECL ldap_memfreeW(PWCHAR block)
Definition: misc.c:421
PWCHAR CDECL ldap_dn2ufnW(PWCHAR dn)
Definition: dn.c:80
char * PCHAR
Definition: typedefs.h:51
static LPSTR strWtoA(LPCWSTR str)
Definition: wldap32.h:62

◆ ldap_dn2ufnW()

WINLDAPAPI PWCHAR ldap_dn2ufnW ( PWCHAR  dn)

Definition at line 80 of file dn.c.

81{
82 PWCHAR ret = NULL;
83#ifdef HAVE_LDAP
84 char *dnU, *retU;
85
86 TRACE( "(%s)\n", debugstr_w(dn) );
87
88 dnU = strWtoU( dn );
89 if (!dnU) return NULL;
90
91 retU = ldap_dn2ufn( dnU );
92 ret = strUtoW( retU );
93
94 strfreeU( dnU );
95 ldap_memfree( retU );
96
97#endif
98 return ret;
99}
uint16_t * PWCHAR
Definition: typedefs.h:56
#define ldap_memfree
Definition: winldap.h:688
#define ldap_dn2ufn
Definition: winldap.h:690
static LPWSTR strUtoW(char *str)
Definition: wldap32.h:86

Referenced by ldap_dn2ufnA().

◆ ldap_encode_sort_controlA()

WINLDAPAPI ULONG ldap_encode_sort_controlA ( PLDAP  ,
PLDAPSortKeyA ,
PLDAPControlA  ,
BOOLEAN   
)

◆ ldap_encode_sort_controlW()

WINLDAPAPI ULONG ldap_encode_sort_controlW ( PLDAP  ,
PLDAPSortKeyW ,
PLDAPControlW  ,
BOOLEAN   
)

◆ ldap_err2stringA()

WINLDAPAPI PCHAR ldap_err2stringA ( ULONG  err)

Definition at line 71 of file error.c.

72{
73 static char buf[256] = "";
74
75 TRACE( "(0x%08x)\n", err );
76
78 LoadStringA( hwldap32, err, buf, 256 );
79 else
81
82 return buf;
83}
HINSTANCE hwldap32
Definition: main.c:29
GLenum GLuint GLenum GLsizei const GLchar * buf
Definition: glext.h:7751
#define err(...)
@ WLDAP32_LDAP_LOCAL_ERROR
@ WLDAP32_LDAP_REFERRAL_LIMIT_EXCEEDED
int WINAPI LoadStringA(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPSTR lpBuffer, _In_ int cchBufferMax)

Referenced by idmap_query_attrs(), and nfs41_idmap_create().

◆ ldap_err2stringW()

WINLDAPAPI PWCHAR ldap_err2stringW ( ULONG  err)

Definition at line 101 of file error.c.

102{
103 static WCHAR buf[256] = { 0 };
104
105 TRACE( "(0x%08x)\n", err );
106
108 LoadStringW( hwldap32, err, buf, 256 );
109 else
111
112 return buf;
113}
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)

◆ ldap_escape_filter_elementA()

WINLDAPAPI ULONG ldap_escape_filter_elementA ( PCHAR  src,
ULONG  srclen,
PCHAR  dst,
ULONG  dstlen 
)

Definition at line 239 of file misc.c.

240{
241 ULONG len;
242
243 TRACE( "(%p, 0x%08x, %p, 0x%08x)\n", src, srclen, dst, dstlen );
244
246 if (!dst) return len;
247
248 if (!src || dstlen < len)
250 else
251 {
254 }
255}
static ULONG get_escape_size(PCHAR src, ULONG srclen)
Definition: misc.c:197
static void escape_filter_element(PCHAR src, ULONG srclen, PCHAR dst)
Definition: misc.c:216
GLenum src
Definition: glext.h:6340
GLenum GLenum dst
Definition: glext.h:6340
GLenum GLsizei len
Definition: glext.h:6722
static DWORD LPDWORD LPCSTR DWORD srclen
Definition: directory.c:52
static DWORD dstlen
Definition: directory.c:51

◆ ldap_escape_filter_elementW()

WINLDAPAPI ULONG ldap_escape_filter_elementW ( PWCHAR  ,
ULONG  ,
PWCHAR  ,
ULONG   
)

◆ ldap_explode_dnA()

WINLDAPAPI PCHAR ldap_explode_dnA ( PCHAR  dn,
ULONG  notypes 
)

Definition at line 106 of file dn.c.

107{
108 PCHAR *ret = NULL;
109#ifdef HAVE_LDAP
110 WCHAR *dnW, **retW;
111
112 TRACE( "(%s, 0x%08x)\n", debugstr_a(dn), notypes );
113
114 dnW = strAtoW( dn );
115 if (!dnW) return NULL;
116
117 retW = ldap_explode_dnW( dnW, notypes );
118 ret = strarrayWtoA( retW );
119
120 strfreeW( dnW );
121 ldap_value_freeW( retW );
122
123#endif
124 return ret;
125}
PWCHAR *CDECL ldap_explode_dnW(PWCHAR dn, ULONG notypes)
Definition: dn.c:144
ULONG CDECL ldap_value_freeW(PWCHAR *vals)
Definition: value.c:364
static LPSTR * strarrayWtoA(LPWSTR *strarray)
Definition: wldap32.h:154

◆ ldap_explode_dnW()

WINLDAPAPI PWCHAR ldap_explode_dnW ( PWCHAR  dn,
ULONG  notypes 
)

Definition at line 144 of file dn.c.

145{
146 PWCHAR *ret = NULL;
147#ifdef HAVE_LDAP
148 char *dnU, **retU;
149
150 TRACE( "(%s, 0x%08x)\n", debugstr_w(dn), notypes );
151
152 dnU = strWtoU( dn );
153 if (!dnU) return NULL;
154
155 retU = ldap_explode_dn( dnU, notypes );
156 ret = strarrayUtoW( retU );
157
158 strfreeU( dnU );
159 ldap_memvfree( (void **)retU );
160
161#endif
162 return ret;
163}
#define ldap_explode_dn
Definition: winldap.h:692
static LPWSTR * strarrayUtoW(char **strarray)
Definition: wldap32.h:194

Referenced by ldap_explode_dnA().

◆ ldap_extended_operation_sA()

WINLDAPAPI ULONG ldap_extended_operation_sA ( LDAP ,
const  PCHAR,
const struct berval ,
PLDAPControlA ,
PLDAPControlA ,
PCHAR ,
struct berval **   
)

◆ ldap_extended_operation_sW()

WINLDAPAPI ULONG ldap_extended_operation_sW ( LDAP ,
const  PWCHAR,
const struct berval ,
PLDAPControlW ,
PLDAPControlW ,
PWCHAR ,
struct berval **   
)

◆ ldap_extended_operationA()

WINLDAPAPI ULONG ldap_extended_operationA ( LDAP ,
const  PCHAR,
const struct berval ,
PLDAPControlA ,
PLDAPControlA ,
ULONG  
)

◆ ldap_extended_operationW()

WINLDAPAPI ULONG ldap_extended_operationW ( LDAP ,
const  PWCHAR,
const struct berval ,
PLDAPControlW ,
PLDAPControlW ,
ULONG  
)

◆ ldap_first_attributeA()

WINLDAPAPI PCHAR ldap_first_attributeA ( LDAP ld,
LDAPMessage entry,
BerElement **  ptr 
)

Definition at line 290 of file misc.c.

292{
293 PCHAR ret = NULL;
294#ifdef HAVE_LDAP
295 WCHAR *retW;
296
297 TRACE( "(%p, %p, %p)\n", ld, entry, ptr );
298
299 if (!ld || !entry) return NULL;
300 retW = ldap_first_attributeW( ld, entry, ptr );
301
302 ret = strWtoA( retW );
303 ldap_memfreeW( retW );
304
305#endif
306 return ret;
307}
PWCHAR CDECL ldap_first_attributeW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement **ptr)
Definition: misc.c:326
uint32_t entry
Definition: isohybrid.c:63
static PVOID ptr
Definition: dispmode.c:27

◆ ldap_first_attributeW()

WINLDAPAPI PWCHAR ldap_first_attributeW ( LDAP ld,
LDAPMessage entry,
BerElement **  ptr 
)

Definition at line 326 of file misc.c.

328{
329 PWCHAR ret = NULL;
330#ifdef HAVE_LDAP
331 char *retU;
332
333 TRACE( "(%p, %p, %p)\n", ld, entry, ptr );
334
335 if (!ld || !entry) return NULL;
336 retU = ldap_first_attribute( ld, entry, ptr );
337
338 ret = strUtoW( retU );
339 ldap_memfree( retU );
340
341#endif
342 return ret;
343}
#define ldap_first_attribute
Definition: winldap.h:668

Referenced by ldap_first_attributeA().

◆ ldap_first_entry()

WINLDAPAPI PLDAPMessage ldap_first_entry ( LDAP ,
LDAPMessage  
)

◆ ldap_first_reference()

WINLDAPAPI PLDAPMessage ldap_first_reference ( LDAP ,
LDAPMessage  
)

◆ ldap_free_controlsA()

WINLDAPAPI ULONG ldap_free_controlsA ( LDAPControlA **  controls)

Definition at line 352 of file control.c.

353{
354 return ldap_controls_freeA( controls );
355}
ULONG CDECL ldap_controls_freeA(LDAPControlA **controls)
Definition: control.c:84

◆ ldap_free_controlsW()

WINLDAPAPI ULONG ldap_free_controlsW ( LDAPControlW **  controls)

Definition at line 371 of file control.c.

372{
373 return ldap_controls_freeW( controls );
374}
ULONG CDECL ldap_controls_freeW(LDAPControlW **controls)
Definition: control.c:107

◆ ldap_get_dnA()

WINLDAPAPI PCHAR ldap_get_dnA ( LDAP ld,
LDAPMessage entry 
)

Definition at line 170 of file dn.c.

171{
172 PCHAR ret = NULL;
173#ifdef HAVE_LDAP
174 PWCHAR retW;
175
176 TRACE( "(%p, %p)\n", ld, entry );
177
178 if (!ld || !entry) return NULL;
179
180 retW = ldap_get_dnW( ld, entry );
181
182 ret = strWtoA( retW );
183 ldap_memfreeW( retW );
184
185#endif
186 return ret;
187}
PWCHAR CDECL ldap_get_dnW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry)
Definition: dn.c:205

◆ ldap_get_dnW()

WINLDAPAPI PWCHAR ldap_get_dnW ( LDAP ld,
LDAPMessage entry 
)

Definition at line 205 of file dn.c.

206{
207 PWCHAR ret = NULL;
208#ifdef HAVE_LDAP
209 char *retU;
210
211 TRACE( "(%p, %p)\n", ld, entry );
212
213 if (!ld || !entry) return NULL;
214
215 retU = ldap_get_dn( ld, entry );
216
217 ret = strUtoW( retU );
218 ldap_memfree( retU );
219
220#endif
221 return ret;
222}
#define ldap_get_dn
Definition: winldap.h:693

Referenced by ldap_get_dnA().

◆ ldap_get_next_page()

WINLDAPAPI ULONG ldap_get_next_page ( PLDAP  ,
PLDAPSearch  ,
ULONG  ,
ULONG  
)

◆ ldap_get_next_page_s()

WINLDAPAPI ULONG ldap_get_next_page_s ( PLDAP  ,
PLDAPSearch  ,
struct l_timeval ,
ULONG  ,
ULONG ,
LDAPMessage **   
)

◆ ldap_get_optionA()

WINLDAPAPI ULONG ldap_get_optionA ( LDAP ld,
int  option,
void value 
)

Definition at line 44 of file option.c.

45{
47#ifdef HAVE_LDAP
48
49 TRACE( "(%p, 0x%08x, %p)\n", ld, option, value );
50
51 if (!ld || !value) return WLDAP32_LDAP_PARAM_ERROR;
52
53 switch (option)
54 {
56 {
57 LDAPAPIFeatureInfoW featureW;
58 LDAPAPIFeatureInfoA *featureA = value;
59
60 if (!featureA->ldapaif_name) return WLDAP32_LDAP_PARAM_ERROR;
61
62 featureW.ldapaif_info_version = featureA->ldapaif_info_version;
63 featureW.ldapaif_name = strAtoW( featureA->ldapaif_name );
64 featureW.ldapaif_version = 0;
65
66 if (!featureW.ldapaif_name) return WLDAP32_LDAP_NO_MEMORY;
67
68 ret = ldap_get_optionW( ld, option, &featureW );
69
70 featureA->ldapaif_version = featureW.ldapaif_version;
71 strfreeW( featureW.ldapaif_name );
72 return ret;
73 }
75 {
78
79 memset( &infoW, 0, sizeof(LDAPAPIInfoW) );
80 infoW.ldapai_info_version = infoA->ldapai_info_version;
81
83
84 infoA->ldapai_api_version = infoW.ldapai_api_version;
85 infoA->ldapai_protocol_version = infoW.ldapai_protocol_version;
86
87 if (infoW.ldapai_extensions)
88 {
89 infoA->ldapai_extensions = strarrayWtoA( infoW.ldapai_extensions );
90 if (!infoA->ldapai_extensions) return WLDAP32_LDAP_NO_MEMORY;
91 }
92 if (infoW.ldapai_vendor_name)
93 {
94 infoA->ldapai_vendor_name = strWtoA( infoW.ldapai_vendor_name );
95 if (!infoA->ldapai_vendor_name)
96 {
97 ldap_value_freeW( infoW.ldapai_extensions );
99 }
100 }
101 infoA->ldapai_vendor_version = infoW.ldapai_vendor_version;
102
103 ldap_value_freeW( infoW.ldapai_extensions );
104 ldap_memfreeW( infoW.ldapai_vendor_name );
105 return ret;
106 }
107
115 return ldap_get_optionW( ld, option, value );
116
125 return LDAP_LOCAL_ERROR;
126
157 FIXME( "Unsupported option: 0x%02x\n", option );
159
160 default:
161 FIXME( "Unknown option: 0x%02x\n", option );
163 }
164
165#endif
166 return ret;
167}
#define FIXME(fmt,...)
Definition: precomp.h:53
static const SecPkgInfoW infoW
Definition: kerberos.c:293
static const SecPkgInfoA infoA
Definition: kerberos.c:302
ULONG CDECL ldap_get_optionW(WLDAP32_LDAP *ld, int option, void *value)
Definition: option.c:183
#define memset(x, y, z)
Definition: compat.h:39
Definition: getopt.h:109
#define LDAP_LOCAL_ERROR
Definition: winldap.h:102
#define WLDAP32_LDAP_OPT_IO_FN_PTRS
#define WLDAP32_LDAP_OPT_HOST_REACHABLE
#define WLDAP32_LDAP_OPT_PROTOCOL_VERSION
#define WLDAP32_LDAP_OPT_REBIND_FN
#define WLDAP32_LDAP_OPT_CACHE_FN_PTRS
#define WLDAP32_LDAP_OPT_CLIENT_CERTIFICATE
#define WLDAP32_LDAP_OPT_RESTART
#define WLDAP32_LDAP_OPT_THREAD_FN_PTRS
#define WLDAP32_LDAP_OPT_DEREF
#define WLDAP32_LDAP_OPT_SASL_METHOD
#define WLDAP32_LDAP_OPT_SSPI_FLAGS
#define WLDAP32_LDAP_OPT_SIZELIMIT
#define WLDAP32_LDAP_OPT_SERVER_CERTIFICATE
#define WLDAP32_LDAP_OPT_SECURITY_CONTEXT
#define WLDAP32_LDAP_OPT_HOST_NAME
#define WLDAP32_LDAP_OPT_ERROR_STRING
#define WLDAP32_LDAP_OPT_SERVER_EXT_ERROR
#define WLDAP32_LDAP_OPT_CACHE_STRATEGY
#define WLDAP32_LDAP_OPT_SEND_TIMEOUT
#define WLDAP32_LDAP_OPT_REFERRALS
#define WLDAP32_LDAP_OPT_PING_LIMIT
#define WLDAP32_LDAP_OPT_TIMELIMIT
#define WLDAP32_LDAP_OPT_API_FEATURE_INFO
#define WLDAP32_LDAP_OPT_SSL_INFO
#define WLDAP32_LDAP_OPT_TCP_KEEPALIVE
#define WLDAP32_LDAP_OPT_AREC_EXCLUSIVE
#define WLDAP32_LDAP_OPT_DNSDOMAIN_NAME
#define WLDAP32_LDAP_OPT_ERROR_NUMBER
#define WLDAP32_LDAP_OPT_PING_KEEP_ALIVE
#define WLDAP32_LDAP_OPT_AUTO_RECONNECT
#define WLDAP32_LDAP_OPT_DESC
#define WLDAP32_LDAP_OPT_REF_DEREF_CONN_PER_MSG
#define WLDAP32_LDAP_OPT_SERVER_ERROR
#define WLDAP32_LDAP_OPT_SERVER_CONTROLS
#define WLDAP32_LDAP_OPT_PROMPT_CREDENTIALS
#define WLDAP32_LDAP_OPT_GETDSNAME_FLAGS
#define WLDAP32_LDAP_OPT_PING_WAIT_TIME
#define WLDAP32_LDAP_OPT_SIGN
#define WLDAP32_LDAP_OPT_REFERRAL_CALLBACK
#define WLDAP32_LDAP_OPT_REFERRAL_HOP_LIMIT
#define WLDAP32_LDAP_OPT_ROOTDSE_CACHE
#define WLDAP32_LDAP_OPT_REBIND_ARG
#define WLDAP32_LDAP_OPT_FAST_CONCURRENT_BIND
#define WLDAP32_LDAP_OPT_API_INFO
#define WLDAP32_LDAP_OPT_CACHE_ENABLE
#define WLDAP32_LDAP_OPT_ENCRYPT
#define WLDAP32_LDAP_OPT_SSL

◆ ldap_get_optionW()

WINLDAPAPI ULONG ldap_get_optionW ( LDAP ld,
int  option,
void value 
)

Definition at line 183 of file option.c.

184{
186#ifdef HAVE_LDAP
187
188 TRACE( "(%p, 0x%08x, %p)\n", ld, option, value );
189
190 if (!ld || !value) return WLDAP32_LDAP_PARAM_ERROR;
191
192 switch (option)
193 {
195 {
196 LDAPAPIFeatureInfo featureU;
197 LDAPAPIFeatureInfoW *featureW = value;
198
199 if (!featureW->ldapaif_name) return WLDAP32_LDAP_PARAM_ERROR;
200
201 featureU.ldapaif_info_version = featureW->ldapaif_info_version;
202 featureU.ldapaif_name = strWtoU( featureW->ldapaif_name );
203 featureU.ldapaif_version = 0;
204
205 if (!featureU.ldapaif_name) return WLDAP32_LDAP_NO_MEMORY;
206
207 ret = map_error( ldap_get_option( ld, option, &featureU ));
208
209 featureW->ldapaif_version = featureU.ldapaif_version;
210 strfreeU( featureU.ldapaif_name );
211 return ret;
212 }
214 {
215 LDAPAPIInfo infoU;
217
218 memset( &infoU, 0, sizeof(LDAPAPIInfo) );
219 infoU.ldapai_info_version = infoW->ldapai_info_version;
220
221 ret = map_error( ldap_get_option( ld, option, &infoU ));
222
223 infoW->ldapai_api_version = infoU.ldapai_api_version;
224 infoW->ldapai_protocol_version = infoU.ldapai_protocol_version;
225
226 if (infoU.ldapai_extensions)
227 {
228 infoW->ldapai_extensions = strarrayUtoW( infoU.ldapai_extensions );
229 if (!infoW->ldapai_extensions) return WLDAP32_LDAP_NO_MEMORY;
230 }
231 if (infoU.ldapai_vendor_name)
232 {
233 infoW->ldapai_vendor_name = strUtoW( infoU.ldapai_vendor_name );
234 if (!infoW->ldapai_vendor_name)
235 {
236 ldap_memvfree( (void **)infoU.ldapai_extensions );
238 }
239 }
240 infoW->ldapai_vendor_version = infoU.ldapai_vendor_version;
241
242 ldap_memvfree( (void **)infoU.ldapai_extensions );
243 ldap_memfree( infoU.ldapai_vendor_name );
244 return ret;
245 }
246