Process simple 'users' policy files.
More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <ctype.h>
#include <fcntl.h>
Go to the source code of this file.
|
static rlm_rcode_t | CC_HINT (nonnull) |
|
static int | fall_through (VALUE_PAIR *vp) |
|
static rlm_rcode_t | file_common (rlm_files_t *inst, REQUEST *request, char const *filename, rbtree_t *tree, RADIUS_PACKET *request_packet, RADIUS_PACKET *reply_packet) |
|
static int | getusersfile (TALLOC_CTX *ctx, char const *filename, rbtree_t **ptree, char const *compat_mode_str) |
|
static int | mod_instantiate (UNUSED CONF_SECTION *conf, void *instance) |
|
static int | pairlist_cmp (void const *a, void const *b) |
|
Process simple 'users' policy files.
- Id:
- d30bb6c90bfed3efcc84f26060ee7612d18fa89c
- Copyright
- 2000,2006 The FreeRADIUS server project
-
2000 Jeff Carneal jeff@.nosp@m.apex.nosp@m..net
Definition in file rlm_files.c.
Definition at line 33 of file rlm_files.c.
Data Fields |
rbtree_t * |
acctusers |
|
char const * |
acctusersfile |
|
rbtree_t * |
auth_users |
|
char const * |
auth_usersfile |
|
rbtree_t * |
common |
|
char const * |
compat_mode |
|
char const * |
filename |
|
char const * |
key |
|
rbtree_t * |
postauth_users |
|
char const * |
postauth_usersfile |
|
rbtree_t * |
postproxy_users |
|
char const * |
postproxy_usersfile |
|
rbtree_t * |
preproxy_users |
|
char const * |
preproxy_usersfile |
|
rbtree_t * |
users |
|
char const * |
usersfile |
|
#define READFILE |
( |
|
_x, |
|
|
|
_y |
|
) |
| do { if (getusersfile(inst, inst->_x, &inst->_y, inst->compat_mode) != 0) { ERROR("Failed reading %s", inst->_x); return -1;} } while (0) |
static int getusersfile |
( |
TALLOC_CTX * |
ctx, |
|
|
char const * |
filename, |
|
|
rbtree_t ** |
ptree, |
|
|
char const * |
compat_mode_str |
|
) |
| |
|
static |
static int pairlist_cmp |
( |
void const * |
a, |
|
|
void const * |
b |
|
) |
| |
|
static |
Initial value:= {
}
#define PW_TYPE_FILE_INPUT
File matching value must exist, and must be readable.
#define CONF_PARSER_TERMINATOR
#define PW_TYPE_DEPRECATED
If a matching CONF_PAIR is found, error out with a deprecated message.
#define PW_TYPE_XLAT
string will be dynamically expanded.
#define FR_CONF_OFFSET(_n, _t, _s, _f)
String of printable characters.
Definition at line 81 of file rlm_files.c.
Initial value:= {
.name = "files",
.methods = {
},
}
5 methods index for preproxy section.
static rlm_rcode_t mod_post_auth(void *instance, REQUEST *request) CC_HINT(nonnull)
7 methods index for postauth section.
static rlm_rcode_t mod_authorize(void *instance, REQUEST *request)
Handle authorization requests using Couchbase document data.
#define RLM_TYPE_HUP_SAFE
Will be restarted on HUP.
static rlm_rcode_t mod_authenticate(void *instance, REQUEST *request) CC_HINT(nonnull)
0 methods index for authenticate section.
static int mod_instantiate(UNUSED CONF_SECTION *conf, void *instance)
6 methods index for postproxy section.
2 methods index for preacct section.
struct rlm_files_t rlm_files_t
static const CONF_PARSER module_config[]
1 methods index for authorize section.
Definition at line 528 of file rlm_files.c.