#include <string.h>#include <stdio.h>#include <ldap.h>#include "../../ut.h"#include "../../str.h"#include "../../pvar.h"#include "../../usr_avp.h"#include "../../mem/mem.h"#include "ldap_exp_fn.h"#include "ldap_connect.h"#include "ldap_api_fn.h"#include "ldap_escape.h"

Go to the source code of this file.
Defines | |
| #define | ESC_BUF_SIZE 65536 |
| #define | STR_BUF_SIZE 1024 |
Functions | |
| int | ldap_filter_url_encode (struct sip_msg *_msg, pv_elem_t *_filter_component, pv_spec_t *_dst_avp_spec) |
| int | ldap_result_check (struct sip_msg *_msg, struct ldap_result_check_params *_lrp, struct subst_expr *_se) |
| int | ldap_result_next (void) |
| int | ldap_search_impl (struct sip_msg *_msg, pv_elem_t *_ldap_url) |
| int | ldap_write_result (struct sip_msg *_msg, struct ldap_result_params *_lrp, struct subst_expr *_se) |
Variables | |
| static char | esc_buf [ESC_BUF_SIZE] |
| static char | str_buf [STR_BUF_SIZE] |
| #define ESC_BUF_SIZE 65536 |
| #define STR_BUF_SIZE 1024 |
Definition at line 49 of file ldap_exp_fn.c.
| int ldap_filter_url_encode | ( | struct sip_msg * | _msg, | |
| pv_elem_t * | _filter_component, | |||
| pv_spec_t * | _dst_avp_spec | |||
| ) |
Definition at line 311 of file ldap_exp_fn.c.
References add_avp(), AVP_NAME_STR, AVP_VAL_STR, dst_avp_name, dst_avp_type, esc_buf, ESC_BUF_SIZE, ldap_rfc4515_escape(), _str::len, LM_ERR, pv_get_avp_name(), pv_printf_s(), _pv_spec::pvp, _str::s, int_str::s, str_buf, and STR_BUF_SIZE.
Referenced by w_ldap_filter_url_encode().
| int ldap_result_check | ( | struct sip_msg * | _msg, | |
| struct ldap_result_check_params * | _lrp, | |||
| struct subst_expr * | _se | |||
| ) |
Definition at line 232 of file ldap_exp_fn.c.
References ldap_result_check_params::check_str_elem_p, ldap_result_check_params::ldap_attr_name, ldap_get_attr_vals(), _str::len, LM_DBG, LM_ERR, NULL, pkg_free, pv_printf_s(), _str::s, and subst_str().
Referenced by w_ldap_result_check_1(), and w_ldap_result_check_2().
| int ldap_result_next | ( | void | ) |
Definition at line 215 of file ldap_exp_fn.c.
References ldap_inc_result_pointer().
Referenced by w_ldap_result_next().
Definition at line 60 of file ldap_exp_fn.c.
References _pv_spec::getf, ldap_url_search(), _str::len, LM_ERR, LM_INFO, NULL, pv_printf_s(), _str::s, _pv_elem::spec, and _pv_elem::text.
Referenced by w_ldap_search().
| int ldap_write_result | ( | struct sip_msg * | _msg, | |
| struct ldap_result_params * | _lrp, | |||
| struct subst_expr * | _se | |||
| ) |
Definition at line 100 of file ldap_exp_fn.c.
References add_avp(), AVP_NAME_STR, AVP_VAL_STR, dst_avp_name, ldap_result_params::dst_avp_spec, dst_avp_type, ldap_result_params::dst_avp_val_type, ldap_result_params::ldap_attr_name, ldap_get_attr_vals(), _str::len, LM_ERR, int_str::n, NULL, pkg_free, pv_get_avp_name(), _pv_spec::pvp, _str::s, int_str::s, str2sint(), str_buf, STR_BUF_SIZE, and subst_str().
Referenced by w_ldap_result1(), and w_ldap_result2().
char esc_buf[ESC_BUF_SIZE] [static] |
char str_buf[STR_BUF_SIZE] [static] |
Definition at line 52 of file ldap_exp_fn.c.
1.5.6