Translates requests between the server an a Lua interpreter.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/server/module_rlm.h>
#include "lua.h"
Go to the source code of this file.
Translates requests between the server an a Lua interpreter.
- Id
- f65d06bfcf8297adb3e158d97fefe2ade77acd77
- Author
- Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
- Copyright
- 2016 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
-
2016 The FreeRADIUS Server Project.
Definition in file rlm_lua.c.
◆ DO_LUA
Value:
{\
}
unlang_action_t
Returned by unlang_op_t calls, determine the next action of the interpreter.
unlang_action_t fr_lua_run(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request, char const *funcname)
Temporary structure to hold arguments for module calls.
#define RETURN_MODULE_NOOP
rlm_rcode_t
Return codes indicating the result of the module call.
eap_aka_sim_process_conf_t * inst
#define talloc_get_type_abort_const
Definition at line 58 of file rlm_lua.c.
◆ LOG_PREFIX
◆ mod_detach()
Close the global interpreter.
Definition at line 107 of file rlm_lua.c.
◆ mod_instantiate()
◆ mod_thread_detach()
Free any thread specific interpreters.
Definition at line 76 of file rlm_lua.c.
◆ mod_thread_instantiate()
Create thread-specific connections and buffers.
- Parameters
-
[in] | mctx | specific data (where we write the interpreter). |
- Returns
- 0 on success.
- -1 on failure.
Definition at line 95 of file rlm_lua.c.
◆ 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 44 of file rlm_lua.c.
◆ rlm_lua
Initial value:= {
.common = {
.name = "lua",
},
.method_group = {
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static unlang_action_t mod_authenticate(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static unlang_action_t mod_authorize(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static unlang_action_t mod_accounting(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
Write accounting data to Couchbase documents.
static unlang_action_t mod_post_auth(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static int mod_detach(module_detach_ctx_t const *mctx)
Close the global interpreter.
static int mod_thread_instantiate(module_thread_inst_ctx_t const *mctx)
Create thread-specific connections and buffers.
static const conf_parser_t module_config[]
static int mod_thread_detach(module_thread_inst_ctx_t const *mctx)
Free any thread specific interpreters.
static int mod_instantiate(module_inst_ctx_t const *mctx)
static unlang_action_t mod_preacct(rlm_rcode_t *p_result, module_ctx_t const *mctx, UNUSED 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 168 of file rlm_lua.c.