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

Parses NAIs and assigns requests to realms. More...

#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include "trustrouter.h"
+ Include dependency graph for rlm_realm.c:

Go to the source code of this file.

Data Structures

struct  rlm_realm_t




typedef struct rlm_realm_t rlm_realm_t


static rlm_rcode_t CC_HINT (nonnull)
static int check_for_realm (void *instance, REQUEST *request, REALM **returnrealm)
static int mod_instantiate (CONF_SECTION *conf, void *instance)
static rlm_rcode_t mod_realm_recv_coa (UNUSED void *instance, REQUEST *request)


static CONF_PARSER module_config []
module_t rlm_realm

Detailed Description

Parses NAIs and assigns requests to realms.


Definition in file rlm_realm.c.

Data Structure Documentation

struct rlm_realm_t

Definition at line 34 of file rlm_realm.c.

Data Fields
char const * delim
int format
char const * format_string
bool ignore_default
bool ignore_null

Macro Definition Documentation


Definition at line 31 of file rlm_realm.c.


Definition at line 32 of file rlm_realm.c.

Typedef Documentation

typedef struct rlm_realm_t rlm_realm_t

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )

Definition at line 393 of file rlm_realm.c.

+ Here is the call graph for this function:

static int check_for_realm ( void *  instance,
REQUEST request,
REALM **  returnrealm 

Definition at line 70 of file rlm_realm.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int mod_instantiate ( CONF_SECTION conf,
void *  instance 

Definition at line 349 of file rlm_realm.c.

+ Here is the call graph for this function:

static rlm_rcode_t mod_realm_recv_coa ( UNUSED void *  instance,
REQUEST request 

Definition at line 454 of file rlm_realm.c.

+ Here is the call graph for this function:

Variable Documentation

CONF_PARSER module_config[]
Initial value:
= {
{ FR_CONF_OFFSET("format", PW_TYPE_STRING, rlm_realm_t, format_string), .dflt = "suffix" },
{ FR_CONF_OFFSET("delimiter", PW_TYPE_STRING, rlm_realm_t, delim), .dflt = "@" },
{ FR_CONF_OFFSET("ignore_default", PW_TYPE_BOOLEAN, rlm_realm_t, ignore_default), .dflt = "no" },
{ FR_CONF_OFFSET("ignore_null", PW_TYPE_BOOLEAN, rlm_realm_t, ignore_null), .dflt = "no" },
Definition: conffile.h:289
A truth value.
Definition: radius.h:56
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
String of printable characters.
Definition: radius.h:33

Definition at line 49 of file rlm_realm.c.

module_t rlm_realm
Initial value:
= {
.name = "realm",
.inst_size = sizeof(struct rlm_realm_t),
.config = module_config,
.instantiate = mod_instantiate,
.methods = {
[MOD_PREACCT] = mod_preacct,
static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
Handle authorization requests using Couchbase document data.
Definition: modules.h:86
Will be restarted on HUP.
Definition: modules.h:79
static rlm_rcode_t mod_realm_recv_coa(UNUSED void *instance, REQUEST *request)
Definition: rlm_realm.c:454
static int mod_instantiate(CONF_SECTION *conf, void *instance)
Definition: rlm_realm.c:349
static CONF_PARSER module_config[]
Definition: rlm_realm.c:49
2 methods index for preacct section.
Definition: modules.h:43
8 methods index for recvcoa section.
Definition: modules.h:50
1 methods index for authorize section.
Definition: modules.h:42

Definition at line 503 of file rlm_realm.c.