Apache HTTPD
Classes | Macros | Functions | Variables
mod_authn_dbd.c File Reference
#include "ap_provider.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_request.h"
#include "apr_lib.h"
#include "apr_dbd.h"
#include "mod_dbd.h"
#include "apr_strings.h"
#include "mod_auth.h"
#include "apr_md5.h"
#include "apu_version.h"

Go to the source code of this file.

Classes

struct  authn_dbd_conf
 

Macros

#define AUTHN_CACHE_STORE(r, user, realm, data)
 

Functions

static void * authn_dbd_cr_conf (apr_pool_t *pool, char *dummy)
 
static void * authn_dbd_merge_conf (apr_pool_t *pool, void *BASE, void *ADD)
 
static const charauthn_dbd_prepare (cmd_parms *cmd, void *cfg, const char *query)
 
static authn_status authn_dbd_password (request_rec *r, const char *user, const char *password)
 
static authn_status authn_dbd_realm (request_rec *r, const char *user, const char *realm, char **rethash)
 
static void opt_retr (void)
 
static void authn_dbd_hooks (apr_pool_t *p)
 

Variables

static ap_dbd_t *(* authn_dbd_acquire_fn )(request_rec *) = NULL
 
static void(* authn_dbd_prepare_fn )(server_rec *, const char *, const char *) = NULL
 
static apr_OFN_ap_authn_cache_store_tauthn_cache_store = NULL
 
static const command_rec authn_dbd_cmds []
 
static int *const aplog_module_index = &( authn_dbd_module.module_index)
 

Macro Definition Documentation

◆ AUTHN_CACHE_STORE

#define AUTHN_CACHE_STORE (   r,
  user,
  realm,
  data 
)
Value:
authn_cache_store((r), "dbd", (user), (realm), (data))
request_rec * r
apr_size_t size
void * data
static apr_OFN_ap_authn_cache_store_t * authn_cache_store
return NULL
Definition mod_so.c:359

Definition at line 41 of file mod_authn_dbd.c.

Function Documentation

◆ authn_dbd_cr_conf()

static void * authn_dbd_cr_conf ( apr_pool_t pool,
char dummy 
)
static

Definition at line 45 of file mod_authn_dbd.c.

◆ authn_dbd_hooks()

static void authn_dbd_hooks ( apr_pool_t p)
static

< Run access control hooks only on internal requests with configurations distinct from that of initial request

Definition at line 285 of file mod_authn_dbd.c.

◆ authn_dbd_merge_conf()

static void * authn_dbd_merge_conf ( apr_pool_t pool,
void *  BASE,
void *  ADD 
)
static

Definition at line 51 of file mod_authn_dbd.c.

◆ authn_dbd_password()

static authn_status authn_dbd_password ( request_rec r,
const char user,
const char password 
)
static

Definition at line 95 of file mod_authn_dbd.c.

◆ authn_dbd_prepare()

static const char * authn_dbd_prepare ( cmd_parms cmd,
void *  cfg,
const char query 
)
static

< Forbidden in .htaccess files

Definition at line 61 of file mod_authn_dbd.c.

◆ authn_dbd_realm()

static authn_status authn_dbd_realm ( request_rec r,
const char user,
const char realm,
char **  rethash 
)
static

Definition at line 191 of file mod_authn_dbd.c.

◆ opt_retr()

static void opt_retr ( void  )
static

Definition at line 280 of file mod_authn_dbd.c.

Variable Documentation

◆ aplog_module_index

int* const aplog_module_index = &( authn_dbd_module.module_index)
static

Definition at line 298 of file mod_authn_dbd.c.

◆ authn_cache_store

apr_OFN_ap_authn_cache_store_t* authn_cache_store = NULL
static

Definition at line 40 of file mod_authn_dbd.c.

◆ authn_dbd_acquire_fn

ap_dbd_t *(* authn_dbd_acquire_fn) (request_rec *) ( request_rec ) = NULL
static

Definition at line 38 of file mod_authn_dbd.c.

◆ authn_dbd_cmds

const command_rec authn_dbd_cmds[]
static
Initial value:
=
{
{ "AuthDBDUserPWQuery" , authn_dbd_prepare , (void *)((long) (((char *) (&((( authn_dbd_conf * )NULL)-> user ))) - ((char *) NULL))) , 64 , TAKE1, "Query used to fetch password for user" },
{ "AuthDBDUserRealmQuery" , authn_dbd_prepare , (void *)((long) (((char *) (&((( authn_dbd_conf * )NULL)-> realm ))) - ((char *) NULL))) , 64 , TAKE1, "Query used to fetch password for user+realm" },
{NULL}
}
@ TAKE1
Definition http_config.h:51
static const char * authn_dbd_prepare(cmd_parms *cmd, void *cfg, const char *query)

Definition at line 84 of file mod_authn_dbd.c.

◆ authn_dbd_prepare_fn

void(* authn_dbd_prepare_fn) (server_rec *, const char *, const char *) ( server_rec ,
const char ,
const char  
) = NULL
static

Definition at line 39 of file mod_authn_dbd.c.