The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Data Structures | Functions
profile.c File Reference
#include "rlm_ldap.h"
#include <freeradius-devel/ldap/conf.h>
#include <freeradius-devel/server/map_proc.h>
#include <freeradius-devel/server/module_rlm.h>
+ Include dependency graph for profile.c:

Go to the source code of this file.

Data Structures

struct  ldap_profile_ctx_t
 Holds state of in progress async profile lookups. More...
 

Functions

static void ldap_map_profile_cancel (UNUSED request_t *request, UNUSED fr_signal_t action, void *uctx)
 Cancel an in progress profile lookup. More...
 
static unlang_action_t ldap_map_profile_resume (UNUSED rlm_rcode_t *p_result, UNUSED int *priority, request_t *request, void *uctx)
 Process the results of a profile lookup. More...
 
unlang_action_t rlm_ldap_map_profile (fr_ldap_result_code_t *ret, rlm_ldap_t const *inst, request_t *request, fr_ldap_thread_trunk_t *ttrunk, char const *dn, int scope, char const *filter, fr_ldap_map_exp_t const *expanded)
 Search for and apply an LDAP profile. More...
 

Data Structure Documentation

◆ ldap_profile_ctx_t

struct ldap_profile_ctx_t

Holds state of in progress async profile lookups.

Definition at line 43 of file profile.c.

+ Collaboration diagram for ldap_profile_ctx_t:
Data Fields
char const * dn
fr_ldap_map_exp_t const * expanded
rlm_ldap_t const * inst
fr_ldap_query_t * query
fr_ldap_result_code_t * ret Result of the query and applying the map.

Function Documentation

◆ ldap_map_profile_cancel()

static void ldap_map_profile_cancel ( UNUSED request_t request,
UNUSED fr_signal_t  action,
void *  uctx 
)
static

Cancel an in progress profile lookup.

Definition at line 119 of file profile.c.

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

◆ ldap_map_profile_resume()

static unlang_action_t ldap_map_profile_resume ( UNUSED rlm_rcode_t p_result,
UNUSED int *  priority,
request_t request,
void *  uctx 
)
static

Process the results of a profile lookup.

Definition at line 54 of file profile.c.

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

◆ rlm_ldap_map_profile()

unlang_action_t rlm_ldap_map_profile ( fr_ldap_result_code_t ret,
rlm_ldap_t const *  inst,
request_t request,
fr_ldap_thread_trunk_t ttrunk,
char const *  dn,
int  scope,
char const *  filter,
fr_ldap_map_exp_t const *  expanded 
)

Search for and apply an LDAP profile.

LDAP profiles are mapped using the same attribute map as user objects, they're used to add common sets of attributes to the request.

Parameters
[out]retWhere to write the result of the query.
[in]instLDAP module instance.
[in]requestCurrent request.
[in]ttrunkTrunk connection on which to run LDAP queries.
[in]dnof profile object to apply.
[in]scopeto apply when looking up profiles.
[in]filterto apply when looking up profiles.
[in]expandedStructure containing a list of xlat expanded attribute names and mapping information.
Returns
One of the RLM_MODULE_* values.

Definition at line 144 of file profile.c.

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