ReactOS 0.4.15-dev-7842-g558ab78
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: debug.h:111
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
254 return map_error( ldap_get_option( ld, option, value ));
255
265
296 FIXME( "Unsupported option: 0x%02x\n", option );
298
299 default:
300 FIXME( "Unknown option: 0x%02x\n", option );
302 }
303
304#endif
305 return ret;
306}
#define LDAPAPIInfo
Definition: winldap.h:626
#define LDAPAPIFeatureInfo
Definition: winldap.h:628
#define ldap_get_option
Definition: winldap.h:640

Referenced by ldap_get_optionA(), test_ldap_get_optionW(), and test_ldap_set_optionW().

◆ ldap_get_paged_count()

WINLDAPAPI ULONG ldap_get_paged_count ( PLDAP  ,
PLDAPSearch  ,
ULONG ,
PLDAPMessage   
)

◆ ldap_get_values_lenA()

WINLDAPAPI BerValue ** ldap_get_values_lenA ( LDAP ld,
LDAPMessage message,
const  PCHAR 
)

Definition at line 249 of file value.c.

251{
252#ifdef HAVE_LDAP
253 WCHAR *attrW = NULL;
254 struct WLDAP32_berval **ret;
255
256 TRACE( "(%p, %p, %s)\n", ld, message, debugstr_a(attr) );
257
258 if (!ld || !message || !attr) return NULL;
259
260 attrW = strAtoW( attr );
261 if (!attrW) return NULL;
262
263 ret = ldap_get_values_lenW( ld, message, attrW );
264
265 strfreeW( attrW );
266 return ret;
267
268#else
269 return NULL;
270#endif
271}
struct WLDAP32_berval **CDECL ldap_get_values_lenW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *message, PWCHAR attr)
Definition: value.c:292

◆ ldap_get_values_lenW()

WINLDAPAPI BerValue ** ldap_get_values_lenW ( LDAP ld,
LDAPMessage message,
const  PWCHAR 
)

Definition at line 292 of file value.c.

294{
295#ifdef HAVE_LDAP
296 char *attrU = NULL;
297 struct berval **ret;
298
299 TRACE( "(%p, %p, %s)\n", ld, message, debugstr_w(attr) );
300
301 if (!ld || !message || !attr) return NULL;
302
303 attrU = strWtoU( attr );
304 if (!attrU) return NULL;
305
306 ret = ldap_get_values_len( ld, message, attrU );
307
308 strfreeU( attrU );
309 return (struct WLDAP32_berval **)ret;
310
311#else
312 return NULL;
313#endif
314}
#define ldap_get_values_len
Definition: winldap.h:671

Referenced by ldap_get_values_lenA().

◆ ldap_get_valuesA()

WINLDAPAPI PCHAR * ldap_get_valuesA ( LDAP ld,
LDAPMessage entry,
const  PCHAR 
)

Definition at line 130 of file value.c.

131{
132 PCHAR *ret = NULL;
133#ifdef HAVE_LDAP
134 WCHAR *attrW = NULL, **retW;
135
136 TRACE( "(%p, %p, %s)\n", ld, entry, debugstr_a(attr) );
137
138 if (!ld || !entry || !attr) return NULL;
139
140 attrW = strAtoW( attr );
141 if (!attrW) return NULL;
142
143 retW = ldap_get_valuesW( ld, entry, attrW );
144
145 ret = strarrayWtoA( retW );
146 ldap_value_freeW( retW );
147 strfreeW( attrW );
148
149#endif
150 return ret;
151}
PWCHAR *CDECL ldap_get_valuesW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, PWCHAR attr)
Definition: value.c:217

◆ ldap_get_valuesW()

WINLDAPAPI PWCHAR * ldap_get_valuesW ( LDAP ld,
LDAPMessage entry,
const  PWCHAR 
)

Definition at line 217 of file value.c.

218{
219 PWCHAR *ret = NULL;
220#ifdef HAVE_LDAP
221 char *attrU = NULL, **retU;
222 struct berval **bv;
223
224 TRACE( "(%p, %p, %s)\n", ld, entry, debugstr_w(attr) );
225
226 if (!ld || !entry || !attr) return NULL;
227
228 attrU = strWtoU( attr );
229 if (!attrU) return NULL;
230
231 bv = ldap_get_values_len( ld, entry, attrU );
232
233 retU = bv2str_array( bv );
234 ret = strarrayUtoW( retU );
235
237 strarrayfreeU( retU );
238 strfreeU( attrU );
239
240#endif
241 return ret;
242}
WINLDAPAPI ULONG ldap_value_free_len(struct berval **)
static void strarrayfreeU(char **strarray)
Definition: wldap32.h:234

Referenced by ldap_get_valuesA().

◆ ldap_initA()

WINLDAPAPI PLDAP ldap_initA ( PCHAR  hostname,
ULONG  portnumber 
)

Definition at line 331 of file init.c.

332{
333#ifdef HAVE_LDAP
334 WLDAP32_LDAP *ld = NULL;
335 WCHAR *hostnameW = NULL;
336
337 TRACE( "(%s, %d)\n", debugstr_a(hostname), portnumber );
338
339 if (hostname) {
340 hostnameW = strAtoW( hostname );
341 if (!hostnameW) goto exit;
342 }
343
344 ld = ldap_initW( hostnameW, portnumber );
345
346exit:
347 strfreeW( hostnameW );
348 return ld;
349
350#else
351 return NULL;
352#endif
353}
WLDAP32_LDAP *CDECL ldap_initW(const PWCHAR hostname, ULONG portnumber)
Definition: init.c:377

Referenced by START_TEST().

◆ ldap_initW()

WINLDAPAPI PLDAP ldap_initW ( PWCHAR  hostname,
ULONG  portnumber 
)

Definition at line 377 of file init.c.

378{
379#ifdef HAVE_LDAP
380 LDAP *ld = NULL;
381 char *hostnameU = NULL, *url = NULL;
382
383 TRACE( "(%s, %d)\n", debugstr_w(hostname), portnumber );
384
385 if (hostname) {
386 hostnameU = strWtoU( hostname );
387 if (!hostnameU) goto exit;
388 }
389 else {
390 hostnameU = strWtoU( defaulthost );
391 if (!hostnameU) goto exit;
392 }
393
394 url = urlify_hostnames( "ldap://", hostnameU, portnumber );
395 if (!url) goto exit;
396
397 ld = create_context( url );
398
399exit:
400 strfreeU( hostnameU );
401 strfreeU( url );
402 return ld;
403
404#else
405 return NULL;
406#endif
407}

Referenced by ldap_initA().

◆ ldap_memfreeA()

WINLDAPAPI VOID ldap_memfreeA ( PCHAR  block)

Definition at line 407 of file misc.c.

408{
409 TRACE( "(%p)\n", block );
410 strfreeA( block );
411}
static void strfreeA(LPSTR str)
Definition: wldap32.h:98
static unsigned int block
Definition: xmlmemory.c:101

◆ ldap_memfreeW()

◆ ldap_modify_ext_sA()

WINLDAPAPI ULONG ldap_modify_ext_sA ( LDAP ld,
const  PCHAR,
LDAPModA mods[],
PLDAPControlA serverctrls,
PLDAPControlA clientctrls 
)

Definition at line 264 of file modify.c.

266{
268#ifdef HAVE_LDAP
269 WCHAR *dnW = NULL;
270 LDAPModW **modsW = NULL;
271 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
272
274
275 TRACE( "(%p, %s, %p, %p, %p)\n", ld, debugstr_a(dn), mods,
276 serverctrls, clientctrls );
277
278 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
279
280 if (dn) {
281 dnW = strAtoW( dn );
282 if (!dnW) goto exit;
283 }
284 if (mods) {
285 modsW = modarrayAtoW( mods );
286 if (!modsW) goto exit;
287 }
288 if (serverctrls) {
289 serverctrlsW = controlarrayAtoW( serverctrls );
290 if (!serverctrlsW) goto exit;
291 }
292 if (clientctrls) {
293 clientctrlsW = controlarrayAtoW( clientctrls );
294 if (!clientctrlsW) goto exit;
295 }
296
297 ret = ldap_modify_ext_sW( ld, dnW, modsW, serverctrlsW, clientctrlsW );
298
299exit:
300 strfreeW( dnW );
301 modarrayfreeW( modsW );
302 controlarrayfreeW( serverctrlsW );
303 controlarrayfreeW( clientctrlsW );
304
305#endif
306 return ret;
307}
ULONG CDECL ldap_modify_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *mods[], PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
Definition: modify.c:330

◆ ldap_modify_ext_sW()

WINLDAPAPI ULONG ldap_modify_ext_sW ( LDAP ld,
const  PWCHAR,
LDAPModW mods[],
PLDAPControlW serverctrls,
PLDAPControlW clientctrls 
)

Definition at line 330 of file modify.c.

332{
334#ifdef HAVE_LDAP
335 char *dnU = NULL;
336 LDAPMod **modsU = NULL;
337 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
338
340
341 TRACE( "(%p, %s, %p, %p, %p)\n", ld, debugstr_w(dn), mods,
342 serverctrls, clientctrls );
343
344 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
345
346 if (dn) {
347 dnU = strWtoU( dn );
348 if (!dnU) goto exit;
349 }
350 if (mods) {
351 modsU = modarrayWtoU( mods );
352 if (!modsU) goto exit;
353 }
354 if (serverctrls) {
355 serverctrlsU = controlarrayWtoU( serverctrls );
356 if (!serverctrlsU) goto exit;
357 }
358 if (clientctrls) {
359 clientctrlsU = controlarrayWtoU( clientctrls );
360 if (!clientctrlsU) goto exit;
361 }
362
363 ret = map_error( ldap_modify_ext_s( ld, dn ? dnU : "", mods ? modsU : nullmods,
364 serverctrlsU, clientctrlsU ));
365
366exit:
367 strfreeU( dnU );
368 modarrayfreeU( modsU );
369 controlarrayfreeU( serverctrlsU );
370 controlarrayfreeU( clientctrlsU );
371
372#endif
373 return ret;
374}
#define ldap_modify_ext_s
Definition: winldap.h:660

Referenced by ldap_modify_ext_sA().

◆ ldap_modify_extA()

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

Definition at line 144 of file modify.c.

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

◆ ldap_modify_extW()

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

Definition at line 212 of file modify.c.

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

Referenced by ldap_modify_extA().

◆ ldap_modify_sA()

WINLDAPAPI ULONG ldap_modify_sA ( LDAP ld,
const  PCHAR,
LDAPModA mods[] 
)

Definition at line 381 of file modify.c.

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

◆ ldap_modify_sW()

WINLDAPAPI ULONG ldap_modify_sW ( LDAP ld,
const  PWCHAR,
LDAPModW mods[] 
)

Definition at line 428 of file modify.c.

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

Referenced by ldap_modify_sA().

◆ ldap_modifyA()

WINLDAPAPI ULONG ldap_modifyA ( LDAP ld,
const  PCHAR,
LDAPModA mods[] 
)

Definition at line 48 of file modify.c.

49{
51#ifdef HAVE_LDAP
52 WCHAR *dnW = NULL;
53 LDAPModW **modsW = NULL;
54
56
57 TRACE( "(%p, %s, %p)\n", ld, debugstr_a(dn), mods );
58
59 if (!ld) return ~0u;
60
61 if (dn) {
62 dnW = strAtoW( dn );
63 if (!dnW) goto exit;
64 }
65 if (mods) {
66 modsW = modarrayAtoW( mods );
67 if (!modsW) goto exit;
68 }
69
70 ret = ldap_modifyW( ld, dnW, modsW );
71
72exit:
73 strfreeW( dnW );
74 modarrayfreeW( modsW );
75
76#endif
77 return ret;
78}
ULONG CDECL ldap_modifyW(WLDAP32_LDAP *ld, PWCHAR dn, LDAPModW *mods[])
Definition: modify.c:100

◆ ldap_modifyW()

WINLDAPAPI ULONG ldap_modifyW ( LDAP ld,
const  PWCHAR,
LDAPModW mods[] 
)

Definition at line 100 of file modify.c.

101{
103#ifdef HAVE_LDAP
104 char *dnU = NULL;
105 LDAPMod **modsU = NULL;
106 int msg;
107
109
110 TRACE( "(%p, %s, %p)\n", ld, debugstr_w(dn), mods );
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 (mods) {
119 modsU = modarrayWtoU( mods );
120 if (!modsU) goto exit;
121 }
122
123 ret = ldap_modify_ext( ld, dn ? dnU : "", mods ? modsU : nullmods,
124 NULL, NULL, &msg );
125
126 if (ret == LDAP_SUCCESS)
127 ret = msg;
128 else
129 ret = ~0u;
130
131exit:
132 strfreeU( dnU );
133 modarrayfreeU( modsU );
134
135#endif
136 return ret;
137}

Referenced by ldap_modifyA().

◆ ldap_modrdn2_sA()

WINLDAPAPI ULONG ldap_modrdn2_sA ( LDAP ld,
PCHAR  dn,
PCHAR  newdn,
INT  delete 
)

Definition at line 225 of file modrdn.c.

226{
228#ifdef HAVE_LDAP
229 WCHAR *dnW = NULL, *newdnW = NULL;
230
232
233 TRACE( "(%p, %s, %p, 0x%02x)\n", ld, debugstr_a(dn), newdn, delete );
234
235 if (!ld || !newdn) return WLDAP32_LDAP_PARAM_ERROR;
236
237 if (dn) {
238 dnW = strAtoW( dn );
239 if (!dnW) goto exit;
240 }
241
242 newdnW = strAtoW( newdn );
243 if (!newdnW) goto exit;
244
245 ret = ldap_modrdn2_sW( ld, dnW, newdnW, delete );
246
247exit:
248 strfreeW( dnW );
249 strfreeW( newdnW );
250
251#endif
252 return ret;
253}
ULONG CDECL ldap_modrdn2_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newdn, INT delete)
Definition: modrdn.c:270

◆ ldap_modrdn2_sW()

WINLDAPAPI ULONG ldap_modrdn2_sW ( LDAP ld,
PWCHAR  dn,
PWCHAR  newdn,
INT  delete 
)

Definition at line 270 of file modrdn.c.

271{
273#ifdef HAVE_LDAP
274 char *dnU = NULL, *newdnU = NULL;
275
277
278 TRACE( "(%p, %s, %p, 0x%02x)\n", ld, debugstr_w(dn), newdn, delete );
279
280 if (!ld || !newdn) return WLDAP32_LDAP_PARAM_ERROR;
281
282 if (dn) {
283 dnU = strWtoU( dn );
284 if (!dnU) goto exit;
285 }
286
287 newdnU = strWtoU( newdn );
288 if (!newdnU) goto exit;
289
290 ret = map_error( ldap_rename_s( ld, dn ? dnU : "", newdnU, NULL, delete, NULL, NULL ));
291
292exit:
293 strfreeU( dnU );
294 strfreeU( newdnU );
295
296#endif
297 return ret;
298}
#define ldap_rename_s
Definition: winldap.h:699

Referenced by ldap_modrdn2_sA().

◆ ldap_modrdn2A()

WINLDAPAPI ULONG ldap_modrdn2A ( LDAP ld,
PCHAR  dn,
PCHAR  newdn,
INT  delete 
)

Definition at line 134 of file modrdn.c.

135{
137#ifdef HAVE_LDAP
138 WCHAR *dnW = NULL, *newdnW = NULL;
139
141
142 TRACE( "(%p, %s, %p, 0x%02x)\n", ld, debugstr_a(dn), newdn, delete );
143
144 if (!ld || !newdn) return ~0u;
145
146 if (dn) {
147 dnW = strAtoW( dn );
148 if (!dnW) goto exit;
149 }
150
151 newdnW = strAtoW( newdn );
152 if (!newdnW) goto exit;
153
154 ret = ldap_modrdn2W( ld, dnW, newdnW, delete );
155
156exit:
157 strfreeW( dnW );
158 strfreeW( newdnW );
159
160#endif
161 return ret;
162}
ULONG CDECL ldap_modrdn2W(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newdn, INT delete)
Definition: modrdn.c:184

◆ ldap_modrdn2W()

WINLDAPAPI ULONG ldap_modrdn2W ( LDAP ld,
PWCHAR  dn,
PWCHAR  newdn,
INT  delete 
)

Definition at line 184 of file modrdn.c.

185{
187#ifdef HAVE_LDAP
188 char *dnU = NULL, *newdnU = NULL;
189 int msg;
190
192
193 TRACE( "(%p, %s, %p, 0x%02x)\n", ld, debugstr_w(dn), newdn, delete );
194
195 if (!ld || !newdn) return ~0u;
196
197 if (dn) {
198 dnU = strWtoU( dn );
199 if (!dnU) goto exit;
200 }
201
202 newdnU = strWtoU( newdn );
203 if (!newdnU) goto exit;
204
205 ret = ldap_rename( ld, dn ? dnU : "", newdnU, NULL, delete, NULL, NULL, &msg );
206
207 if (ret == LDAP_SUCCESS)
208 ret = msg;
209 else
210 ret = ~0u;
211
212exit:
213 strfreeU( dnU );
214 strfreeU( newdnU );
215
216#endif
217 return ret;
218}
#define ldap_rename
Definition: winldap.h:698

Referenced by ldap_modrdn2A().

◆ ldap_modrdn_sA()

WINLDAPAPI ULONG ldap_modrdn_sA ( LDAP ld,
PCHAR  dn,
PCHAR  newdn 
)

Definition at line 305 of file modrdn.c.

306{
308#ifdef HAVE_LDAP
309 WCHAR *dnW = NULL, *newdnW = NULL;
310
312
313 TRACE( "(%p, %s, %p)\n", ld, debugstr_a(dn), newdn );
314
315 if (!ld || !newdn) return WLDAP32_LDAP_PARAM_ERROR;
316
317 if (dn) {
318 dnW = strAtoW( dn );
319 if (!dnW) goto exit;
320 }
321
322 newdnW = strAtoW( newdn );
323 if (!newdnW) goto exit;
324
325 ret = ldap_modrdn_sW( ld, dnW, newdnW );
326
327exit:
328 strfreeW( dnW );
329 strfreeW( newdnW );
330
331#endif
332 return ret;
333}
ULONG CDECL ldap_modrdn_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newdn)
Definition: modrdn.c:349

◆ ldap_modrdn_sW()

WINLDAPAPI ULONG ldap_modrdn_sW ( LDAP ld,
PWCHAR  dn,
PWCHAR  newdn 
)

Definition at line 349 of file modrdn.c.

350{
352#ifdef HAVE_LDAP
353 char *dnU = NULL, *newdnU = NULL;
354
356
357 TRACE( "(%p, %s, %p)\n", ld, debugstr_w(dn), newdn );
358
359 if (!ld || !newdn) return WLDAP32_LDAP_PARAM_ERROR;
360
361 if (dn) {
362 dnU = strWtoU( dn );
363 if (!dnU) goto exit;
364 }
365
366 newdnU = strWtoU( newdn );
367 if (!newdnU) goto exit;
368
369 ret = map_error( ldap_rename_s( ld, dn ? dnU : "", newdnU, NULL, 1, NULL, NULL ));
370
371exit:
372 strfreeU( dnU );
373 strfreeU( newdnU );
374
375#endif
376 return ret;
377}

Referenced by ldap_modrdn_sA().

◆ ldap_modrdnA()

WINLDAPAPI ULONG ldap_modrdnA ( LDAP ld,
PCHAR  dn,
PCHAR  newdn 
)

Definition at line 44 of file modrdn.c.

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

◆ ldap_modrdnW()

WINLDAPAPI ULONG ldap_modrdnW ( LDAP ld,
PWCHAR  dn,
PWCHAR  newdn 
)

Definition at line 93 of file modrdn.c.

94{
96#ifdef HAVE_LDAP
97 char *dnU = NULL, *newdnU = NULL;
98 int msg;
99
101
102 TRACE( "(%p, %s, %s)\n", ld, debugstr_w(dn), debugstr_w(newdn) );
103
104 if (!ld || !newdn) return ~0u;
105
106 if (dn) {
107 dnU = strWtoU( dn );
108 if (!dnU) goto exit;
109 }
110
111 newdnU = strWtoU( newdn );
112 if (!newdnU) goto exit;
113
114 ret = ldap_rename( ld, dn ? dnU : "", newdnU, NULL, 1, NULL, NULL, &msg );
115
116 if (ret == LDAP_SUCCESS)
117 ret = msg;
118 else
119 ret = ~0u;
120
121exit:
122 strfreeU( dnU );
123 strfreeU( newdnU );
124
125#endif
126 return ret;
127}

Referenced by ldap_modrdnA().

◆ ldap_msgfree()

WINLDAPAPI ULONG ldap_msgfree ( LDAPMessage )

◆ ldap_next_attributeA()

WINLDAPAPI PCHAR ldap_next_attributeA ( LDAP ld,
LDAPMessage entry,
BerElement ptr 
)

Definition at line 452 of file misc.c.

454{
455 PCHAR ret = NULL;
456#ifdef HAVE_LDAP
457 WCHAR *retW;
458
459 TRACE( "(%p, %p, %p)\n", ld, entry, ptr );
460
461 if (!ld || !entry || !ptr) return NULL;
462 retW = ldap_next_attributeW( ld, entry, ptr );
463
464 ret = strWtoA( retW );
465 ldap_memfreeW( retW );
466
467#endif
468 return ret;
469}
PWCHAR CDECL ldap_next_attributeW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *entry, WLDAP32_BerElement *ptr)
Definition: misc.c:489

◆ ldap_next_attributeW()

WINLDAPAPI PWCHAR ldap_next_attributeW ( LDAP ld,
LDAPMessage entry,
BerElement ptr 
)

Definition at line 489 of file misc.c.

491{
492 PWCHAR ret = NULL;
493#ifdef HAVE_LDAP
494 char *retU;
495
496 TRACE( "(%p, %p, %p)\n", ld, entry, ptr );
497
498 if (!ld || !entry || !ptr) return NULL;
499 retU = ldap_next_attribute( ld, entry, ptr );
500
501 ret = strUtoW( retU );
502 ldap_memfree( retU );
503
504#endif
505 return ret;
506}
#define ldap_next_attribute
Definition: winldap.h:669

Referenced by ldap_next_attributeA().

◆ ldap_next_entry()

WINLDAPAPI PLDAPMessage ldap_next_entry ( LDAP ,
LDAPMessage  
)

Referenced by WLDAP32_ldap_next_entry().

◆ ldap_next_reference()

WINLDAPAPI PLDAPMessage ldap_next_reference ( LDAP ,
LDAPMessage  
)

◆ ldap_openA()

WINLDAPAPI PLDAP ldap_openA ( const  PCHAR,
ULONG  portnumber 
)

Definition at line 414 of file init.c.

415{
416#ifdef HAVE_LDAP
417 WLDAP32_LDAP *ld = NULL;
418 WCHAR *hostnameW = NULL;
419
420 TRACE( "(%s, %d)\n", debugstr_a(hostname), portnumber );
421
422 if (hostname) {
423 hostnameW = strAtoW( hostname );
424 if (!hostnameW) goto exit;
425 }
426
427 ld = ldap_openW( hostnameW, portnumber );
428
429exit:
430 strfreeW( hostnameW );
431 return ld;
432
433#else
434 return NULL;
435#endif
436}
WLDAP32_LDAP *CDECL ldap_openW(PWCHAR hostname, ULONG portnumber)
Definition: init.c:459

◆ ldap_openW()

WINLDAPAPI PLDAP ldap_openW ( const  PWCHAR,
ULONG  portnumber 
)

Definition at line 459 of file init.c.

460{
461#ifdef HAVE_LDAP
462 LDAP *ld = NULL;
463 char *hostnameU = NULL, *url = NULL;
464
465 TRACE( "(%s, %d)\n", debugstr_w(hostname), portnumber );
466
467 if (hostname) {
468 hostnameU = strWtoU( hostname );
469 if (!hostnameU) goto exit;
470 }
471 else {
472 hostnameU = strWtoU( defaulthost );
473 if (!hostnameU) goto exit;
474 }
475
476 url = urlify_hostnames( "ldap://", hostnameU, portnumber );
477 if (!url) goto exit;
478
479 ld = create_context( url );
480
481exit:
482 strfreeU( hostnameU );
483 strfreeU( url );
484 return ld;
485
486#else
487 return NULL;
488#endif
489}

Referenced by ldap_openA().

◆ ldap_parse_extended_resultA()

WINLDAPAPI ULONG ldap_parse_extended_resultA ( LDAP  ,
LDAPMessage ,
PCHAR ,
struct berval **  ,
BOOLEAN   
)

◆ ldap_parse_extended_resultW()

WINLDAPAPI ULONG ldap_parse_extended_resultW ( LDAP  ,
LDAPMessage ,
PWCHAR ,
struct berval **  ,
BOOLEAN   
)

◆ ldap_parse_page_controlA()

WINLDAPAPI ULONG ldap_parse_page_controlA ( PLDAP  ,
PLDAPControlA ,
ULONG ,
struct berval **   
)

◆ ldap_parse_page_controlW()

WINLDAPAPI ULONG ldap_parse_page_controlW ( PLDAP  ,
PLDAPControlW ,
ULONG ,
struct berval **   
)

◆ ldap_parse_referenceA()

WINLDAPAPI ULONG ldap_parse_referenceA ( LDAP ld,
LDAPMessage message,
PCHAR **  referrals 
)

Definition at line 117 of file parse.c.

119{
121#ifdef HAVE_LDAP
122 WCHAR **referralsW = NULL;
123
124 TRACE( "(%p, %p, %p)\n", ld, message, referrals );
125
126 if (!ld) return ~0u;
127
128 ret = ldap_parse_referenceW( ld, message, &referralsW );
129
130 *referrals = strarrayWtoA( referralsW );
131 ldap_value_freeW( referralsW );
132
133#endif
134 return ret;
135}
ULONG CDECL ldap_parse_referenceW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *message, PWCHAR **referrals)
Definition: parse.c:154

◆ ldap_parse_referenceW()

WINLDAPAPI ULONG ldap_parse_referenceW ( LDAP ld,
LDAPMessage message,
PWCHAR **  referrals 
)

Definition at line 154 of file parse.c.

156{
158#ifdef HAVE_LDAP_PARSE_REFERENCE
159 char **referralsU = NULL;
160
161 TRACE( "(%p, %p, %p)\n", ld, message, referrals );
162
163 if (!ld) return ~0u;
164
165 ret = map_error( ldap_parse_reference( ld, message, &referralsU, NULL, 0 ));
166
167 *referrals = strarrayUtoW( referralsU );
168 ldap_memfree( referralsU );
169
170#endif
171 return ret;
172}
#define ldap_parse_reference
Definition: winldap.h:674

Referenced by ldap_parse_referenceA().

◆ ldap_parse_resultA()

WINLDAPAPI ULONG ldap_parse_resultA ( LDAP ld,
LDAPMessage result,
ULONG retcode,
PCHAR matched,
PCHAR error,
PCHAR **  referrals,
PLDAPControlA **  serverctrls,
BOOLEAN  free 
)

Definition at line 179 of file parse.c.

182{
184#ifdef HAVE_LDAP
185 WCHAR *matchedW = NULL, *errorW = NULL, **referralsW = NULL;
186 LDAPControlW **serverctrlsW = NULL;
187
188 TRACE( "(%p, %p, %p, %p, %p, %p, %p, 0x%02x)\n", ld, result, retcode,
189 matched, error, referrals, serverctrls, free );
190
191 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
192
193 ret = ldap_parse_resultW( ld, result, retcode, &matchedW, &errorW,
194 &referralsW, &serverctrlsW, free );
195
196 if (matched) *matched = strWtoA( matchedW );
197 if (error) *error = strWtoA( errorW );
198
199 if (referrals) *referrals = strarrayWtoA( referralsW );
200 if (serverctrls) *serverctrls = controlarrayWtoA( serverctrlsW );
201
202 ldap_memfreeW( matchedW );
204 ldap_value_freeW( referralsW );
205 ldap_controls_freeW( serverctrlsW );
206
207#endif
208 return ret;
209}
#define free
Definition: debug_ros.c:5
ULONG CDECL ldap_parse_resultW(WLDAP32_LDAP *ld, WLDAP32_LDAPMessage *result, ULONG *retcode, PWCHAR *matched, PWCHAR *error, PWCHAR **referrals, PLDAPControlW **serverctrls, BOOLEAN free)
Definition: parse.c:236
GLuint64EXT * result
Definition: glext.h:11304
static const WCHAR errorW[]
Definition: htmlevent.c:61
#define error(str)
Definition: mkdosfs.c:1605

Referenced by test_ldap_parse_sort_control().

◆ ldap_parse_resultW()

WINLDAPAPI ULONG ldap_parse_resultW ( LDAP ld,
LDAPMessage result,
ULONG retcode,
PWCHAR matched,
PWCHAR error,
PWCHAR **  referrals,
PLDAPControlW **  serverctrls,
BOOLEAN  free 
)

Definition at line 236 of file parse.c.

239{
241#ifdef HAVE_LDAP
242 char *matchedU = NULL, *errorU = NULL, **referralsU = NULL;
243 LDAPControl **serverctrlsU = NULL;
244
245 TRACE( "(%p, %p, %p, %p, %p, %p, %p, 0x%02x)\n", ld, result, retcode,
246 matched, error, referrals, serverctrls, free );
247
248 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
249
250 ret = map_error( ldap_parse_result( ld, result, (int *)retcode, &matchedU, &errorU,
251 &referralsU, &serverctrlsU, free ));
252
253 if (matched) *matched = strUtoW( matchedU );
254 if (error) *error = strUtoW( errorU );
255
256 if (referrals) *referrals = strarrayUtoW( referralsU );
257 if (serverctrls) *serverctrls = controlarrayUtoW( serverctrlsU );
258
259 ldap_memfree( matchedU );
260 ldap_memfree( errorU );
261 ldap_memvfree( (void **)referralsU );
262 ldap_controls_free( serverctrlsU );
263
264#endif
265 return ret;
266}
#define ldap_parse_result
Definition: winldap.h:675
#define ldap_controls_free
Definition: winldap.h:686

Referenced by ldap_parse_resultA().

◆ ldap_parse_sort_controlA()

WINLDAPAPI ULONG ldap_parse_sort_controlA ( PLDAP  ,
PLDAPControlA ,
ULONG ,
PCHAR  
)

◆ ldap_parse_sort_controlW()

WINLDAPAPI ULONG ldap_parse_sort_controlW ( PLDAP  ,
PLDAPControlW ,
ULONG ,
PWCHAR  
)

◆ ldap_parse_vlv_controlA()

WINLDAPAPI INT ldap_parse_vlv_controlA ( LDAP ,
LDAPControlA **  ,
unsigned long ,
unsigned long ,
struct berval **  ,
int  
)

◆ ldap_parse_vlv_controlW()

WINLDAPAPI INT ldap_parse_vlv_controlW ( LDAP ,
LDAPControlW **  ,
unsigned long ,
unsigned long ,
struct berval **  ,
int  
)

◆ ldap_rename_ext_sA()

WINLDAPAPI ULONG ldap_rename_ext_sA ( LDAP ld,
const  PCHAR,
const  PCHAR,
const  PCHAR,
INT  delete,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls 
)

Definition at line 177 of file rename.c.

180{
182#ifdef HAVE_LDAP
183 WCHAR *dnW = NULL, *newrdnW = NULL, *newparentW = NULL;
184 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
185
187
188 TRACE( "(%p, %s, %s, %s, 0x%02x, %p, %p)\n", ld, debugstr_a(dn),
189 debugstr_a(newrdn), debugstr_a(newparent), delete,
190 serverctrls, clientctrls );
191
192 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
193
194 if (dn) {
195 dnW = strAtoW( dn );
196 if (!dnW) goto exit;
197 }
198 if (newrdn) {
199 newrdnW = strAtoW( newrdn );
200 if (!newrdnW) goto exit;
201 }
202 if (newparent) {
203 newparentW = strAtoW( newparent );
204 if (!newparentW) goto exit;
205 }
206 if (serverctrls) {
207 serverctrlsW = controlarrayAtoW( serverctrls );
208 if (!serverctrlsW) goto exit;
209 }
210 if (clientctrls) {
211 clientctrlsW = controlarrayAtoW( clientctrls );
212 if (!clientctrlsW) goto exit;
213 }
214
215 ret = ldap_rename_ext_sW( ld, dnW, newrdnW, newparentW, delete,
216 serverctrlsW, clientctrlsW );
217
218exit:
219 strfreeW( dnW );
220 strfreeW( newrdnW );
221 strfreeW( newparentW );
222 controlarrayfreeW( serverctrlsW );
223 controlarrayfreeW( clientctrlsW );
224
225#endif
226 return ret;
227}
ULONG CDECL ldap_rename_ext_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newrdn, PWCHAR newparent, INT delete, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls)
Definition: rename.c:246

◆ ldap_rename_ext_sW()

WINLDAPAPI ULONG ldap_rename_ext_sW ( LDAP ld,
const  PWCHAR,
const  PWCHAR,
const  PWCHAR,
INT  delete,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls 
)

Definition at line 246 of file rename.c.

249{
251#ifdef HAVE_LDAP
252 char *dnU = NULL, *newrdnU = NULL, *newparentU = NULL;
253 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
254
256
257 TRACE( "(%p, %s, %s, %s, 0x%02x, %p, %p)\n", ld, debugstr_w(dn),
258 debugstr_w(newrdn), debugstr_w(newparent), delete,
259 serverctrls, clientctrls );
260
261 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
262
263 if (dn) {
264 dnU = strWtoU( dn );
265 if (!dnU) goto exit;
266 }
267 if (newrdn) {
268 newrdnU = strWtoU( newrdn );
269 if (!newrdnU) goto exit;
270 }
271 if (newparent) {
272 newparentU = strWtoU( newparent );
273 if (!newparentU) goto exit;
274 }
275 if (serverctrls) {
276 serverctrlsU = controlarrayWtoU( serverctrls );
277 if (!serverctrlsU) goto exit;
278 }
279 if (clientctrls) {
280 clientctrlsU = controlarrayWtoU( clientctrls );
281 if (!clientctrlsU) goto exit;
282 }
283
284 ret = map_error( ldap_rename_s( ld, dn ? dnU : "", newrdn ? newrdnU : "", newparentU,
285 delete, serverctrlsU, clientctrlsU ));
286
287exit:
288 strfreeU( dnU );
289 strfreeU( newrdnU );
290 strfreeU( newparentU );
291 controlarrayfreeU( serverctrlsU );
292 controlarrayfreeU( clientctrlsU );
293
294#endif
295 return ret;
296}

Referenced by ldap_rename_ext_sA().

◆ ldap_rename_extA()

WINLDAPAPI ULONG ldap_rename_extA ( LDAP ld,
const  PCHAR,
const  PCHAR,
const  PCHAR,
INT  delete,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls,
ULONG message 
)

Definition at line 44 of file rename.c.

47{
49#ifdef HAVE_LDAP
50 WCHAR *dnW = NULL, *newrdnW = NULL, *newparentW = NULL;
51 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
52
54
55 TRACE( "(%p, %s, %s, %s, 0x%02x, %p, %p, %p)\n", ld, debugstr_a(dn),
56 debugstr_a(newrdn), debugstr_a(newparent), delete,
57 serverctrls, clientctrls, message );
58
59 if (!ld || !message) return WLDAP32_LDAP_PARAM_ERROR;
60
61 if (dn) {
62 dnW = strAtoW( dn );
63 if (!dnW) goto exit;
64 }
65 if (newrdn) {
66 newrdnW = strAtoW( newrdn );
67 if (!newrdnW) goto exit;
68 }
69 if (newparent) {
70 newparentW = strAtoW( newparent );
71 if (!newparentW) goto exit;
72 }
73 if (serverctrls) {
74 serverctrlsW = controlarrayAtoW( serverctrls );
75 if (!serverctrlsW) goto exit;
76 }
77 if (clientctrls) {
78 clientctrlsW = controlarrayAtoW( clientctrls );
79 if (!clientctrlsW) goto exit;
80 }
81
82 ret = ldap_rename_extW( ld, dnW, newrdnW, newparentW, delete,
83 serverctrlsW, clientctrlsW, message );
84
85exit:
86 strfreeW( dnW );
87 strfreeW( newrdnW );
88 strfreeW( newparentW );
89 controlarrayfreeW( serverctrlsW );
90 controlarrayfreeW( clientctrlsW );
91
92#endif
93 return ret;
94}
ULONG CDECL ldap_rename_extW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR newrdn, PWCHAR newparent, INT delete, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, ULONG *message)
Definition: rename.c:120

◆ ldap_rename_extW()

WINLDAPAPI ULONG ldap_rename_extW ( LDAP ld,
const  PWCHAR,
const  PWCHAR,
const  PWCHAR,
INT  delete,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
ULONG message 
)

Definition at line 120 of file rename.c.

123{
125#ifdef HAVE_LDAP
126 char *dnU = NULL, *newrdnU = NULL, *newparentU = NULL;
127 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
128
130
131 TRACE( "(%p, %s, %s, %s, 0x%02x, %p, %p, %p)\n", ld, debugstr_w(dn),
132 debugstr_w(newrdn), debugstr_w(newparent), delete,
133 serverctrls, clientctrls, message );
134
135 if (!ld || !message) return WLDAP32_LDAP_PARAM_ERROR;
136
137 if (dn) {
138 dnU = strWtoU( dn );
139 if (!dnU) goto exit;
140 }
141 if (newrdn) {
142 newrdnU = strWtoU( newrdn );
143 if (!newrdnU) goto exit;
144 }
145 if (newparent) {
146 newparentU = strWtoU( newparent );
147 if (!newparentU) goto exit;
148 }
149 if (serverctrls) {
150 serverctrlsU = controlarrayWtoU( serverctrls );
151 if (!serverctrlsU) goto exit;
152 }
153 if (clientctrls) {
154 clientctrlsU = controlarrayWtoU( clientctrls );
155 if (!clientctrlsU) goto exit;
156 }
157
158 ret = map_error( ldap_rename( ld, dn ? dnU : "", newrdn ? newrdnU : "", newparentU,
159 delete, serverctrlsU, clientctrlsU, (int *)message ));
160
161exit:
162 strfreeU( dnU );
163 strfreeU( newrdnU );
164 strfreeU( newparentU );
165 controlarrayfreeU( serverctrlsU );
166 controlarrayfreeU( clientctrlsU );
167
168#endif
169 return ret;
170}

Referenced by ldap_rename_extA().

◆ ldap_result()

WINLDAPAPI ULONG ldap_result ( LDAP ,
ULONG  ,
ULONG  ,
struct l_timeval ,
LDAPMessage **   
)

Referenced by WLDAP32_ldap_result().

◆ ldap_result2error()

WINLDAPAPI ULONG ldap_result2error ( LDAP ,
LDAPMessage ,
ULONG   
)

◆ ldap_sasl_bind_sA()

WINLDAPAPI ULONG ldap_sasl_bind_sA ( LDAP ld,
const  PCHAR,
const  PCHAR,
const BERVAL cred,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls,
PBERVAL serverdata 
)

Definition at line 347 of file bind.c.

350{
352#ifdef HAVE_LDAP
353 WCHAR *dnW, *mechanismW = NULL;
354 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
355
357
358 TRACE( "(%p, %s, %s, %p, %p, %p, %p)\n", ld, debugstr_a(dn),
359 debugstr_a(mechanism), cred, serverctrls, clientctrls, serverdata );
360
361 if (!ld || !dn || !mechanism || !cred || !serverdata)
363
364 dnW = strAtoW( dn );
365 if (!dnW) goto exit;
366
367 mechanismW = strAtoW( mechanism );
368 if (!mechanismW) goto exit;
369
370 if (serverctrls) {
371 serverctrlsW = controlarrayAtoW( serverctrls );
372 if (!serverctrlsW) goto exit;
373 }
374 if (clientctrls) {
375 clientctrlsW = controlarrayAtoW( clientctrls );
376 if (!clientctrlsW) goto exit;
377 }
378
379 ret = ldap_sasl_bind_sW( ld, dnW, mechanismW, cred, serverctrlsW, clientctrlsW, serverdata );
380
381exit:
382 strfreeW( dnW );
383 strfreeW( mechanismW );
384 controlarrayfreeW( serverctrlsW );
385 controlarrayfreeW( clientctrlsW );
386
387#endif
388 return ret;
389}
ULONG CDECL ldap_sasl_bind_sW(WLDAP32_LDAP *ld, const PWCHAR dn, const PWCHAR mechanism, const BERVAL *cred, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, PBERVAL *serverdata)
Definition: bind.c:413

◆ ldap_sasl_bind_sW()

WINLDAPAPI ULONG ldap_sasl_bind_sW ( LDAP ld,
const  PWCHAR,
const  PWCHAR,
const BERVAL cred,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
PBERVAL serverdata 
)

Definition at line 413 of file bind.c.

416{
418#ifdef HAVE_LDAP
419 char *dnU, *mechanismU = NULL;
420 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
421 struct berval credU;
422
424
425 TRACE( "(%p, %s, %s, %p, %p, %p, %p)\n", ld, debugstr_w(dn),
426 debugstr_w(mechanism), cred, serverctrls, clientctrls, serverdata );
427
428 if (!ld || !dn || !mechanism || !cred || !serverdata)
430
431 dnU = strWtoU( dn );
432 if (!dnU) goto exit;
433
434 mechanismU = strWtoU( mechanism );
435 if (!mechanismU) goto exit;
436
437 if (serverctrls) {
438 serverctrlsU = controlarrayWtoU( serverctrls );
439 if (!serverctrlsU) goto exit;
440 }
441 if (clientctrls) {
442 clientctrlsU = controlarrayWtoU( clientctrls );
443 if (!clientctrlsU) goto exit;
444 }
445
446 credU.bv_len = cred->bv_len;
447 credU.bv_val = cred->bv_val;
448
449 ret = map_error( ldap_sasl_bind_s( ld, dnU, mechanismU, &credU,
450 serverctrlsU, clientctrlsU, (struct berval **)serverdata ));
451
452exit:
453 strfreeU( dnU );
454 strfreeU( mechanismU );
455 controlarrayfreeU( serverctrlsU );
456 controlarrayfreeU( clientctrlsU );
457
458#endif
459 return ret;
460}
#define ldap_sasl_bind_s
Definition: winldap.h:637

Referenced by ldap_sasl_bind_sA().

◆ ldap_sasl_bindA()

WINLDAPAPI ULONG ldap_sasl_bindA ( LDAP ld,
const  PCHAR,
const  PCHAR,
const BERVAL cred,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls,
int message 
)

Definition at line 227 of file bind.c.

230{
232#ifdef HAVE_LDAP
233 WCHAR *dnW, *mechanismW = NULL;
234 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
235
237
238 TRACE( "(%p, %s, %s, %p, %p, %p, %p)\n", ld, debugstr_a(dn),
239 debugstr_a(mechanism), cred, serverctrls, clientctrls, message );
240
241 if (!ld || !dn || !mechanism || !cred || !message)
243
244 dnW = strAtoW( dn );
245 if (!dnW) goto exit;
246
247 mechanismW = strAtoW( mechanism );
248 if (!mechanismW) goto exit;
249
250 if (serverctrls) {
251 serverctrlsW = controlarrayAtoW( serverctrls );
252 if (!serverctrlsW) goto exit;
253 }
254 if (clientctrls) {
255 clientctrlsW = controlarrayAtoW( clientctrls );
256 if (!clientctrlsW) goto exit;
257 }
258
259 ret = ldap_sasl_bindW( ld, dnW, mechanismW, cred, serverctrlsW, clientctrlsW, message );
260
261exit:
262 strfreeW( dnW );
263 strfreeW( mechanismW );
264 controlarrayfreeW( serverctrlsW );
265 controlarrayfreeW( clientctrlsW );
266
267#endif
268 return ret;
269}
ULONG CDECL ldap_sasl_bindW(WLDAP32_LDAP *ld, const PWCHAR dn, const PWCHAR mechanism, const BERVAL *cred, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, int *message)
Definition: bind.c:293

◆ ldap_sasl_bindW()

WINLDAPAPI ULONG ldap_sasl_bindW ( LDAP ld,
const  PWCHAR,
const  PWCHAR,
const BERVAL cred,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
int message 
)

Definition at line 293 of file bind.c.

296{
298#ifdef HAVE_LDAP
299 char *dnU, *mechanismU = NULL;
300 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
301 struct berval credU;
302
304
305 TRACE( "(%p, %s, %s, %p, %p, %p, %p)\n", ld, debugstr_w(dn),
306 debugstr_w(mechanism), cred, serverctrls, clientctrls, message );
307
308 if (!ld || !dn || !mechanism || !cred || !message)
310
311 dnU = strWtoU( dn );
312 if (!dnU) goto exit;
313
314 mechanismU = strWtoU( mechanism );
315 if (!mechanismU) goto exit;
316
317 if (serverctrls) {
318 serverctrlsU = controlarrayWtoU( serverctrls );
319 if (!serverctrlsU) goto exit;
320 }
321 if (clientctrls) {
322 clientctrlsU = controlarrayWtoU( clientctrls );
323 if (!clientctrlsU) goto exit;
324 }
325
326 credU.bv_len = cred->bv_len;
327 credU.bv_val = cred->bv_val;
328
329 ret = map_error( ldap_sasl_bind( ld, dnU, mechanismU, &credU,
330 serverctrlsU, clientctrlsU, message ));
331
332exit:
333 strfreeU( dnU );
334 strfreeU( mechanismU );
335 controlarrayfreeU( serverctrlsU );
336 controlarrayfreeU( clientctrlsU );
337
338#endif
339 return ret;
340}
#define ldap_sasl_bind
Definition: winldap.h:636

Referenced by ldap_sasl_bindA().

◆ ldap_search_abandon_page()

WINLDAPAPI ULONG ldap_search_abandon_page ( PLDAP  ,
PLDAPSearch   
)

◆ ldap_search_ext_sA()

WINLDAPAPI ULONG ldap_search_ext_sA ( LDAP ld,
const  PCHAR,
ULONG  scope,
const  PCHAR,
PCHAR  attrs[],
ULONG  attrsonly,
PLDAPControlA serverctrls,
PLDAPControlA clientctrls,
struct l_timeval timeout,
ULONG  sizelimit,
LDAPMessage **  res 
)

Definition at line 301 of file search.c.

304{
306#ifdef HAVE_LDAP
307 WCHAR *baseW = NULL, *filterW = NULL, **attrsW = NULL;
308 LDAPControlW **serverctrlsW = NULL, **clientctrlsW = NULL;
309
311
312 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p, %p, %p, 0x%08x, %p)\n",
313 ld, debugstr_a(base), scope, debugstr_a(filter), attrs, attrsonly,
314 serverctrls, clientctrls, timeout, sizelimit, res );
315
316 if (!ld || !res) return WLDAP32_LDAP_PARAM_ERROR;
317
318 if (base) {
319 baseW = strAtoW( base );
320 if (!baseW) goto exit;
321 }
322 if (filter) {
323 filterW = strAtoW( filter );
324 if (!filterW) goto exit;
325 }
326 if (attrs) {
327 attrsW = strarrayAtoW( attrs );
328 if (!attrsW) goto exit;
329 }
330 if (serverctrls) {
331 serverctrlsW = controlarrayAtoW( serverctrls );
332 if (!serverctrlsW) goto exit;
333 }
334 if (clientctrls) {
335 clientctrlsW = controlarrayAtoW( clientctrls );
336 if (!clientctrlsW) goto exit;
337 }
338
339 ret = ldap_search_ext_sW( ld, baseW, scope, filterW, attrsW, attrsonly,
340 serverctrlsW, clientctrlsW, timeout, sizelimit, res );
341
342exit:
343 strfreeW( baseW );
344 strfreeW( filterW );
345 strarrayfreeW( attrsW );
346 controlarrayfreeW( serverctrlsW );
347 controlarrayfreeW( clientctrlsW );
348
349#endif
350 return ret;
351}
static WCHAR baseW[MAX_PATH]
Definition: FindFiles.c:24
ULONG CDECL ldap_search_ext_sW(WLDAP32_LDAP *ld, PWCHAR base, ULONG scope, PWCHAR filter, PWCHAR attrs[], ULONG attrsonly, PLDAPControlW *serverctrls, PLDAPControlW *clientctrls, struct l_timeval *timeout, ULONG sizelimit, WLDAP32_LDAPMessage **res)
Definition: search.c:379

Referenced by test_ldap_parse_sort_control().

◆ ldap_search_ext_sW()

WINLDAPAPI ULONG ldap_search_ext_sW ( LDAP ld,
const  PWCHAR,
ULONG  scope,
const  PWCHAR,
PWCHAR  attrs[],
ULONG  attrsonly,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
struct l_timeval timeout,
ULONG  sizelimit,
LDAPMessage **  res 
)

Definition at line 379 of file search.c.

382{
384#ifdef HAVE_LDAP
385 char *baseU = NULL, *filterU = NULL, **attrsU = NULL;
386 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
387
389
390 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p, %p, %p, 0x%08x, %p)\n",
391 ld, debugstr_w(base), scope, debugstr_w(filter), attrs, attrsonly,
392 serverctrls, clientctrls, timeout, sizelimit, res );
393
394 if (!ld || !res) return WLDAP32_LDAP_PARAM_ERROR;
395
396 if (base) {
397 baseU = strWtoU( base );
398 if (!baseU) goto exit;
399 }
400 if (filter) {
401 filterU = strWtoU( filter );
402 if (!filterU) goto exit;
403 }
404 if (attrs) {
405 attrsU = strarrayWtoU( attrs );
406 if (!attrsU) goto exit;
407 }
408 if (serverctrls) {
409 serverctrlsU = controlarrayWtoU( serverctrls );
410 if (!serverctrlsU) goto exit;
411 }
412 if (clientctrls) {
413 clientctrlsU = controlarrayWtoU( clientctrls );
414 if (!clientctrlsU) goto exit;
415 }
416
417 ret = map_error( ldap_search_ext_s( ld, baseU, scope, filterU, attrsU, attrsonly,
418 serverctrlsU, clientctrlsU, (struct timeval *)timeout,
419 sizelimit, res ));
420
421exit:
422 strfreeU( baseU );
423 strfreeU( filterU );
424 strarrayfreeU( attrsU );
425 controlarrayfreeU( serverctrlsU );
426 controlarrayfreeU( clientctrlsU );
427
428#endif
429 return ret;
430}
#define ldap_search_ext_s
Definition: winldap.h:682
static char ** strarrayWtoU(LPWSTR *strarray)
Definition: wldap32.h:174

Referenced by ldap_search_ext_sA().

◆ ldap_search_extA()

WINLDAPAPI ULONG ldap_search_extA ( LDAP ,
const  PCHAR,
ULONG  ,
const  PCHAR,
PCHAR  [],
ULONG  ,
PLDAPControlW ,
PLDAPControlW ,
ULONG  ,
ULONG  ,
ULONG  
)

◆ ldap_search_extW()

WINLDAPAPI ULONG ldap_search_extW ( LDAP ld,
const  PWCHAR,
ULONG  scope,
const  PWCHAR,
PWCHAR  attrs[],
ULONG  attrsonly,
PLDAPControlW serverctrls,
PLDAPControlW clientctrls,
ULONG  timelimit,
ULONG  sizelimit,
ULONG message 
)

Definition at line 236 of file search.c.

239{
241#ifdef HAVE_LDAP
242 char *baseU = NULL, *filterU = NULL, **attrsU = NULL;
243 LDAPControl **serverctrlsU = NULL, **clientctrlsU = NULL;
244 struct timeval tv, *tvp = NULL;
245
247
248 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p, %p, 0x%08x, 0x%08x, %p)\n",
249 ld, debugstr_w(base), scope, debugstr_w(filter), attrs, attrsonly,
250 serverctrls, clientctrls, timelimit, sizelimit, message );
251
252 if (!ld) return ~0u;
253
254 if (base) {
255 baseU = strWtoU( base );
256 if (!baseU) goto exit;
257 }
258 if (filter) {
259 filterU = strWtoU( filter );
260 if (!filterU) goto exit;
261 }
262 if (attrs) {
263 attrsU = strarrayWtoU( attrs );
264 if (!attrsU) goto exit;
265 }
266 if (serverctrls) {
267 serverctrlsU = controlarrayWtoU( serverctrls );
268 if (!serverctrlsU) goto exit;
269 }
270 if (clientctrls) {
271 clientctrlsU = controlarrayWtoU( clientctrls );
272 if (!clientctrlsU) goto exit;
273 }
274
275 if (timelimit)
276 {
277 tv.tv_sec = timelimit;
278 tv.tv_usec = 0;
279 tvp = &tv;
280 }
281
282 ret = map_error( ldap_search_ext( ld, baseU, scope, filterU, attrsU, attrsonly,
283 serverctrlsU, clientctrlsU, tvp, sizelimit, (int *)message ));
284
285exit:
286 strfreeU( baseU );
287 strfreeU( filterU );
288 strarrayfreeU( attrsU );
289 controlarrayfreeU( serverctrlsU );
290 controlarrayfreeU( clientctrlsU );
291
292#endif
293 return ret;
294}
#define ldap_search_ext
Definition: winldap.h:681

Referenced by ldap_search_extA(), and test_ldap_search_extW().

◆ ldap_search_init_pageA()

WINLDAPAPI PLDAPSearch ldap_search_init_pageA ( PLDAP  ,
const  PCHAR,
ULONG  ,
const  PCHAR,
PCHAR  [],
ULONG  ,
PLDAPControlA ,
PLDAPControlA ,
ULONG  ,
ULONG  ,
PLDAPSortKeyA  
)

◆ ldap_search_init_pageW()

WINLDAPAPI PLDAPSearch ldap_search_init_pageW ( PLDAP  ,
const  PWCHAR,
ULONG  ,
const  PWCHAR,
PWCHAR  [],
ULONG  ,
PLDAPControlW ,
PLDAPControlW ,
ULONG  ,
ULONG  ,
PLDAPSortKeyW  
)

◆ ldap_search_sA()

WINLDAPAPI ULONG ldap_search_sA ( LDAP ld,
const  PCHAR,
ULONG  scope,
const  PCHAR,
PCHAR  attrs[],
ULONG  attrsonly,
LDAPMessage **  res 
)

Definition at line 437 of file search.c.

439{
441#ifdef HAVE_LDAP
442 WCHAR *baseW = NULL, *filterW = NULL, **attrsW = NULL;
443
445
446 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p)\n", ld, debugstr_a(base),
447 scope, debugstr_a(filter), attrs, attrsonly, res );
448
449 if (!ld || !res) return WLDAP32_LDAP_PARAM_ERROR;
450
451 if (base) {
452 baseW = strAtoW( base );
453 if (!baseW) goto exit;
454 }
455 if (filter) {
456 filterW = strAtoW( filter );
457 if (!filterW) goto exit;
458 }
459 if (attrs) {
460 attrsW = strarrayAtoW( attrs );
461 if (!attrsW) goto exit;
462 }
463
464 ret = ldap_search_sW( ld, baseW, scope, filterW, attrsW, attrsonly, res );
465
466exit:
467 strfreeW( baseW );
468 strfreeW( filterW );
469 strarrayfreeW( attrsW );
470
471#endif
472 return ret;
473}
ULONG CDECL ldap_search_sW(WLDAP32_LDAP *ld, PWCHAR base, ULONG scope, PWCHAR filter, PWCHAR attrs[], ULONG attrsonly, WLDAP32_LDAPMessage **res)
Definition: search.c:497

◆ ldap_search_stA()

WINLDAPAPI ULONG ldap_search_stA ( LDAP ld,
const  PCHAR,
ULONG  scope,
const  PCHAR,
PCHAR  attrs[],
ULONG  attrsonly,
struct l_timeval timeout,
LDAPMessage **  res 
)

Definition at line 541 of file search.c.

544{
546#ifdef HAVE_LDAP
547 WCHAR *baseW = NULL, *filterW = NULL, **attrsW = NULL;
548
550
551 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p, %p)\n", ld,
552 debugstr_a(base), scope, debugstr_a(filter), attrs,
553 attrsonly, timeout, res );
554
555 if (!ld || !res) return WLDAP32_LDAP_PARAM_ERROR;
556
557 if (base) {
558 baseW = strAtoW( base );
559 if (!baseW) goto exit;
560 }
561 if (filter) {
562 filterW = strAtoW( filter );
563 if (!filterW) goto exit;
564 }
565 if (attrs) {
566 attrsW = strarrayAtoW( attrs );
567 if (!attrsW) goto exit;
568 }
569
570 ret = ldap_search_stW( ld, baseW, scope, filterW, attrsW, attrsonly,
571 timeout, res );
572
573exit:
574 strfreeW( baseW );
575 strfreeW( filterW );
576 strarrayfreeW( attrsW );
577
578#endif
579 return ret;
580}
ULONG CDECL ldap_search_stW(WLDAP32_LDAP *ld, const PWCHAR base, ULONG scope, const PWCHAR filter, PWCHAR attrs[], ULONG attrsonly, struct l_timeval *timeout, WLDAP32_LDAPMessage **res)
Definition: search.c:605

◆ ldap_search_stW()

WINLDAPAPI ULONG ldap_search_stW ( LDAP ld,
const  PWCHAR,
ULONG  scope,
const  PWCHAR,
PWCHAR  attrs[],
ULONG  attrsonly,
struct l_timeval timeout,
LDAPMessage **  res 
)

Definition at line 605 of file search.c.

608{
610#ifdef HAVE_LDAP
611 char *baseU = NULL, *filterU = NULL, **attrsU = NULL;
612
614
615 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p, %p)\n", ld,
616 debugstr_w(base), scope, debugstr_w(filter), attrs,
617 attrsonly, timeout, res );
618
619 if (!ld || !res) return WLDAP32_LDAP_PARAM_ERROR;
620
621 if (base) {
622 baseU = strWtoU( base );
623 if (!baseU) goto exit;
624 }
625 if (filter) {
626 filterU = strWtoU( filter );
627 if (!filterU) goto exit;
628 }
629 if (attrs) {
630 attrsU = strarrayWtoU( attrs );
631 if (!attrsU) goto exit;
632 }
633
634 ret = map_error( ldap_search_ext_s( ld, baseU, scope, filterU, attrsU, attrsonly,
635 NULL, NULL, (struct timeval *)timeout, 0, res ));
636
637exit:
638 strfreeU( baseU );
639 strfreeU( filterU );
640 strarrayfreeU( attrsU );
641
642#endif
643 return ret;
644}

Referenced by ldap_search_stA().

◆ ldap_search_sW()

WINLDAPAPI ULONG ldap_search_sW ( LDAP ld,
const  PWCHAR,
ULONG  scope,
const  PWCHAR,
PWCHAR  attrs[],
ULONG  attrsonly,
LDAPMessage **  res 
)

Definition at line 497 of file search.c.

499{
501#ifdef HAVE_LDAP
502 char *baseU = NULL, *filterU = NULL, **attrsU = NULL;
503
505
506 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x, %p)\n", ld, debugstr_w(base),
507 scope, debugstr_w(filter), attrs, attrsonly, res );
508
509 if (!ld || !res) return WLDAP32_LDAP_PARAM_ERROR;
510
511 if (base) {
512 baseU = strWtoU( base );
513 if (!baseU) goto exit;
514 }
515 if (filter) {
516 filterU = strWtoU( filter );
517 if (!filterU) goto exit;
518 }
519 if (attrs) {
520 attrsU = strarrayWtoU( attrs );
521 if (!attrsU) goto exit;
522 }
523
524 ret = map_error( ldap_search_ext_s( ld, baseU, scope, filterU, attrsU, attrsonly,
525 NULL, NULL, NULL, 0, res ));
526
527exit:
528 strfreeU( baseU );
529 strfreeU( filterU );
530 strarrayfreeU( attrsU );
531
532#endif
533 return ret;
534}

Referenced by ldap_search_sA().

◆ ldap_searchA()

WINLDAPAPI ULONG ldap_searchA ( LDAP ld,
const  PCHAR,
ULONG  scope,
const  PCHAR,
PCHAR  attrs[],
ULONG  attrsonly 
)

Definition at line 44 of file search.c.

46{
48#ifdef HAVE_LDAP
49 WCHAR *baseW = NULL, *filterW = NULL, **attrsW = NULL;
50
52
53 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x)\n", ld, debugstr_a(base),
54 scope, debugstr_a(filter), attrs, attrsonly );
55
56 if (!ld) return ~0u;
57
58 if (base) {
59 baseW = strAtoW( base );
60 if (!baseW) goto exit;
61 }
62 if (filter) {
63 filterW = strAtoW( filter );
64 if (!filterW) goto exit;
65 }
66 if (attrs) {
67 attrsW = strarrayAtoW( attrs );
68 if (!attrsW) goto exit;
69 }
70
71 ret = ldap_searchW( ld, baseW, scope, filterW, attrsW, attrsonly );
72
73exit:
74 strfreeW( baseW );
75 strfreeW( filterW );
76 strarrayfreeW( attrsW );
77
78#endif
79 return ret;
80}
ULONG CDECL ldap_searchW(WLDAP32_LDAP *ld, PWCHAR base, ULONG scope, PWCHAR filter, PWCHAR attrs[], ULONG attrsonly)
Definition: search.c:105

◆ ldap_searchW()

WINLDAPAPI ULONG ldap_searchW ( LDAP ld,
const  PWCHAR,
ULONG  scope,
const  PWCHAR,
PWCHAR  attrs[],
ULONG  attrsonly 
)

Definition at line 105 of file search.c.

107{
109#ifdef HAVE_LDAP
110 char *baseU = NULL, *filterU = NULL, **attrsU = NULL;
111 int msg;
112
114
115 TRACE( "(%p, %s, 0x%08x, %s, %p, 0x%08x)\n", ld, debugstr_w(base),
116 scope, debugstr_w(filter), attrs, attrsonly );
117
118 if (!ld) return ~0u;
119
120 if (base) {
121 baseU = strWtoU( base );
122 if (!baseU) goto exit;
123 }
124 if (filter) {
125 filterU = strWtoU( filter );
126 if (!filterU) goto exit;
127 }
128 if (attrs) {
129 attrsU = strarrayWtoU( attrs );
130 if (!attrsU) goto exit;
131 }
132
133 ret = ldap_search_ext( ld, baseU, scope, filterU, attrsU, attrsonly,
134 NULL, NULL, NULL, 0, &msg );
135
136 if (ret == LDAP_SUCCESS)
137 ret = msg;
138 else
139 ret = ~0u;
140
141exit:
142 strfreeU( baseU );
143 strfreeU( filterU );
144 strarrayfreeU( attrsU );
145
146#endif
147 return ret;
148}

Referenced by ldap_searchA().

◆ ldap_set_optionA()

WINLDAPAPI ULONG ldap_set_optionA ( LDAP ,
int  ,
const void  
)

◆ ldap_set_optionW()

WINLDAPAPI ULONG ldap_set_optionW ( LDAP ,
int  ,
const void  
)

◆ ldap_simple_bind_sA()

WINLDAPAPI ULONG ldap_simple_bind_sA ( LDAP ld,
const  PCHAR,
const  PCHAR 
)

Definition at line 561 of file bind.c.

562{
564#ifdef HAVE_LDAP
565 WCHAR *dnW = NULL, *passwdW = NULL;
566
568
569 TRACE( "(%p, %s, %p)\n", ld, debugstr_a(dn), passwd );
570
571 if (!ld) return WLDAP32_LDAP_PARAM_ERROR;
572
573 if (dn) {
574 dnW = strAtoW( dn );
575 if (!dnW) goto exit;
576 }
577 if (passwd) {
578 passwdW = strAtoW( passwd );
579 if (!passwdW) goto exit;
580 }
581
582 ret = ldap_simple_bind_sW( ld, dnW, passwdW );
583
584exit:
585 strfreeW( dnW );
586 strfreeW( passwdW );
587
588#endif
589 return ret;
590}
ULONG CDECL ldap_simple_bind_sW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR passwd)
Definition: bind.c:609

◆ ldap_simple_bind_sW()

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

◆ ldap_simple_bindA()

WINLDAPAPI ULONG ldap_simple_bindA ( LDAP ld,
const  PCHAR,
const  PCHAR 
)

Definition at line 467 of file bind.c.

468{
470#ifdef HAVE_LDAP
471 WCHAR *dnW = NULL, *passwdW = NULL;
472
474
475 TRACE( "(%p, %s, %p)\n", ld, debugstr_a(dn), passwd );
476
477 if (!ld) return ~0u;
478
479 if (dn) {
480 dnW = strAtoW( dn );
481 if (!dnW) goto exit;
482 }
483 if (passwd) {
484 passwdW = strAtoW( passwd );
485 if (!passwdW) goto exit;
486 }
487
488 ret = ldap_simple_bindW( ld, dnW, passwdW );
489
490exit:
491 strfreeW( dnW );
492 strfreeW( passwdW );
493
494#endif
495 return ret;
496}
ULONG CDECL ldap_simple_bindW(WLDAP32_LDAP *ld, PWCHAR dn, PWCHAR passwd)
Definition: bind.c:515

◆ ldap_simple_bindW()

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

◆ ldap_sslinitA()

WINLDAPAPI PLDAP ldap_sslinitA ( PCHAR  hostname,
ULONG  portnumber,
int  secure 
)

Definition at line 496 of file init.c.

497{
498#ifdef HAVE_LDAP
499 WLDAP32_LDAP *ld;
500 WCHAR *hostnameW = NULL;
501
502 TRACE( "(%s, %d, 0x%08x)\n", debugstr_a(hostname), portnumber, secure );
503
504 if (hostname) {
505 hostnameW = strAtoW( hostname );
506 if (!hostnameW) return NULL;
507 }
508
509 ld = ldap_sslinitW( hostnameW, portnumber, secure );
510
511 strfreeW( hostnameW );
512 return ld;
513
514#else
515 return NULL;
516#endif
517}
WLDAP32_LDAP *CDECL ldap_sslinitW(PWCHAR hostname, ULONG portnumber, int secure)
Definition: init.c:542
static int secure
Definition: server.c:138

◆ ldap_sslinitW()

WINLDAPAPI PLDAP ldap_sslinitW ( PWCHAR  hostname,
ULONG  portnumber,
int  secure 
)

Definition at line 542 of file init.c.

543{
544#ifdef HAVE_LDAP
545 WLDAP32_LDAP *ld = NULL;
546 char *hostnameU = NULL, *url = NULL;
547
548 TRACE( "(%s, %d, 0x%08x)\n", debugstr_w(hostname), portnumber, secure );
549
550 if (hostname) {
551 hostnameU = strWtoU( hostname );
552 if (!hostnameU) goto exit;
553 }
554 else {
555 hostnameU = strWtoU( defaulthost );
556 if (!hostnameU) goto exit;
557 }
558
559 if (secure)
560 url = urlify_hostnames( "ldaps://", hostnameU, portnumber );
561 else
562 url = urlify_hostnames( "ldap://", hostnameU, portnumber );
563
564 if (!url) goto exit;
565 ldap_initialize( &ld, url );
566
567exit:
568 strfreeU( hostnameU );
569 strfreeU( url );
570 return ld;
571
572#else
573 return NULL;
574#endif
575}

Referenced by ldap_sslinitA().

◆ ldap_start_tls_sA()

WINLDAPAPI ULONG ldap_start_tls_sA ( LDAP ,
PLDAPControlA ,
PLDAPControlA  
)

◆ ldap_start_tls_sW()

WINLDAPAPI ULONG ldap_start_tls_sW ( LDAP ,
PLDAPControlW ,
PLDAPControlW  
)

◆ ldap_stop_tls_s()

WINLDAPAPI BOOLEAN ldap_stop_tls_s ( LDAP ld)

Definition at line 686 of file init.c.

687{
688 TRACE( "(%p)\n", ld );
689 return TRUE; /* FIXME: find a way to stop tls on a connection */
690}
#define TRUE
Definition: types.h:120

◆ ldap_ufn2dnA()

WINLDAPAPI ULONG ldap_ufn2dnA ( const  PCHAR,
PCHAR dn 
)

Definition at line 229 of file dn.c.

230{
232#ifdef HAVE_LDAP
233 PWCHAR ufnW = NULL, dnW = NULL;
234
235 TRACE( "(%s, %p)\n", debugstr_a(ufn), dn );
236
237 if (!dn) return WLDAP32_LDAP_PARAM_ERROR;
238
239 *dn = NULL;
240
241 if (ufn) {
242 ufnW = strAtoW( ufn );
243 if (!ufnW) return WLDAP32_LDAP_NO_MEMORY;
244 }
245
246 ret = ldap_ufn2dnW( ufnW, &dnW );
247
248 if (dnW) {
249 *dn = strWtoA( dnW );
250 if (!*dn) ret = WLDAP32_LDAP_NO_MEMORY;
251 }
252
253 strfreeW( ufnW );
254 ldap_memfreeW( dnW );
255
256#endif
257 return ret;
258}
ULONG CDECL ldap_ufn2dnW(PWCHAR ufn, PWCHAR *dn)
Definition: dn.c:276

◆ ldap_ufn2dnW()

WINLDAPAPI ULONG ldap_ufn2dnW ( const  PWCHAR,
PWCHAR dn 
)

Definition at line 276 of file dn.c.

277{
279#ifdef HAVE_LDAP
280 char *ufnU = NULL;
281
282 TRACE( "(%s, %p)\n", debugstr_w(ufn), dn );
283
284 if (!dn) return WLDAP32_LDAP_PARAM_ERROR;
285
286 *dn = NULL;
287
288 if (ufn) {
289 ufnU = strWtoU( ufn );
290 if (!ufnU) return WLDAP32_LDAP_NO_MEMORY;
291
292 /* FIXME: do more than just a copy */
293 *dn = strUtoW( ufnU );
294 if (!*dn) ret = WLDAP32_LDAP_NO_MEMORY;
295 }
296
297 strfreeU( ufnU );
298
299#endif
300 return ret;
301}

Referenced by ldap_ufn2dnA().

◆ ldap_unbind()

WINLDAPAPI ULONG ldap_unbind ( LDAP )

Referenced by nfs41_idmap_free(), and START_TEST().

◆ ldap_unbind_s()

WINLDAPAPI ULONG ldap_unbind_s ( LDAP )

◆ ldap_value_free_len()

WINLDAPAPI ULONG ldap_value_free_len ( struct berval **  )

◆ ldap_value_freeA()

WINLDAPAPI ULONG ldap_value_freeA ( PCHAR vals)

Definition at line 344 of file value.c.

345{
346 TRACE( "(%p)\n", vals );
347
348 strarrayfreeA( vals );
350}
static void strarrayfreeA(LPSTR *strarray)
Definition: wldap32.h:214

◆ ldap_value_freeW()

WINLDAPAPI ULONG ldap_value_freeW ( PWCHAR vals)

Definition at line 364 of file value.c.

365{
366 TRACE( "(%p)\n", vals );
367
368 strarrayfreeW( vals );
370}

Referenced by ldap_explode_dnA(), ldap_get_optionA(), ldap_get_valuesA(), ldap_parse_referenceA(), and ldap_parse_resultA().

◆ LdapGetLastError()

WINLDAPAPI ULONG LdapGetLastError ( void  )

Definition at line 184 of file error.c.

185{
186 TRACE( "\n" );
187 return GetLastError();
188}
DWORD WINAPI GetLastError(void)
Definition: except.c:1042

Referenced by nfs41_idmap_create().

◆ LdapMapErrorToWin32()

WINLDAPAPI ULONG LdapMapErrorToWin32 ( ULONG  err)

Definition at line 302 of file error.c.

303{
304 TRACE( "(0x%08x)\n", err );
305
308 return WLDAP32_errormap[err];
309}
#define ARRAY_SIZE(A)
Definition: main.h:33
static const ULONG WLDAP32_errormap[]
Definition: error.c:190
#define ERROR_DS_GENERIC_ERROR
Definition: winerror.h:1575

Referenced by idmap_query_attrs(), and nfs41_idmap_create().

◆ LdapUnicodeToUTF8()

WINLDAPAPI INT LdapUnicodeToUTF8 ( LPCWSTR  src,
int  srclen,
LPSTR  dst,
int  dstlen 
)

Definition at line 636 of file misc.c.

637{
639}
#define WideCharToMultiByte
Definition: compat.h:111
#define CP_UTF8
Definition: nls.h:20

◆ LdapUTF8ToUnicode()

WINLDAPAPI INT LdapUTF8ToUnicode ( LPCSTR  src,
int  srclen,
LPWSTR  dst,
int  dstlen 
)

Definition at line 658 of file misc.c.

659{
661}
#define MultiByteToWideChar
Definition: compat.h:110

◆ ULONG()

typedef ULONG ( __cdecl  QUERYFORCONNECTION)

Variable Documentation

◆ PSecPkgContext_IssuerListInfoEx

Definition at line 345 of file winldap.h.