#include <stdio.h>#include <string.h>#include "../../sr_module.h"#include "../../db/db.h"#include "../../dprint.h"#include "../../error.h"#include "../../mod_fix.h"#include "../../mem/mem.h"#include "../auth/api.h"#include "../sl/sl_api.h"#include "aaa_avps.h"#include "authorize.h"

Go to the source code of this file.
Defines | |
| #define | DEFAULT_CRED_LIST "rpid" |
| #define | DOMAIN_COL "domain" |
| #define | DOMAIN_COL_LEN (sizeof(DOMAIN_COL) - 1) |
| #define | PASS_COL "ha1" |
| #define | PASS_COL_2 "ha1b" |
| #define | PASS_COL_2_LEN (sizeof(PASS_COL_2) - 1) |
| #define | PASS_COL_LEN (sizeof(PASS_COL) - 1) |
| #define | TABLE_VERSION 6 |
| #define | USER_COL "username" |
| #define | USER_COL_LEN (sizeof(USER_COL) - 1) |
Functions | |
| static int | auth_fixup (void **param, int param_no) |
| static int | child_init (int rank) |
| static void | destroy (void) |
| static int | mod_init (void) |
Variables | |
| auth_api_t | auth_api |
| db_con_t * | auth_db_handle = 0 |
| db_func_t | auth_dbf |
| int | calc_ha1 = 0 |
| static cmd_export_t | cmds [] |
| struct aaa_avp * | credentials = 0 |
| char * | credentials_list = DEFAULT_CRED_LIST |
| int | credentials_n = 0 |
| static str | db_url = {DEFAULT_RODB_URL, DEFAULT_RODB_URL_LEN} |
| str | domain_column = {DOMAIN_COL, DOMAIN_COL_LEN} |
| struct module_exports | exports |
| static param_export_t | params [] |
| str | pass_column = {PASS_COL, PASS_COL_LEN} |
| str | pass_column_2 = {PASS_COL_2, PASS_COL_2_LEN} |
| struct sl_binds | slb |
| int | use_domain = 0 |
| str | user_column = {USER_COL, USER_COL_LEN} |
| #define DEFAULT_CRED_LIST "rpid" |
Definition at line 89 of file authdb_mod.c.
| #define DOMAIN_COL "domain" |
Definition at line 80 of file authdb_mod.c.
| #define DOMAIN_COL_LEN (sizeof(DOMAIN_COL) - 1) |
Definition at line 81 of file authdb_mod.c.
| #define PASS_COL "ha1" |
Definition at line 83 of file authdb_mod.c.
| #define PASS_COL_2 "ha1b" |
Definition at line 86 of file authdb_mod.c.
| #define PASS_COL_2_LEN (sizeof(PASS_COL_2) - 1) |
Definition at line 87 of file authdb_mod.c.
| #define PASS_COL_LEN (sizeof(PASS_COL) - 1) |
Definition at line 84 of file authdb_mod.c.
| #define TABLE_VERSION 6 |
Definition at line 52 of file authdb_mod.c.
Referenced by auth_fixup(), cpl_db_bind(), init_addresses(), init_child_trusted(), init_trusted(), and mod_init().
| #define USER_COL "username" |
Definition at line 77 of file authdb_mod.c.
| #define USER_COL_LEN (sizeof(USER_COL) - 1) |
Definition at line 78 of file authdb_mod.c.
| static int auth_fixup | ( | void ** | param, | |
| int | param_no | |||
| ) | [static] |
Definition at line 230 of file authdb_mod.c.
References db_func::close, db_check_table_version(), fixup_spve_null(), db_func::init, _str::len, LM_ERR, module_exports::name, NULL, _str::s, and TABLE_VERSION.
| static int child_init | ( | int | rank | ) | [static] |
| static void destroy | ( | void | ) | [static] |
Definition at line 213 of file authdb_mod.c.
References db_func::close, credentials_n, and free_aaa_avp_list().
| static int mod_init | ( | void | ) | [static] |
Definition at line 169 of file authdb_mod.c.
References bind_auth(), credentials_list, credentials_n, db_bind_mod(), find_export(), _str::len, LM_ERR, load_sl_api(), parse_aaa_avps(), _str::s, and slb.
Definition at line 106 of file authdb_mod.c.
| db_con_t* auth_db_handle = 0 |
| int calc_ha1 = 0 |
cmd_export_t cmds[] [static] |
Initial value:
{
{"www_authorize", (cmd_function)www_authorize, 2, auth_fixup, 0, REQUEST_ROUTE},
{"proxy_authorize", (cmd_function)proxy_authorize, 2, auth_fixup, 0, REQUEST_ROUTE},
{0, 0, 0, 0, 0, 0}
}
Definition at line 115 of file authdb_mod.c.
| struct aaa_avp* credentials = 0 |
| char* credentials_list = DEFAULT_CRED_LIST |
| int credentials_n = 0 |
Definition at line 94 of file authdb_mod.c.
| str domain_column = {DOMAIN_COL, DOMAIN_COL_LEN} |
'domain' column name in group table
Definition at line 96 of file authdb_mod.c.
| struct module_exports exports |
Definition at line 141 of file authdb_mod.c.
param_export_t params[] [static] |
Definition at line 125 of file authdb_mod.c.
| str pass_column = {PASS_COL, PASS_COL_LEN} |
| str pass_column_2 = {PASS_COL_2, PASS_COL_2_LEN} |
SL binds
Definition at line 75 of file authdb_mod.c.
| int use_domain = 0 |
Use domain in is_user_in
Definition at line 102 of file authdb_mod.c.
| str user_column = {USER_COL, USER_COL_LEN} |
'user' column name in group table
Definition at line 95 of file authdb_mod.c.
1.5.6