Authenticate users, retrieving their TGT from a Kerberos V5 TDC.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/unlang/call_env.h>
#include <freeradius-devel/util/debug.h>
#include "krb5.h"
Go to the source code of this file.
Authenticate users, retrieving their TGT from a Kerberos V5 TDC.
- Id
- 3007de21eba2a53aeceb3a6aba76f00e10712d9c
- Copyright
- 2000,2006,2012-2013 The FreeRADIUS server project
-
2013 Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
-
2000 Nathan Neulinger (nneul.nosp@m.@umr.nosp@m..edu)
-
2000 Alan DeKok (aland.nosp@m.@fre.nosp@m.eradi.nosp@m.us.o.nosp@m.rg)
Definition in file rlm_krb5.c.
◆ krb5_auth_call_env_t
struct krb5_auth_call_env_t |
◆ LOG_PREFIX
◆ krb5_parse_user()
Common function for transforming a User-Name string into a principal.
- Parameters
-
[out] | client | Where to write the client principal. |
[in] | inst | of rlm_krb5. |
[in] | request | Current request. |
[in] | context | Kerberos context. |
[in] | env | call env data containing username. |
Definition at line 255 of file rlm_krb5.c.
◆ krb5_process_error()
Log error message and return appropriate rcode.
Translate kerberos error codes into return codes.
- Parameters
-
inst | of rlm_krb5. |
request | Current request. |
ret | code from kerberos. |
conn | used in the last operation. |
Definition at line 286 of file rlm_krb5.c.
◆ mod_authenticate()
◆ mod_detach()
◆ mod_instantiate()
◆ krb5_auth_call_env
Initial value:= {
.pair.dflt =
"&User-Name", .pair.dflt_quote =
T_BARE_WORD },
.pair.dflt =
"&User-Password", .pair.dflt_quote =
T_BARE_WORD },
}
}
#define CALL_ENV_TERMINATOR
#define FR_CALL_ENV_METHOD_OUT(_inst)
Helper macro for populating the size/type fields of a call_env_method_t from the output structure typ...
@ CALL_ENV_FLAG_SECRET
The value is a secret, and should not be logged.
@ CALL_ENV_FLAG_REQUIRED
Associated conf pair or section is required.
#define FR_CALL_ENV_OFFSET(_name, _cast_type, _flags, _struct, _field)
Specify a call_env_parser_t which writes out runtime results to the specified field.
@ FR_TYPE_STRING
String of printable characters.
Definition at line 485 of file rlm_krb5.c.
◆ module_config
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
Instance configuration for rlm_krb5.
Definition at line 44 of file rlm_krb5.c.
◆ rlm_krb5
Initial value:= {
.common = {
.name = "krb5",
},
.method_group = {
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static int mod_detach(module_detach_ctx_t const *mctx)
static const call_env_method_t krb5_auth_call_env
static unlang_action_t mod_authenticate(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static const conf_parser_t module_config[]
static int mod_instantiate(module_inst_ctx_t const *mctx)
static int instantiate(module_inst_ctx_t const *mctx)
#define SECTION_NAME(_name1, _name2)
Define a section name consisting of a verb and a noun.
@ MODULE_TYPE_THREAD_UNSAFE
Module is not threadsafe.
#define MODULE_BINDING_TERMINATOR
Terminate a module binding list.
Named methods exported by a module.
Definition at line 497 of file rlm_krb5.c.