All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Typedefs | Functions | Variables
rlm_always.c File Reference

Return preconfigured fixed rcodes. More...

#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/modcall.h>
+ Include dependency graph for rlm_always.c:

Go to the source code of this file.

Data Structures

struct  rlm_always_t


typedef struct rlm_always_t rlm_always_t


static rlm_rcode_t CC_HINT (nonnull)
static int mod_instantiate (CONF_SECTION *conf, void *instance)
static void reparse_rcode (rlm_always_t *inst)
 Reparse the rcode if it changed. More...


static const CONF_PARSER module_config []
module_t rlm_always

Detailed Description

Return preconfigured fixed rcodes.


Definition in file rlm_always.c.

Data Structure Documentation

struct rlm_always_t

Definition at line 35 of file rlm_always.c.

Data Fields
bool mpp
char const * name Name of this instance of the always module.
rlm_rcode_t rcode The integer constant representing rcode_str.
char const * rcode_old Make changing the rcode work with %{poke:} and radmin.
char const * rcode_str The base value.
uint32_t simulcount

Typedef Documentation

typedef struct rlm_always_t rlm_always_t

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )

Definition at line 99 of file rlm_always.c.

+ Here is the call graph for this function:

static int mod_instantiate ( CONF_SECTION conf,
void *  instance 

Definition at line 55 of file rlm_always.c.

+ Here is the call graph for this function:

static void reparse_rcode ( rlm_always_t inst)

Reparse the rcode if it changed.

Look ma, no locks...
instModule instance.

Definition at line 80 of file rlm_always.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const CONF_PARSER module_config[]
Initial value:
= {
{ FR_CONF_OFFSET("rcode", PW_TYPE_STRING, rlm_always_t, rcode_str), .dflt = "fail" },
{ FR_CONF_OFFSET("simulcount", PW_TYPE_INTEGER, rlm_always_t, simulcount), .dflt = "0" },
{ FR_CONF_OFFSET("mpp", PW_TYPE_BOOLEAN, rlm_always_t, mpp), .dflt = "no" },
Definition: conffile.h:289
A truth value.
Definition: radius.h:56
32 Bit unsigned integer.
Definition: radius.h:34
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
String of printable characters.
Definition: radius.h:33

Definition at line 48 of file rlm_always.c.

module_t rlm_always
Initial value:
= {
.name = "always",
.inst_size = sizeof(rlm_always_t),
.config = module_config,
.instantiate = mod_instantiate,
.methods = {
[MOD_AUTHENTICATE] = mod_always_return,
[MOD_AUTHORIZE] = mod_always_return,
[MOD_PREACCT] = mod_always_return,
[MOD_ACCOUNTING] = mod_always_return,
[MOD_PRE_PROXY] = mod_always_return,
[MOD_POST_PROXY] = mod_always_return,
[MOD_POST_AUTH] = mod_always_return,
[MOD_RECV_COA] = mod_always_return,
[MOD_SEND_COA] = mod_always_return
5 methods index for preproxy section.
Definition: modules.h:46
7 methods index for postauth section.
Definition: modules.h:48
Definition: modules.h:86
Will be restarted on HUP.
Definition: modules.h:79
static int mod_instantiate(CONF_SECTION *conf, void *instance)
Definition: rlm_always.c:55
4 methods index for checksimul section.
Definition: modules.h:45
3 methods index for accounting section.
Definition: modules.h:44
struct rlm_always_t rlm_always_t
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[]
Definition: rlm_always.c:48
0 methods index for authenticate section.
Definition: modules.h:41
6 methods index for postproxy section.
Definition: modules.h:47
2 methods index for preacct section.
Definition: modules.h:43
8 methods index for recvcoa section.
Definition: modules.h:50
9 methods index for sendcoa section.
Definition: modules.h:51
1 methods index for authorize section.
Definition: modules.h:42

Definition at line 127 of file rlm_always.c.