#include "setup.h"#include <stdio.h>#include <string.h>#include <stdarg.h>#include <stdlib.h>#include <ctype.h>#include <errno.h>#include "urldata.h"#include <curl/curl.h>#include "sendf.h"#include "escape.h"#include "transfer.h"#include "strequal.h"#include "strtok.h"#include "ldap.h"#include "memory.h"#include "base64.h"#include <curl/mprintf.h>#include "memdebug.h"Go to the source code of this file.
Classes | |
| struct | bv |
| struct | ldap_url_desc |
Defines | |
| #define | _MPRINTF_REPLACE |
| #define | __cdecl |
| #define | LDAP_SIZELIMIT_EXCEEDED 4 |
| #define | LDAP_VERSION2 2 |
| #define | LDAP_VERSION3 3 |
| #define | LDAP_OPT_PROTOCOL_VERSION 0x0011 |
| #define | DLOPEN_MODE RTLD_LAZY |
| #define | DYNA_GET_FUNCTION(type, fnc) |
| #define | ZERO_NULL 0 |
| #define | LDAP_TRACE(x) ((void)0) |
Typedefs | |
| typedef void *(* | dynafunc )(void *input) |
| typedef struct ldap_url_desc | LDAPURLDesc |
Functions | |
| static int | DynaOpen (const char **mod_name) |
| static void | DynaClose (void) |
| static dynafunc | DynaGetFunction (const char *name) |
| CURLcode | Curl_ldap (struct connectdata *conn, bool *done) |
| #define __cdecl |
| #define DLOPEN_MODE RTLD_LAZY |
| #define DYNA_GET_FUNCTION | ( | type, | |||
| fnc | ) |
Value:
do { \ (fnc) = (type)DynaGetFunction(#fnc); \ if ((fnc) == NULL) \ return CURLE_FUNCTION_NOT_FOUND; \ } while (0)
Definition at line 98 of file ldap.c.
Referenced by Curl_ldap().
| #define LDAP_OPT_PROTOCOL_VERSION 0x0011 |
| #define LDAP_SIZELIMIT_EXCEEDED 4 |
| #define LDAP_TRACE | ( | x | ) | ((void)0) |
| #define LDAP_VERSION2 2 |
| #define LDAP_VERSION3 3 |
| #define ZERO_NULL 0 |
CygWin etc. configure could set these, but we don't want it. Must use WLdap32.dll code.
Definition at line 117 of file ldap.c.
Referenced by CreateConnection(), Curl_open(), and DynaGetFunction().
| typedef struct ldap_url_desc LDAPURLDesc |
| CURLcode Curl_ldap | ( | struct connectdata * | conn, | |
| bool * | done | |||
| ) |
type should be 'LDAPMessage *'
is really 'BerElement **'
suspicious that this isn't 'const'
Definition at line 253 of file ldap.c.
References __cdecl, connectdata::bits, bv::bv_len, bv::bv_val, SessionHandle::change, CLIENTWRITE_BODY, ConnectBits::close, Curl_base64_encode(), Curl_client_write(), Curl_setup_transfer(), CURLE_COULDNT_CONNECT, CURLE_LDAP_CANNOT_BIND, CURLE_LDAP_INVALID_URL, CURLE_LDAP_SEARCH_FAILED, CURLE_LIBRARY_NOT_FOUND, CURLE_OK, connectdata::data, DYNA_GET_FUNCTION, DynaClose(), DynaOpen(), failf, FALSE, free, connectdata::host, infof, LDAP_OPT_PROTOCOL_VERSION, LDAP_SIZELIMIT_EXCEEDED, LDAP_TRACE, LDAP_VERSION2, LDAP_VERSION3, ldap_url_desc::lud_attrs, ldap_url_desc::lud_dn, ldap_url_desc::lud_filter, ldap_url_desc::lud_scope, hostname::name, NULL, connectdata::passwd, connectdata::port, TRUE, DynamicStatic::url, connectdata::user, and ConnectBits::user_passwd.
Referenced by CreateConnection().
| static void DynaClose | ( | void | ) | [static] |
| static dynafunc DynaGetFunction | ( | const char * | name | ) | [static] |
| static int DynaOpen | ( | const char ** | mod_name | ) | [static] |
Definition at line 135 of file ldap.c.
References DL_LDAP_FILE, DLOPEN_MODE, and NULL.
Referenced by Curl_ldap().
1.5.6