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

Supports auth against SecurID servers using OTP h/w tokens. More...

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

Go to the source code of this file.

Enumerations

enum  SECURID_AUTH_RC {
  RC_SECURID_AUTH_SUCCESS = 0,
  RC_SECURID_AUTH_FAILURE = -3,
  RC_SECURID_AUTH_ACCESS_DENIED_FAILURE = -4,
  RC_SECURID_AUTH_INVALID_SERVER_FAILURE = -5,
  RC_SECURID_AUTH_CHALLENGE = -17
}
 

Functions

static rlm_rcode_t CC_HINT (nonnull)
 
static int mod_detach (void *instance)
 
static int mod_instantiate (UNUSED CONF_SECTION *conf, void *instance)
 
static int securid_session_cmp (void const *a, void const *b)
 
static SECURID_AUTH_RC securidAuth (void *instance, REQUEST *request, char const *username, char const *passcode, char *replyMsgBuffer, size_t replyMsgBufferSize)
 

Variables

static SD_CHAR empty_pin [] = ""
 
static const CONF_PARSER module_config []
 
module_t rlm_securid
 

Detailed Description

Supports auth against SecurID servers using OTP h/w tokens.

Id:
a99d1f9645fe4576ec5ba1e5c02e791c04ba5b64

Supports "next-token code" and "new-pin" modes.

Definition in file rlm_securid.c.

Enumeration Type Documentation

Enumerator
RC_SECURID_AUTH_SUCCESS 
RC_SECURID_AUTH_FAILURE 
RC_SECURID_AUTH_ACCESS_DENIED_FAILURE 
RC_SECURID_AUTH_INVALID_SERVER_FAILURE 
RC_SECURID_AUTH_CHALLENGE 

Definition at line 33 of file rlm_securid.c.

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )
static

Definition at line 454 of file rlm_securid.c.

+ Here is the call graph for this function:

static int mod_detach ( void *  instance)
static

Definition at line 416 of file rlm_securid.c.

+ Here is the call graph for this function:

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

Definition at line 432 of file rlm_securid.c.

+ Here is the call graph for this function:

static int securid_session_cmp ( void const *  a,
void const *  b 
)
static

Definition at line 54 of file rlm_securid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static SECURID_AUTH_RC securidAuth ( void *  instance,
REQUEST request,
char const *  username,
char const *  passcode,
char *  replyMsgBuffer,
size_t  replyMsgBufferSize 
)
static

Definition at line 70 of file rlm_securid.c.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

Variable Documentation

SD_CHAR empty_pin[] = ""
static

Definition at line 51 of file rlm_securid.c.

const CONF_PARSER module_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("timer_expire", PW_TYPE_INTEGER, rlm_securid_t, timer_limit), .dflt = "600" },
{ FR_CONF_OFFSET("max_sessions", PW_TYPE_INTEGER, rlm_securid_t, max_sessions), .dflt = "2048" },
{ FR_CONF_OFFSET("max_trips_per_session", PW_TYPE_INTEGER, rlm_securid_t, max_trips_per_session) },
{ FR_CONF_OFFSET("max_round_trips", PW_TYPE_INTEGER, rlm_securid_t, max_trips_per_session), .dflt = "6" },
}
#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 42 of file rlm_securid.c.

module_t rlm_securid
Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "securid",
.inst_size = sizeof(rlm_securid_t),
.config = module_config,
.instantiate = mod_instantiate,
.detach = mod_detach,
.methods = {
},
}
#define RLM_MODULE_INIT
Definition: modules.h:86
struct rlm_securid_t rlm_securid_t
#define RLM_TYPE_HUP_SAFE
Will be restarted on HUP.
Definition: modules.h:79
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request) CC_HINT(nonnull)
0 methods index for authenticate section.
Definition: modules.h:41
static int mod_detach(void *instance)
Definition: rlm_securid.c:416
static const CONF_PARSER module_config[]
Definition: rlm_securid.c:42
static int mod_instantiate(UNUSED CONF_SECTION *conf, void *instance)
Definition: rlm_securid.c:432

Definition at line 552 of file rlm_securid.c.