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

Authenticate users, retrieving their TGT from a Kerberos V5 TDC. More...

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

Go to the source code of this file.

Functions

static rlm_rcode_t CC_HINT (nonnull)
 
static rlm_rcode_t krb5_parse_user (krb5_principal *client, REQUEST *request, krb5_context context)
 Common function for transforming a User-Name string into a principal. More...
 
static rlm_rcode_t krb5_process_error (REQUEST *request, rlm_krb5_handle_t *conn, int ret)
 Log error message and return appropriate rcode. More...
 
static int mod_detach (void *instance)
 
static int mod_instantiate (CONF_SECTION *conf, void *instance)
 

Variables

static const CONF_PARSER module_config []
 
module_t rlm_krb5
 

Detailed Description

Authenticate users, retrieving their TGT from a Kerberos V5 TDC.

Id:
0cb5c2bb861a2228022eb93616f3da40e4333c1f

Definition in file rlm_krb5.c.

Function Documentation

static rlm_rcode_t CC_HINT ( nonnull  )
static

Definition at line 393 of file rlm_krb5.c.

+ Here is the call graph for this function:

static rlm_rcode_t krb5_parse_user ( krb5_principal *  client,
REQUEST request,
krb5_context  context 
)
static

Common function for transforming a User-Name string into a principal.

Parameters
[out]clientWhere to write the client principal.
[in]requestCurrent request.
[in]contextKerberos context.

Definition at line 228 of file rlm_krb5.c.

+ Here is the caller graph for this function:

static rlm_rcode_t krb5_process_error ( REQUEST request,
rlm_krb5_handle_t conn,
int  ret 
)
static

Log error message and return appropriate rcode.

Translate kerberos error codes into return codes.

Parameters
requestCurrent request.
retcode from kerberos.
connused in the last operation.

Definition at line 288 of file rlm_krb5.c.

+ Here is the caller graph for this function:

static int mod_detach ( void *  instance)
static

Definition at line 40 of file rlm_krb5.c.

+ Here is the call graph for this function:

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

Definition at line 62 of file rlm_krb5.c.

+ Here is the call graph for this function:

Variable Documentation

const CONF_PARSER module_config[]
static
Initial value:
= {
{ FR_CONF_OFFSET("keytab", PW_TYPE_STRING, rlm_krb5_t, keytabname) },
{ FR_CONF_OFFSET("service_principal", PW_TYPE_STRING, rlm_krb5_t, service_princ) },
}
Instance configuration for rlm_krb5.
Definition: krb5.h:49
#define CONF_PARSER_TERMINATOR
Definition: conffile.h:289
#define FR_CONF_OFFSET(_n, _t, _s, _f)
Definition: conffile.h:168
String of printable characters.
Definition: radius.h:33

Definition at line 34 of file rlm_krb5.c.

module_t rlm_krb5
Initial value:
= {
.magic = RLM_MODULE_INIT,
.name = "krb5",
,
.inst_size = sizeof(rlm_krb5_t),
.config = module_config,
.instantiate = mod_instantiate,
.detach = mod_detach,
.methods = {
},
}
#define RLM_MODULE_INIT
Definition: modules.h:86
static int mod_instantiate(CONF_SECTION *conf, void *instance)
Definition: rlm_krb5.c:62
struct rlm_krb5_t rlm_krb5_t
Instance configuration for rlm_krb5.
#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)
static const CONF_PARSER module_config[]
Definition: rlm_krb5.c:34
0 methods index for authenticate section.
Definition: modules.h:41
static int mod_detach(void *instance)
Definition: rlm_krb5.c:40

Definition at line 456 of file rlm_krb5.c.