The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Functions for mapping between LDAP and FreeRADIUS attributes. More...
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/ldap/base.h>
Go to the source code of this file.
Functions | |
int | fr_ldap_map_do (request_t *request, char const *valuepair_attr, fr_ldap_map_exp_t const *expanded, LDAPMessage *entry) |
Convert attribute map into valuepairs. More... | |
int | fr_ldap_map_expand (TALLOC_CTX *ctx, fr_ldap_map_exp_t *expanded, request_t *request, map_list_t const *maps, char const *generic_attr) |
Expand values in an attribute map where needed. More... | |
USES_APPLE_DEPRECATED_API int | fr_ldap_map_getvalue (TALLOC_CTX *ctx, fr_pair_list_t *out, request_t *request, map_t const *map, void *uctx) |
Callback for map_to_request. More... | |
int | fr_ldap_map_verify (map_t *map, UNUSED void *instance) |
Functions for mapping between LDAP and FreeRADIUS attributes.
Definition in file map.c.
int fr_ldap_map_do | ( | request_t * | request, |
char const * | valuepair_attr, | ||
fr_ldap_map_exp_t const * | expanded, | ||
LDAPMessage * | entry | ||
) |
Convert attribute map into valuepairs.
Use the attribute map built earlier to convert LDAP values into valuepairs and insert them into whichever list they need to go into.
This is NOT atomic, but there's no condition for which we should error out...
[in] | request | Current request. |
[in] | valuepair_attr | Treat attribute with this name as holding complete AVP definitions. |
[in] | expanded | attributes (rhs of map). |
[in] | entry | to retrieve attributes from. |
Definition at line 323 of file map.c.
int fr_ldap_map_expand | ( | TALLOC_CTX * | ctx, |
fr_ldap_map_exp_t * | expanded, | ||
request_t * | request, | ||
map_list_t const * | maps, | ||
char const * | generic_attr | ||
) |
Expand values in an attribute map where needed.
[in] | ctx | o allocate any dynamic expansions in. |
[out] | expanded | array of attributes. Need not be initialised (we'll initialise). |
[in] | request | The current request. |
[in] | maps | to expand. |
[in] | generic_attr | name to append to the attribute list. |
Definition at line 271 of file map.c.
USES_APPLE_DEPRECATED_API int fr_ldap_map_getvalue | ( | TALLOC_CTX * | ctx, |
fr_pair_list_t * | out, | ||
request_t * | request, | ||
map_t const * | map, | ||
void * | uctx | ||
) |