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>
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... | |
struct 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. |
|
static |
|
static |
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.
[out] | ret | Where to write the result of the query. |
[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 144 of file profile.c.