Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Data Structures | Macros | Typedefs | Functions | Variables
afw_ldap_internal.h File Reference

Adaptive Framework LDAP Internal Header
More...

#include "afw_minimal.h"
#include "generated/afw_ldap_generated.h"
#include <apr_ldap.h>

Go to the source code of this file.

Data Structures

struct  afw_ldap_internal_adaptor_s
 
struct  afw_ldap_internal_adaptor_session_s
 

Macros

#define AFW_LDAP_TIMEVAL   struct timeval
 

Typedefs

typedef struct afw_ldap_metadata_attribute_type_s afw_ldap_metadata_attribute_type_t
 
typedef struct afw_ldap_metadata_syntax_handler_s afw_ldap_metadata_syntax_handler_t
 
typedef struct afw_ldap_metadata_s afw_ldap_metadata_t
 
typedef struct afw_ldap_object_type_attribute_s afw_ldap_object_type_attribute_t
 
typedef const afw_value_t *(* afw_ldap_ber_to_value_p_cb_t) (const afw_ldap_metadata_attribute_type_t *attribute_type, void *data, struct berval **bv, const afw_pool_t *p, afw_xctx_t *xctx)
 
typedef struct berval **(* afw_ldap_value_to_ber_p_cb_t) (const afw_ldap_metadata_attribute_type_t *attribute_type, void *data, const afw_value_t *value, const afw_pool_t *p, afw_xctx_t *xctx)
 
typedef struct afw_ldap_internal_adaptor_s afw_ldap_internal_adaptor_t
 
typedef struct afw_ldap_internal_adaptor_session_s afw_ldap_internal_adaptor_session_t
 

Functions

 AFW_LDAP_DECLARE_INTERNAL_CONST_DATA (afw_adaptor_factory_t) afw_ldap_adaptor_factory
 
const afw_adaptor_tafw_ldap_internal_adaptor_create_cede_p (const afw_object_t *properties, const afw_pool_t *p, afw_xctx_t *xctx)
 Internal create an LDAP adaptor. More...
 
afw_ldap_internal_adaptor_session_tafw_ldap_internal_adaptor_session_create (afw_ldap_internal_adaptor_t *adaptor, afw_xctx_t *xctx)
 Internal create an LDAP adaptor session. More...
 
void afw_ldap_internal_cleanup_ldap_msgfree (void *data, void *data2, const afw_pool_t *p, afw_xctx_t *xctx)
 
void afw_ldap_internal_cleanup_ldap_value_free_len (void *data, void *data2, const afw_pool_t *p, afw_xctx_t *xctx)
 
void afw_ldap_internal_cleanup_ldap_memfree (void *data, void *data2, const afw_pool_t *p, afw_xctx_t *xctx)
 
LDAPMessage * afw_ldap_internal_search_s (afw_ldap_internal_adaptor_session_t *session, const afw_utf8_z_t *dn, int ldap_scope, const afw_utf8_z_t *filter, afw_xctx_t *xctx)
 
const afw_utf8_tafw_ldap_internal_get_object_id (afw_ldap_internal_adaptor_session_t *self, LDAPMessage *e, afw_boolean_t check_base, afw_xctx_t *xctx)
 
void afw_ldap_internal_session_begin (afw_ldap_internal_adaptor_session_t *self, afw_xctx_t *xctx)
 
void afw_ldap_internal_session_end (afw_ldap_internal_adaptor_session_t *self)
 
const afw_object_tafw_ldap_internal_create_object_from_entry (afw_ldap_internal_adaptor_session_t *self, const afw_utf8_t *object_type_id, const afw_utf8_t *object_id, LDAPMessage *e, const afw_pool_t *p, afw_xctx_t *xctx)
 
const afw_utf8_tafw_ldap_internal_expression_from_query_criteria (afw_ldap_internal_adaptor_session_t *session, const afw_query_criteria_filter_entry_t *entry, afw_xctx_t *xctx)
 
void afw_ldap_internal_syntax_handler_assign (afw_ldap_metadata_t *metadata, afw_ldap_metadata_attribute_type_t *attribute_type, afw_xctx_t *xctx)
 
const afw_value_tafw_ldap_internal_syntax_handler_unknown_to_value (struct berval **bv, const afw_pool_t *p, afw_xctx_t *xctx)
 

Variables

char * afw_ldap_internal_allattrs []
 

Detailed Description

Adaptive Framework LDAP Internal Header

Definition in file afw_ldap_internal.h.

Function Documentation

◆ afw_ldap_internal_adaptor_create_cede_p()

const afw_adaptor_t* afw_ldap_internal_adaptor_create_cede_p ( const afw_object_t properties,
const afw_pool_t p,
afw_xctx_t xctx 
)

Internal create an LDAP adaptor.

Parameters
propertiesParameters.
pto use for adaptor resources.
xctxof caller.
Returns
New instance of LDAP adaptor.
Todo:
FIXME: add parameter.

Definition at line 27 of file afw_ldap_adaptor.c.

◆ afw_ldap_internal_adaptor_session_create()

afw_ldap_internal_adaptor_session_t* afw_ldap_internal_adaptor_session_create ( afw_ldap_internal_adaptor_t adaptor,
afw_xctx_t xctx 
)

Internal create an LDAP adaptor session.

Parameters
adaptorInternal instance of adaptor.
xctxof caller.
Returns
New instance of LDAP adaptor session.

Definition at line 26 of file afw_ldap_adaptor_session.c.

◆ afw_ldap_internal_syntax_handler_assign()

void afw_ldap_internal_syntax_handler_assign ( afw_ldap_metadata_t metadata,
afw_ldap_metadata_attribute_type_t attribute_type,
afw_xctx_t xctx 
)
Todo:
FIXME: Add support for normal LDAP, probably using oid lookup.

Definition at line 1292 of file afw_ldap_syntax_handler.c.