Reads client definitions from flat files as required.
More...
#include "lib/server/cf_util.h"
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/map_proc.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/unlang/xlat_func.h>
Go to the source code of this file.
|
static int | _map_proc_client_get_vp (TALLOC_CTX *ctx, fr_pair_list_t *out, request_t *request, map_t const *map, void *uctx) |
|
static unlang_action_t | map_proc_client (rlm_rcode_t *p_result, UNUSED void const *mod_inst, UNUSED void *proc_inst, request_t *request, fr_value_box_list_t *client_override, map_list_t const *maps) |
| Map multiple attributes from a client into the request. More...
|
|
static unlang_action_t | mod_authorize (rlm_rcode_t *p_result, UNUSED module_ctx_t const *mctx, request_t *request) |
|
static int | mod_load (void) |
|
static void | mod_unload (void) |
|
static xlat_action_t | xlat_client (TALLOC_CTX *ctx, fr_dcursor_t *out, UNUSED xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| xlat to get client config data More...
|
|
Reads client definitions from flat files as required.
- Id
- b6fbff0dfcd0570fa97dfe40577d722a66276e8d
- Copyright
- 2008 The FreeRADIUS server project
-
2008 Alan DeKok (aland.nosp@m.@dep.nosp@m.loyin.nosp@m.grad.nosp@m.ius.c.nosp@m.om)
-
2016 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
Definition in file rlm_client.c.
◆ client_get_vp_ctx_t
struct client_get_vp_ctx_t |
Client field.
Definition at line 38 of file rlm_client.c.
Data Fields |
CONF_PAIR * |
cp |
First instance of the field in the client's CONF_SECTION. |
CONF_SECTION * |
cs |
Client's CONF_SECTION. |
char const * |
field |
Field name. |
◆ _map_proc_client_get_vp()
◆ map_proc_client()
Map multiple attributes from a client into the request.
- Parameters
-
[out] | p_result | Result of applying the map:
|
[in] | mod_inst | NULL. |
[in] | proc_inst | NULL. |
[in] | request | The current request. |
[in] | client_override | If NULL, use the current client, else use the client matching the ip given. |
[in] | maps | Head of the map list. |
- Returns
- UNLANG_ACTION_CALCULATE_RESULT
Definition at line 119 of file rlm_client.c.
◆ mod_authorize()
◆ mod_load()
static int mod_load |
( |
void |
| ) |
|
|
static |
◆ mod_unload()
static void mod_unload |
( |
void |
| ) |
|
|
static |
◆ rlm_client
Initial value:= {
.common = {
.name = "dynamic_clients",
},
.method_group = {
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static int mod_load(void)
static void mod_unload(void)
static unlang_action_t mod_authorize(rlm_rcode_t *p_result, UNUSED module_ctx_t const *mctx, request_t *request)
#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 381 of file rlm_client.c.
◆ xlat_client_args
Initial value:= {
}
@ FR_TYPE_STRING
String of printable characters.
#define XLAT_ARG_PARSER_TERMINATOR
Definition at line 219 of file rlm_client.c.