36#define AUTHN_CACHE_STORE(r,user,realm,data) \
37 if (authn_cache_store != NULL) \
38 authn_cache_store((r), "file", (user), (realm), (data))
52 OR_AUTHCFG,
"text file containing user IDs and passwords"),
56module AP_MODULE_DECLARE_DATA authn_file_module;
70 "AuthUserFile not specified in the configuration");
78 "Could not open password file: %s", conf->
pwfile);
86 if ((l[0] ==
'#') || (!l[0])) {
114 const char *realm,
char **
rethash)
125 "AuthUserFile not specified in the configuration");
133 "Could not open password file: %s", conf->
pwfile);
138 const char *
rpw, *w, *x;
141 if ((l[0] ==
'#') || (!l[0])) {
Symbol export macros and hook functions.
apr_size_t const unsigned char unsigned int unsigned int d
#define AP_INIT_TAKE1(directive, func, mconfig, where, help)
#define ap_get_module_config(v, m)
int ap_cfg_closefile(ap_configfile_t *cfp)
apr_status_t ap_pcfg_openfile(ap_configfile_t **ret_cfg, apr_pool_t *p, const char *name)
#define AP_DECLARE_MODULE(foo)
void ap_hook_optional_fn_retrieve(ap_HOOK_optional_fn_retrieve_t *pf, const char *const *aszPre, const char *const *aszSucc, int nOrder)
const char * ap_set_file_slot(cmd_parms *cmd, void *struct_ptr, const char *arg)
apr_status_t ap_cfg_getline(char *buf, apr_size_t bufsize, ap_configfile_t *cfp)
apr_status_t ap_register_auth_provider(apr_pool_t *pool, const char *provider_group, const char *provider_name, const char *provider_version, const void *provider, int type)
#define AP_AUTH_INTERNAL_PER_CONF
#define APR_RETRIEVE_OPTIONAL_FN(name)
#define APR_OPTIONAL_FN_TYPE(name)
#define STANDARD20_MODULE_STUFF
char * ap_getword(apr_pool_t *p, const char **line, char stop)
const char const char * password
Authentication and Authorization Extension for Apache.
#define AUTHN_PROVIDER_VERSION
#define AUTHN_PROVIDER_GROUP
static const command_rec authn_file_cmds[]
static authn_status get_realm_hash(request_rec *r, const char *user, const char *realm, char **rethash)
static const authn_provider authn_file_provider
static authn_status check_password(request_rec *r, const char *user, const char *password)
static void opt_retr(void)
static void register_hooks(apr_pool_t *p)
#define AUTHN_CACHE_STORE(r, user, realm, data)
static apr_OFN_ap_authn_cache_store_t * authn_cache_store
static void * create_authn_file_dir_config(apr_pool_t *p, char *d)
static void ap_authn_cache_store(request_rec *r, const char *module, const char *user, const char *realm, const char *data)
A structure that represents the current request.
struct ap_conf_vector_t * per_dir_config