Filter the contents of a list, allowing only certain attributes.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/users_file.h>
#include <sys/stat.h>
#include <ctype.h>
#include <fcntl.h>
Go to the source code of this file.
|
static unlang_action_t | attr_filter_common (TALLOC_CTX *ctx, rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request, fr_pair_list_t *list) |
|
static int | attr_filter_getfile (TALLOC_CTX *ctx, module_inst_ctx_t const *mctx, char const *filename, PAIR_LIST_LIST *pair_list) |
|
static void | check_pair (request_t *request, fr_pair_t *check_item, fr_pair_t *reply_item, int *pass, int *fail) |
|
static int | mod_instantiate (module_inst_ctx_t const *mctx) |
|
Filter the contents of a list, allowing only certain attributes.
- Id
- 72413589333cbc5bcdf8576bd87256d798aee1cd
- Copyright
- (C) 2001,2006 The FreeRADIUS server project
-
(C) 2001 Chris Parker (cpark.nosp@m.er@s.nosp@m.tarne.nosp@m.tusa.nosp@m..net)
Definition in file rlm_attr_filter.c.
◆ rlm_attr_filter_t
◆ LOG_PREFIX
◆ RLM_AF_FUNC
#define RLM_AF_FUNC |
( |
|
_x, |
|
|
|
_y |
|
) |
| |
Value:
{ \
return
attr_filter_common(request->_y##_ctx, p_result, mctx, request, &request->_y##_pairs); \
}
unlang_action_t
Returned by unlang_op_t calls, determine the next action of the interpreter.
Temporary structure to hold arguments for module calls.
rlm_rcode_t
Return codes indicating the result of the module call.
static unlang_action_t attr_filter_common(TALLOC_CTX *ctx, rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request, fr_pair_list_t *list)
Definition at line 358 of file rlm_attr_filter.c.
◆ attr_filter_common()
◆ attr_filter_getfile()
◆ check_pair()
◆ mod_instantiate()
◆ attr_fall_through
◆ attr_relax_filter
◆ attr_stripped_user_name
◆ attr_vendor_specific
◆ dict_freeradius
◆ dict_radius
◆ module_config
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
#define FR_CONF_OFFSET_FLAGS(_name, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
@ CONF_FLAG_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
@ CONF_FLAG_FILE_INPUT
File matching value must exist, and must be readable.
Definition at line 50 of file rlm_attr_filter.c.
◆ rlm_attr_filter
Initial value:= {
.common = {
.name = "attr_filter",
},
.method_group = {
{ .section =
SECTION_NAME(
"recv",
"accounting-request"), .method = mod_request },
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static const conf_parser_t module_config[]
static int mod_instantiate(module_inst_ctx_t const *mctx)
static int instantiate(module_inst_ctx_t const *mctx)
#define SECTION_NAME(_name1, _name2)
Define a section name consisting of a verb and a noun.
#define MODULE_BINDING_TERMINATOR
Terminate a module binding list.
Named methods exported by a module.
Definition at line 370 of file rlm_attr_filter.c.
◆ rlm_attr_filter_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
static fr_dict_t const * dict_radius
Definition at line 61 of file rlm_attr_filter.c.
◆ rlm_attr_filter_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_BOOL
A truth value.
@ FR_TYPE_VSA
Vendor-Specific, for RADIUS attribute 26.
static fr_dict_attr_t const * attr_relax_filter
static fr_dict_attr_t const * attr_stripped_user_name
static fr_dict_attr_t const * attr_fall_through
static fr_dict_attr_t const * attr_vendor_specific
Definition at line 74 of file rlm_attr_filter.c.