25 RCSID(
"$Id: fa36a9c5dfa6dd1c2ce3bd7ab1d70bdda91580fb $")
27 #include <freeradius-devel/radiusd.h>
28 #include <freeradius-devel/modules.h>
29 #include <freeradius-devel/modcall.h>
86 WARN(
"rlm_always (%s): Ignoring rcode change. rcode value \"%s\" is invalid ", inst->
name,
108 #ifdef WITH_SESSION_MGMT
120 if (inst->
mpp) request->simul_mpp = 2;
132 .config = module_config,
139 #ifdef WITH_SESSION_MGMT
5 methods index for preproxy section.
Metadata exported by the module.
7 methods index for postauth section.
#define CONF_PARSER_TERMINATOR
Error resolving rcode (should not be returned by modules).
rlm_rcode_t rcode
The integer constant representing rcode_str.
static rlm_rcode_t CC_HINT(nonnull)
#define RLM_TYPE_HUP_SAFE
Will be restarted on HUP.
static int mod_instantiate(CONF_SECTION *conf, void *instance)
Defines a CONF_PAIR to C data type mapping.
const FR_NAME_NUMBER mod_rcode_table[]
int fr_str2int(FR_NAME_NUMBER const *table, char const *name, int def)
4 methods index for checksimul section.
3 methods index for accounting section.
struct rlm_always_t rlm_always_t
char const * rcode_old
Make changing the rcode work with %{poke:} and radmin.
static rlm_rcode_t mod_checksimul(void *instance, REQUEST *request)
Check if a given user is already logged in.
static const CONF_PARSER module_config[]
void void cf_log_err_cs(CONF_SECTION const *cs, char const *fmt,...) CC_HINT(format(printf
0 methods index for authenticate section.
char const * rcode_str
The base value.
enum rlm_rcodes rlm_rcode_t
Return codes indicating the result of the module call.
char const * cf_section_name1(CONF_SECTION const *cs)
uint64_t magic
Used to validate module struct.
#define FR_CONF_OFFSET(_n, _t, _s, _f)
6 methods index for postproxy section.
2 methods index for preacct section.
8 methods index for recvcoa section.
char const * name
Name of this instance of the always module.
9 methods index for sendcoa section.
String of printable characters.
1 methods index for authorize section.
char const * cf_section_name2(CONF_SECTION const *cs)
static void reparse_rcode(rlm_always_t *inst)
Reparse the rcode if it changed.