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

Allow login only during a given timeslot. More...

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

Go to the source code of this file.

Data Structures

struct  rlm_logintime_t
 

Typedefs

typedef struct rlm_logintime_t rlm_logintime_t
 

Functions

static rlm_rcode_t CC_HINT (nonnull)
 
static int mod_instantiate (CONF_SECTION *conf, void *instance)
 
static int time_of_day (UNUSED void *instance, REQUEST *req, UNUSED VALUE_PAIR *request, VALUE_PAIR *check, UNUSED VALUE_PAIR *check_pairs, UNUSED VALUE_PAIR **reply_pairs)
 
static int timecmp (UNUSED void *instance, REQUEST *req, UNUSED VALUE_PAIR *request, VALUE_PAIR *check, UNUSED VALUE_PAIR *check_pairs, UNUSED VALUE_PAIR **reply_pairs)
 
int timestr_match (char const *, time_t)
 

Variables

static const CONF_PARSER module_config []
 
module_t rlm_logintime
 

Detailed Description

Allow login only during a given timeslot.

Id:
c04554e6d9ceec6fbdfe62471815a6cdff4a5fe1

Definition in file rlm_logintime.c.


Data Structure Documentation

struct rlm_logintime_t

Definition at line 42 of file rlm_logintime.c.

Data Fields
uint32_t min_time

Typedef Documentation

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )
static

Definition at line 145 of file rlm_logintime.c.

+ Here is the call graph for this function:

static int mod_instantiate ( CONF_SECTION conf,
void *  instance 
)
static

Definition at line 221 of file rlm_logintime.c.

+ Here is the call graph for this function:

static int time_of_day ( UNUSED void *  instance,
REQUEST req,
UNUSED VALUE_PAIR request,
VALUE_PAIR check,
UNUSED VALUE_PAIR check_pairs,
UNUSED VALUE_PAIR **  reply_pairs 
)
static

Definition at line 81 of file rlm_logintime.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static int timecmp ( UNUSED void *  instance,
REQUEST req,
UNUSED VALUE_PAIR request,
VALUE_PAIR check,
UNUSED VALUE_PAIR check_pairs,
UNUSED VALUE_PAIR **  reply_pairs 
)
static

Definition at line 64 of file rlm_logintime.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int timestr_match ( char const *  tmstr,
time_t  t 
)

Definition at line 199 of file timestr.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

const CONF_PARSER module_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("minimum_timeout", PW_TYPE_INTEGER, rlm_logintime_t, min_time), .dflt = "60" },
}
#define CONF_PARSER_TERMINATOR
Definition: conffile.h:289
32 Bit unsigned integer.
Definition: radius.h:34
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168

Definition at line 55 of file rlm_logintime.c.

module_t rlm_logintime
Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "logintime",
.inst_size = sizeof(rlm_logintime_t),
.config = module_config,
.instantiate = mod_instantiate,
.methods = {
},
}
7 methods index for postauth section.
Definition: modules.h:48
static const CONF_PARSER module_config[]
Definition: rlm_logintime.c:55
static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
Handle authorization requests using Couchbase document data.
#define RLM_MODULE_INIT
Definition: modules.h:86
struct rlm_logintime_t rlm_logintime_t
static int mod_instantiate(CONF_SECTION *conf, void *instance)
1 methods index for authorize section.
Definition: modules.h:42

Definition at line 249 of file rlm_logintime.c.