Unixy things.
More...
#include <freeradius-devel/radius/radius.h>
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/server/sysutmp.h>
#include <freeradius-devel/util/perm.h>
#include <freeradius-devel/unlang/xlat_func.h>
#include <grp.h>
#include <pwd.h>
#include <sys/stat.h>
#include "config.h"
Go to the source code of this file.
|
static unlang_action_t | mod_accounting (rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request) |
|
static unlang_action_t | mod_authorize (rlm_rcode_t *p_result, UNUSED module_ctx_t const *mctx, request_t *request) |
|
static int | mod_bootstrap (module_inst_ctx_t const *mctx) |
|
static bool | unix_check_group (UNUSED rlm_unix_t const *inst, request_t *request, char const *name) |
| Check if the user is in the given group. More...
|
|
static xlat_action_t | unix_group_xlat (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Check if the user is a member of a particular unix group. More...
|
|
static char * | uue (void *in) |
|
Unixy things.
- Id
- a66913ce637742e487bb83adf444be9da014964f
- Copyright
- 2000,2006 The FreeRADIUS server project
-
2000 Jeff Carneal (jeff@.nosp@m.apex.nosp@m..net)
-
2000 Alan Curry (pacma.nosp@m.n@wo.nosp@m.rld.s.nosp@m.td.c.nosp@m.om)
Definition in file rlm_unix.c.
◆ rlm_unix_t
Definition at line 51 of file rlm_unix.c.
Data Fields |
char const * |
radwtmp |
|
◆ ENC
◆ LOG_PREFIX
◆ mod_accounting()
◆ mod_authorize()
◆ mod_bootstrap()
◆ unix_check_group()
Check if the user is in the given group.
Definition at line 101 of file rlm_unix.c.
◆ uue()
static char* uue |
( |
void * |
in | ) |
|
|
static |
◆ attr_acct_delay_time
◆ attr_acct_status_type
◆ attr_auth_type
◆ attr_crypt_password
◆ attr_expr_bool_enum
◆ attr_framed_ip_address
◆ attr_framed_protocol
◆ attr_login_ip_host
◆ attr_nas_ip_address
◆ attr_nas_port
◆ attr_user_name
◆ dict_freeradius
◆ dict_radius
◆ module_config
Initial value:= {
}
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET_FLAGS(_name, _flags, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
@ CONF_FLAG_FILE_INPUT
File matching value must exist, and must be readable.
Definition at line 55 of file rlm_unix.c.
◆ rlm_unix
Initial value:= {
.common = {
.name = "unix",
},
.method_group = {
}
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static int mod_bootstrap(module_inst_ctx_t const *mctx)
static unlang_action_t mod_accounting(rlm_rcode_t *p_result, module_ctx_t const *mctx, request_t *request)
static const conf_parser_t module_config[]
static unlang_action_t mod_authorize(rlm_rcode_t *p_result, UNUSED module_ctx_t const *mctx, request_t *request)
#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 554 of file rlm_unix.c.
◆ rlm_unix_dict
Initial value:= {
{ NULL }
}
static fr_dict_t const * dict_freeradius
static fr_dict_t const * dict_radius
Definition at line 64 of file rlm_unix.c.
◆ rlm_unix_dict_attr
Initial value:= {
{ NULL }
}
@ FR_TYPE_IPV4_ADDR
32 Bit IPv4 Address.
@ FR_TYPE_STRING
String of printable characters.
@ FR_TYPE_UINT32
32 Bit unsigned integer.
@ FR_TYPE_BOOL
A truth value.
static fr_dict_attr_t const * attr_login_ip_host
static fr_dict_attr_t const * attr_crypt_password
static fr_dict_attr_t const * attr_expr_bool_enum
static fr_dict_attr_t const * attr_auth_type
static fr_dict_attr_t const * attr_nas_ip_address
static fr_dict_attr_t const * attr_framed_ip_address
static fr_dict_attr_t const * attr_framed_protocol
static fr_dict_attr_t const * attr_nas_port
static fr_dict_attr_t const * attr_acct_status_type
static fr_dict_attr_t const * attr_user_name
static fr_dict_attr_t const * attr_acct_delay_time
Definition at line 83 of file rlm_unix.c.
◆ trans
char trans[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/" |
|
static |