The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Macros | Functions | Variables
base.c File Reference

LDAP sync process module. More...

#include <freeradius-devel/server/protocol.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/ldap/sync.h>
#include <freeradius-devel/server/process.h>
+ Include dependency graph for base.c:

Go to the source code of this file.

Data Structures

struct  process_ldap_sync_sections_t
 
struct  process_ldap_sync_t
 

Macros

#define LOG_PREFIX   "process_ldap_sync"
 
#define PROCESS_CODE_MAX   FR_LDAP_SYNC_CODE_MAX
 
#define PROCESS_INST   process_ldap_sync_t
 
#define PROCESS_PACKET_CODE_VALID   FR_LDAP_SYNC_PACKET_CODE_VALID
 
#define PROCESS_PACKET_TYPE   fr_ldap_sync_packet_code_t
 

Functions

static void ldap_sync_packet_debug (request_t *request, fr_packet_t *packet, fr_pair_list_t *list, bool received)
 
static unlang_action_t mod_process (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
 

Variables

static fr_dict_attr_t const * attr_packet_type
 
static virtual_server_compile_t const compile_list []
 
static fr_dict_t const * dict_ldap_sync
 
static char const * ldap_sync_message_types [FR_LDAP_SYNC_CODE_MAX]
 
fr_process_module_t process_ldap_sync
 
fr_dict_autoload_t process_ldap_sync_dict []
 
fr_dict_attr_autoload_t process_ldap_sync_dict_attr []
 
static fr_process_state_t const process_state []
 

Detailed Description

LDAP sync process module.

Id
a36e06ae7b56befa3306d7ba7f1633bfaa6cc641

Definition in file base.c.


Data Structure Documentation

◆ process_ldap_sync_sections_t

struct process_ldap_sync_sections_t

Definition at line 82 of file base.c.

+ Collaboration diagram for process_ldap_sync_sections_t:
Data Fields
CONF_SECTION * load_cookie
uint64_t nothing
CONF_SECTION * recv_add
CONF_SECTION * recv_delete
CONF_SECTION * recv_modify
CONF_SECTION * recv_present
CONF_SECTION * store_cookie

◆ process_ldap_sync_t

struct process_ldap_sync_t

Definition at line 93 of file base.c.

+ Collaboration diagram for process_ldap_sync_t:
Data Fields
process_ldap_sync_sections_t sections

Macro Definition Documentation

◆ LOG_PREFIX

#define LOG_PREFIX   "process_ldap_sync"

Definition at line 24 of file base.c.

◆ PROCESS_CODE_MAX

#define PROCESS_CODE_MAX   FR_LDAP_SYNC_CODE_MAX

Definition at line 98 of file base.c.

◆ PROCESS_INST

#define PROCESS_INST   process_ldap_sync_t

Definition at line 100 of file base.c.

◆ PROCESS_PACKET_CODE_VALID

#define PROCESS_PACKET_CODE_VALID   FR_LDAP_SYNC_PACKET_CODE_VALID

Definition at line 99 of file base.c.

◆ PROCESS_PACKET_TYPE

#define PROCESS_PACKET_TYPE   fr_ldap_sync_packet_code_t

Definition at line 97 of file base.c.

Function Documentation

◆ ldap_sync_packet_debug()

static void ldap_sync_packet_debug ( request_t request,
fr_packet_t packet,
fr_pair_list_t list,
bool  received 
)
static

Definition at line 60 of file base.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ mod_process()

static unlang_action_t mod_process ( rlm_rcode_t p_result,
module_ctx_t const *  mctx,
request_t request 
)
static

Definition at line 104 of file base.c.

+ Here is the call graph for this function:

Variable Documentation

◆ attr_packet_type

fr_dict_attr_t const* attr_packet_type
static

Definition at line 38 of file base.c.

◆ compile_list

virtual_server_compile_t const compile_list[]
static

Definition at line 196 of file base.c.

◆ dict_ldap_sync

fr_dict_t const* dict_ldap_sync
static

Definition at line 30 of file base.c.

◆ ldap_sync_message_types

char const* ldap_sync_message_types[FR_LDAP_SYNC_CODE_MAX]
static
Initial value:
= {
"",
"Present",
"Add",
"Modify",
"Delete",
"Entry-Response",
"Cookie-Load",
"Cookie-Load-Response",
"Cookie-Store",
"Cookie-Store-Response",
}

Definition at line 47 of file base.c.

◆ process_ldap_sync

fr_process_module_t process_ldap_sync
Initial value:
= {
.common = {
.name = "process_ldap_sync",
.inst_size = sizeof(process_ldap_sync_t),
},
.process = mod_process,
.compile_list = compile_list,
.dict = &dict_ldap_sync,
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
Definition: dl_module.h:65
static unlang_action_t mod_process(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Definition: base.c:104
static virtual_server_compile_t const compile_list[]
Definition: base.c:196
static fr_dict_t const * dict_ldap_sync
Definition: base.c:30

Definition at line 238 of file base.c.

◆ process_ldap_sync_dict

fr_dict_autoload_t process_ldap_sync_dict
Initial value:
= {
{ .out = &dict_ldap_sync, .proto = "ldap" },
{ NULL }
}

Definition at line 33 of file base.c.

◆ process_ldap_sync_dict_attr

fr_dict_attr_autoload_t process_ldap_sync_dict_attr
Initial value:
= {
{ .out = &attr_packet_type, .name = "Packet-Type", .type= FR_TYPE_UINT32, .dict = &dict_ldap_sync },
{ NULL }
}
@ FR_TYPE_UINT32
32 Bit unsigned integer.
Definition: merged_model.c:99
static fr_dict_attr_t const * attr_packet_type
Definition: base.c:38

Definition at line 41 of file base.c.

◆ process_state

fr_process_state_t const process_state[]
static

Definition at line 125 of file base.c.