Enables authentication against unix passwd files. More...
#include <freeradius-devel/radiusd.h>
#include <freeradius-devel/modules.h>
#include <freeradius-devel/rad_assert.h>
Go to the source code of this file.
Data Structures | |
struct | hashtable |
struct | mypasswd |
struct | rlm_passwd_t |
Macros | |
#define | inst ((rlm_passwd_t *)instance) |
#define | inst ((rlm_passwd_t *)instance) |
Typedefs | |
typedef struct rlm_passwd_t | rlm_passwd_t |
Functions | |
static void | addresult (TALLOC_CTX *ctx, rlm_passwd_t *inst, REQUEST *request, VALUE_PAIR **vps, struct mypasswd *pw, char when, char const *listname) |
static struct hashtable * | build_hash_table (char const *file, int nfields, int keyfield, int islist, int tablesize, int ignorenis, char delimiter) |
static rlm_rcode_t | CC_HINT (nonnull) |
static void | destroy_password (struct mypasswd *pass) |
static struct mypasswd * | get_next (char *name, struct hashtable *ht, struct mypasswd **last_found) |
static struct mypasswd * | get_pw_nam (char *name, struct hashtable *ht, struct mypasswd **last_found) |
static unsigned int | hash (char const *username, unsigned int tablesize) |
static int | mod_detach (void *instance) |
static int | mod_instantiate (CONF_SECTION *conf, void *instance) |
static struct mypasswd * | mypasswd_malloc (char const *buffer, int nfields, size_t *len) |
static void | release_hash_table (struct hashtable *ht) |
static void | release_ht (struct hashtable *ht) |
static int | string_to_entry (char const *string, int nfields, char delimiter, struct mypasswd *passwd, size_t bufferlen) |
Variables | |
static const CONF_PARSER | module_config [] |
module_t | rlm_passwd |
Enables authentication against unix passwd files.
Definition in file rlm_passwd.c.
struct hashtable |
Definition at line 36 of file rlm_passwd.c.
Data Fields | ||
---|---|---|
char | buffer[1024] | |
char | delimiter | |
char * | filename | |
FILE * | fp | |
int | ignorenis | |
int | islist | |
int | keyfield | |
int | nfields | |
struct mypasswd ** | table | |
int | tablesize |
struct mypasswd |
Definition at line 30 of file rlm_passwd.c.
Data Fields | ||
---|---|---|
char * | field[1] | |
char * | listflag | |
struct mypasswd * | next |
struct rlm_passwd_t |
Definition at line 373 of file rlm_passwd.c.
Data Fields | ||
---|---|---|
bool | allow_multiple | |
char const * | delimiter | |
char const * | filename | |
char const * | format | |
uint32_t | hash_size | |
struct hashtable * | ht | |
bool | ignore_empty | |
bool | ignore_nislike | |
fr_dict_attr_t const * | keyattr | |
uint32_t | keyfield | |
uint32_t | listable | |
uint32_t | nfields | |
struct mypasswd * | pwdfmt |
#define inst ((rlm_passwd_t *)instance) |
#define inst ((rlm_passwd_t *)instance) |
typedef struct rlm_passwd_t rlm_passwd_t |
|
static |
Definition at line 515 of file rlm_passwd.c.
|
static |
Definition at line 161 of file rlm_passwd.c.
|
static |
|
static |
|
static |
Definition at line 258 of file rlm_passwd.c.
|
static |
Definition at line 311 of file rlm_passwd.c.
|
static |
|
static |
|
static |
|
static |
Definition at line 66 of file rlm_passwd.c.
|
static |
Definition at line 133 of file rlm_passwd.c.
|
static |
Definition at line 151 of file rlm_passwd.c.
|
static |
|
static |
Definition at line 389 of file rlm_passwd.c.
module_t rlm_passwd |
Definition at line 574 of file rlm_passwd.c.