|  | The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
    | 
Enables authentication against unix passwd files. More...
#include <freeradius-devel/server/base.h>#include <freeradius-devel/server/module_rlm.h>#include <freeradius-devel/util/debug.h> Include dependency graph for rlm_passwd.c:
 Include dependency graph for rlm_passwd.c:Go to the source code of this file.
| Data Structures | |
| struct | hashtable | 
| struct | mypasswd | 
| struct | rlm_passwd_t | 
| Macros | |
| #define | LOG_PREFIX "passwd" | 
| Functions | |
| static struct hashtable * | build_hash_table (char const *file, int num_fields, int key_field, int islist, int tablesize, int ignorenis, char delimiter) | 
| 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 (module_detach_ctx_t const *mctx) | 
| static int | mod_instantiate (module_inst_ctx_t const *mctx) | 
| static unlang_action_t | mod_passwd_map (unlang_result_t *p_result, module_ctx_t const *mctx, request_t *request) | 
| static struct mypasswd * | mypasswd_alloc (char const *buffer, int num_fields, size_t *len) | 
| static void | release_hash_table (struct hashtable *ht) | 
| static void | release_ht (struct hashtable *ht) | 
| static void | result_add (TALLOC_CTX *ctx, rlm_passwd_t const *inst, request_t *request, fr_pair_list_t *vps, struct mypasswd *pw, char when, char const *listname) | 
| static int | string_to_entry (char const *string, int num_fields, char delimiter, struct mypasswd *passwd, size_t bufferlen) | 
| Variables | |
| static fr_dict_t const * | dict_freeradius | 
| static const conf_parser_t | module_config [] | 
| module_rlm_t | rlm_passwd | 
| fr_dict_autoload_t | rlm_passwd_dict [] | 
Enables authentication against unix passwd files.
Definition in file rlm_passwd.c.
| struct hashtable | 
Definition at line 38 of file rlm_passwd.c.
 Collaboration diagram for hashtable:
 Collaboration diagram for hashtable:| Data Fields | ||
|---|---|---|
| char | buffer[1024] | |
| char | delimiter | |
| char * | filename | |
| FILE * | fp | |
| int | ignorenis | |
| int | islist | |
| int | key_field | |
| int | num_fields | |
| struct mypasswd ** | table | |
| int | tablesize | |
| struct mypasswd | 
Definition at line 32 of file rlm_passwd.c.
 Collaboration diagram for mypasswd:
 Collaboration diagram for mypasswd:| Data Fields | ||
|---|---|---|
| char * | field[1] | |
| char * | listflag | |
| struct mypasswd * | next | |
| struct rlm_passwd_t | 
Definition at line 357 of file rlm_passwd.c.
 Collaboration diagram for rlm_passwd_t:
 Collaboration diagram for rlm_passwd_t:| 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 | |
| uint32_t | key_field | |
| fr_dict_attr_t const * | keyattr | |
| uint32_t | listable | |
| uint32_t | num_fields | |
| struct mypasswd * | pwd_fmt | |
| #define LOG_PREFIX "passwd" | 
Definition at line 26 of file rlm_passwd.c.
| 
 | static | 
Definition at line 159 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 121 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 242 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 295 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 132 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
| 
 | static | 
| 
 | static | 
| 
 | static | 
Definition at line 139 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 153 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 514 of file rlm_passwd.c.
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Definition at line 51 of file rlm_passwd.c.
| 
 | static | 
Definition at line 373 of file rlm_passwd.c.
| module_rlm_t rlm_passwd | 
Definition at line 610 of file rlm_passwd.c.
| fr_dict_autoload_t rlm_passwd_dict | 
Definition at line 54 of file rlm_passwd.c.
 1.9.8
 1.9.8