Hashes plaintext passwords to compare against a prehashed reference.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/password.h>
#include <freeradius-devel/tls/base.h>
#include <freeradius-devel/tls/log.h>
#include <freeradius-devel/util/base64.h>
#include <freeradius-devel/util/debug.h>
#include <freeradius-devel/util/base16.h>
#include <freeradius-devel/util/md5.h>
#include <freeradius-devel/util/sha1.h>
#include <freeradius-devel/unlang/call_env.h>
#include <freeradius-devel/protocol/freeradius/freeradius.internal.password.h>
#include <ctype.h>
#include <unistd.h>
#include <pthread.h>
Go to the source code of this file.
|
static unlang_action_t | mod_authenticate (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request) |
|
static unlang_action_t | mod_authorize (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request) |
|
static int | mod_instantiate (module_inst_ctx_t const *mctx) |
|
static int | mod_load (void) |
|
static void | mod_unload (void) |
|
static unlang_action_t | pap_auth_clear (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
static unlang_action_t | pap_auth_dummy (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, UNUSED request_t *request, UNUSED fr_pair_t const *known_good, UNUSED fr_value_box_t const *password) |
| Auth func for password types that should have been normalised away. More...
|
|
static unlang_action_t | pap_auth_md5 (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
static unlang_action_t | pap_auth_ns_mta_md5 (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
static unlang_action_t | pap_auth_nt (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
static unlang_action_t | pap_auth_sha1 (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
static unlang_action_t | pap_auth_smd5 (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
static unlang_action_t | pap_auth_ssha1 (rlm_rcode_t *p_result, UNUSED rlm_pap_t const *inst, request_t *request, fr_pair_t const *known_good, fr_value_box_t const *password) |
|
Hashes plaintext passwords to compare against a prehashed reference.
- Id
- 50818f979867e98520f89503d6dc9a7290019d21
- Copyright
- 2001-2012 The FreeRADIUS server project.
-
2012 Matthew Newton (matth.nosp@m.ew@n.nosp@m.ewton.nosp@m.comp.nosp@m.uting.nosp@m..co..nosp@m.uk)
-
2001 Kostas Kalevras (kkale.nosp@m.v@no.nosp@m.c.ntu.nosp@m.a.gr)
Definition in file rlm_pap.c.
◆ pap_call_env_t
◆ rlm_pap_t
◆ pap_auth_func_t
◆ mod_authenticate()
◆ mod_authorize()
◆ mod_instantiate()
◆ mod_load()
static int mod_load |
( |
void |
| ) |
|
|
static |
◆ mod_unload()
static void mod_unload |
( |
void |
| ) |
|
|
static |
◆ pap_auth_clear()
◆ pap_auth_dummy()
Auth func for password types that should have been normalised away.
Definition at line 851 of file rlm_pap.c.
◆ pap_auth_md5()
◆ pap_auth_ns_mta_md5()
◆ pap_auth_nt()
◆ pap_auth_sha1()
◆ pap_auth_smd5()
◆ pap_auth_ssha1()
◆ attr_auth_type
◆ attr_root
◆ auth_func_table
Table of password types we can process.
Definition at line 861 of file rlm_pap.c.
◆ dict_freeradius
◆ fr_crypt_mutex
◆ 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
static ssize_t normify(normalise_t *action, uint8_t *buffer, size_t bufflen, char const *known_good, size_t len, size_t min_len)
Definition at line 80 of file rlm_pap.c.
◆ pap_alloweds
◆ pap_method_env
Initial value:= {
.inst_type = "pap_call_env_t",
}
}
#define CALL_ENV_TERMINATOR
#define FR_CALL_ENV_PARSE_OFFSET(_name, _cast_type, _flags, _struct, _field, _parse_field)
Specify a call_env_parser_t which writes out runtime results and the result of the parsing phase to t...
@ CALL_ENV_FLAG_CONCAT
If the tmpl produced multiple boxes they should be concatenated.
@ CALL_ENV_FLAG_ATTRIBUTE
Tmpl must contain an attribute reference.
@ CALL_ENV_FLAG_REQUIRED
Associated conf pair or section is required.
@ CALL_ENV_FLAG_NULLABLE
Tmpl expansions are allowed to produce no output.
@ FR_TYPE_STRING
String of printable characters.
Definition at line 90 of file rlm_pap.c.
◆ rlm_pap
Initial value:= {
.common = {
.name = "pap",
},
.method_group = {
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static int mod_load(void)
static const call_env_method_t pap_method_env
static unlang_action_t mod_authenticate(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static void mod_unload(void)
static unlang_action_t mod_authorize(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.
#define MODULE_BINDING_TERMINATOR
Terminate a module binding list.
Named methods exported by a module.
Definition at line 1057 of file rlm_pap.c.
◆ rlm_pap_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
Definition at line 103 of file rlm_pap.c.
◆ rlm_pap_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_TLV
Contains nested attributes.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
static fr_dict_attr_t const * attr_auth_type
static fr_dict_attr_t const * attr_root
Definition at line 111 of file rlm_pap.c.