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

Unixy things. More...

#include <freeradius-devel/radiusd.h>
#include <grp.h>
#include <pwd.h>
#include <sys/stat.h>
#include "config.h"
#include <freeradius-devel/modules.h>
#include <freeradius-devel/sysutmp.h>
+ Include dependency graph for rlm_unix.c:

Go to the source code of this file.

Data Structures

struct  rlm_unix
 

Macros

#define ENC(c)   trans[c]
 

Typedefs

typedef struct rlm_unix rlm_unix_t
 

Functions

static rlm_rcode_t CC_HINT (nonnull)
 
static int groupcmp (UNUSED void *instance, REQUEST *request, UNUSED VALUE_PAIR *req_vp, VALUE_PAIR *check, UNUSED VALUE_PAIR *check_pairs, UNUSED VALUE_PAIR **reply_pairs)
 
static int mod_bootstrap (CONF_SECTION *conf, void *instance)
 
static char * uue (void *in)
 

Variables

static const CONF_PARSER module_config []
 
module_t rlm_unix
 
static
USES_APPLE_DEPRECATED_API char 
trans [64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
 

Detailed Description

Unixy things.

Id:
329ed2916ae82a2a17f60377f26d5a21d7777f3d

authentication: Unix user authentication accounting: Functions to write radwtmp file. Also contains handler for "Group".

Definition in file rlm_unix.c.


Data Structure Documentation

struct rlm_unix

Definition at line 61 of file rlm_unix.c.

Data Fields
char const * name Instance name.
char const * radwtmp

Macro Definition Documentation

#define ENC (   c)    trans[c]

Definition at line 59 of file rlm_unix.c.

Typedef Documentation

typedef struct rlm_unix rlm_unix_t

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )
static

Definition at line 180 of file rlm_unix.c.

static int groupcmp ( UNUSED void *  instance,
REQUEST request,
UNUSED VALUE_PAIR req_vp,
VALUE_PAIR check,
UNUSED VALUE_PAIR check_pairs,
UNUSED VALUE_PAIR **  reply_pairs 
)
static

Definition at line 74 of file rlm_unix.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

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

Definition at line 126 of file rlm_unix.c.

+ Here is the call graph for this function:

static char* uue ( void *  in)
static

Definition at line 329 of file rlm_unix.c.

Variable Documentation

const CONF_PARSER module_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("radwtmp", PW_TYPE_FILE_OUTPUT | PW_TYPE_REQUIRED, rlm_unix_t, radwtmp), .dflt = "NULL" },
}
#define CONF_PARSER_TERMINATOR
Definition: conffile.h:289
#define PW_TYPE_FILE_OUTPUT
File matching value must exist, and must be writeable.
Definition: conffile.h:205
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
#define PW_TYPE_REQUIRED
Error out if no matching CONF_PAIR is found, and no dflt value is set.
Definition: conffile.h:200

Definition at line 66 of file rlm_unix.c.

Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "unix",
.inst_size = sizeof(rlm_unix_t),
.config = module_config,
.bootstrap = mod_bootstrap,
.methods = {
},
}
static rlm_rcode_t mod_accounting(void *instance, REQUEST *request)
Write accounting data to Couchbase documents.
#define RLM_TYPE_THREAD_UNSAFE
Module is not threadsafe.
Definition: modules.h:76
struct rlm_unix rlm_unix_t
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
3 methods index for accounting section.
Definition: modules.h:44
static const CONF_PARSER module_config[]
Definition: rlm_unix.c:66
static int mod_bootstrap(CONF_SECTION *conf, void *instance)
Definition: rlm_unix.c:126
1 methods index for authorize section.
Definition: modules.h:42

Definition at line 535 of file rlm_unix.c.

USES_APPLE_DEPRECATED_API char trans[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"
static

Definition at line 58 of file rlm_unix.c.