ldap_mod.c File Reference

#include <stdio.h>
#include <string.h>
#include <sys/time.h>
#include "../../ut.h"
#include "../../parser/hf.h"
#include "../../sr_module.h"
#include "../../pvar.h"
#include "../../mem/mem.h"
#include "ld_session.h"
#include "ldap_exp_fn.h"
#include "api.h"
#include "ldap_connect.h"
#include "ldap_api_fn.h"
#include "iniparser.h"

Include dependency graph for ldap_mod.c:

Go to the source code of this file.

Defines

#define DEF_LDAP_CONFIG   "/usr/local/etc/kamailio/ldap.cfg"

Functions

static int child_init (int rank)
static void destroy (void)
static int ldap_filter_url_encode_fixup (void **param, int param_no)
static int ldap_result_check_fixup (void **param, int param_no)
static int ldap_result_fixup (void **param, int param_no)
static int ldap_search_fixup (void **param, int param_no)
static MODULE_VERSION int mod_init (void)
static int w_ldap_filter_url_encode (struct sip_msg *msg, char *filter_component, char *dst_avp_name)
static int w_ldap_result1 (struct sip_msg *msg, char *src, char *param)
static int w_ldap_result2 (struct sip_msg *msg, char *src, char *subst)
static int w_ldap_result_check_1 (struct sip_msg *msg, char *attr_name_check_str, char *param)
static int w_ldap_result_check_2 (struct sip_msg *msg, char *attr_name_check_str, char *attr_val_re)
static int w_ldap_result_next (struct sip_msg *msg, char *foo, char *bar)
static int w_ldap_search (struct sip_msg *msg, char *ldap_url, char *param)

Variables

static cmd_export_t cmds []
static dictionaryconfig_vals = NULL
struct module_exports exports
str ldap_config = str_init(DEF_LDAP_CONFIG)
static param_export_t params []


Define Documentation

#define DEF_LDAP_CONFIG   "/usr/local/etc/kamailio/ldap.cfg"

Definition at line 86 of file ldap_mod.c.


Function Documentation

static int child_init ( int  rank  )  [static]

static void destroy ( void   )  [static]

static int ldap_filter_url_encode_fixup ( void **  param,
int  param_no 
) [static]

static int ldap_result_check_fixup ( void **  param,
int  param_no 
) [static]

static int ldap_result_fixup ( void **  param,
int  param_no 
) [static]

static int ldap_search_fixup ( void **  param,
int  param_no 
) [static]

Definition at line 314 of file ldap_mod.c.

References E_CFG, _str::len, LM_ERR, NULL, pv_parse_format(), _str::s, and s.

static int mod_init ( void   )  [static]

static int w_ldap_filter_url_encode ( struct sip_msg msg,
char *  filter_component,
char *  dst_avp_name 
) [static]

Definition at line 288 of file ldap_mod.c.

References ldap_filter_url_encode().

static int w_ldap_result1 ( struct sip_msg msg,
char *  src,
char *  param 
) [static]

Definition at line 272 of file ldap_mod.c.

References ldap_write_result(), and NULL.

static int w_ldap_result2 ( struct sip_msg msg,
char *  src,
char *  subst 
) [static]

Definition at line 277 of file ldap_mod.c.

References ldap_write_result().

static int w_ldap_result_check_1 ( struct sip_msg msg,
char *  attr_name_check_str,
char *  param 
) [static]

Definition at line 295 of file ldap_mod.c.

References ldap_result_check(), and NULL.

static int w_ldap_result_check_2 ( struct sip_msg msg,
char *  attr_name_check_str,
char *  attr_val_re 
) [static]

Definition at line 302 of file ldap_mod.c.

References ldap_result_check().

static int w_ldap_result_next ( struct sip_msg msg,
char *  foo,
char *  bar 
) [static]

Definition at line 283 of file ldap_mod.c.

References ldap_result_next().

static int w_ldap_search ( struct sip_msg msg,
char *  ldap_url,
char *  param 
) [static]

Definition at line 267 of file ldap_mod.c.

References ldap_search_impl().


Variable Documentation

cmd_export_t cmds[] [static]

Definition at line 97 of file ldap_mod.c.

dictionary* config_vals = NULL [static]

Definition at line 92 of file ldap_mod.c.

Definition at line 139 of file ldap_mod.c.

str ldap_config = str_init(DEF_LDAP_CONFIG)

Definition at line 91 of file ldap_mod.c.

param_export_t params[] [static]

Initial value:

 {

   {"config_file",          STR_PARAM, &ldap_config},
   {0, 0, 0}
}

Definition at line 129 of file ldap_mod.c.


Generated on Wed May 23 18:00:41 2012 for Kamailio - The Open Source SIP Server by  doxygen 1.5.6