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, unlang_result_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
- 28632280953943c96312b9590c861bc504652efa
- 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.
◆ attr_filter_env_t
◆ 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.
static unlang_action_t attr_filter_common(TALLOC_CTX *ctx, unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request, fr_pair_list_t *list)
Definition at line 394 of file rlm_attr_filter.c.
◆ attr_filter_common()
◆ attr_filter_getfile()
◆ check_pair()
◆ mod_instantiate()
◆ attr_fall_through
◆ attr_filter_env
Initial value:= {
.pair.dflt =
"Realm", .pair.dflt_quote =
T_BARE_WORD },
}
}
#define CALL_ENV_TERMINATOR
#define FR_CALL_ENV_METHOD_OUT(_inst)
Helper macro for populating the size/type fields of a call_env_method_t from the output structure typ...
@ CALL_ENV_FLAG_CONCAT
If the tmpl produced multiple boxes they should be concatenated.
@ CALL_ENV_FLAG_NULLABLE
Tmpl expansions are allowed to produce no output.
#define FR_CALL_ENV_OFFSET(_name, _cast_type, _flags, _struct, _field)
Specify a call_env_parser_t which writes out runtime results to the specified field.
@ FR_TYPE_STRING
String of printable characters.
Definition at line 85 of file rlm_attr_filter.c.
◆ 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_READABLE
File matching value must exist, and must be readable.
Definition at line 53 of file rlm_attr_filter.c.
◆ rlm_attr_filter
Initial value:= {
.common = {
.name = "attr_filter",
},
.method_group = {
}
}
}
#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 const call_env_method_t attr_filter_env
static int mod_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 406 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 63 of file rlm_attr_filter.c.
◆ rlm_attr_filter_dict_attr
Initial value:= {
{ NULL }
}
@ 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 76 of file rlm_attr_filter.c.