![]() |
The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
#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. | |
| static unlang_action_t | ldap_map_profile_resume (request_t *request, void *uctx) |
| Process the results of a profile lookup. | |
| unlang_action_t | rlm_ldap_map_profile (fr_ldap_result_code_t *ret, int *applied, 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. | |
| struct ldap_profile_ctx_t |
Collaboration diagram for ldap_profile_ctx_t:| Data Fields | ||
|---|---|---|
| int * | applied | Number of profiles applied. |
| 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. |
|
static |
|
static |
| unlang_action_t rlm_ldap_map_profile | ( | fr_ldap_result_code_t * | ret, |
| int * | applied, | ||
| 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.
| [out] | ret | Where to write the result of the query. |
| [out] | applied | Where to write the number of profiles applied. |
| [in] | inst | LDAP module instance. |
| [in] | request | Current request. |
| [in] | ttrunk | Trunk connection on which to run LDAP queries. |
| [in] | dn | of profile object to apply. |
| [in] | scope | to apply when looking up profiles. |
| [in] | filter | to apply when looking up profiles. |
| [in] | expanded | Structure containing a list of xlat expanded attribute names and mapping information. |
Definition at line 212 of file profile.c.
Here is the call graph for this function:
Here is the caller graph for this function:
1.9.8