ldap_api_fn.h File Reference

#include <ldap.h>
#include "../../str.h"
#include "../../sr_module.h"

Include dependency graph for ldap_api_fn.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define LDAP_MAX_FILTER_LEN   1024

Functions

void get_last_ldap_result (LDAP **_last_ldap_handle, LDAPMessage **_last_ldap_result)
int get_ldap_handle (char *_lds_name, LDAP **_ldap_handle)
int ldap_get_attr_vals (str *_attr_name, struct berval ***_vals)
int ldap_inc_result_pointer (void)
int ldap_params_search (int *_ld_result_count, char *_lds_name, char *_dn, int _scope, char **_attrs, char *_filter,...)
int ldap_str2scope (char *scope_str)
int ldap_url_search (char *_ldap_url, int *_ld_result_count)


Define Documentation

#define LDAP_MAX_FILTER_LEN   1024

Definition at line 41 of file ldap_api_fn.h.

Referenced by ldap_params_search().


Function Documentation

void get_last_ldap_result ( LDAP **  _last_ldap_handle,
LDAPMessage **  _last_ldap_result 
)

Definition at line 144 of file ldap_api_fn.c.

References last_ldap_handle, and last_ldap_result.

Referenced by load_ldap().

int get_ldap_handle ( char *  _lds_name,
LDAP **  _ldap_handle 
)

Definition at line 82 of file ldap_api_fn.c.

References get_connected_ldap_session(), and ld_session::handle.

Referenced by load_ldap().

int ldap_get_attr_vals ( str _attr_name,
struct berval ***  _vals 
)

Definition at line 311 of file ldap_api_fn.c.

References last_ldap_handle, last_ldap_result, _str::len, LM_ERR, NULL, and _str::s.

Referenced by ldap_result_check(), ldap_write_result(), and load_ldap().

int ldap_inc_result_pointer ( void   ) 

Definition at line 280 of file ldap_api_fn.c.

References last_ldap_handle, last_ldap_result, LM_ERR, and NULL.

Referenced by ldap_result_next(), and load_ldap().

int ldap_params_search ( int *  _ld_result_count,
char *  _lds_name,
char *  _dn,
int  _scope,
char **  _attrs,
char *  _filter,
  ... 
)

Definition at line 150 of file ldap_api_fn.c.

References LDAP_MAX_FILTER_LEN, lds_search(), LM_DBG, LM_ERR, NULL, and vsnprintf.

Referenced by ldap_url_search(), and load_ldap().

int ldap_str2scope ( char *  scope_str  ) 

Definition at line 364 of file ldap_api_fn.c.

Referenced by load_ldap().

int ldap_url_search ( char *  _ldap_url,
int *  _ld_result_count 
)

Definition at line 240 of file ldap_api_fn.c.

References ldap_params_search(), LM_DBG, LM_ERR, NULL, and ZSW.

Referenced by ldap_search_impl(), and load_ldap().


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