mod_authn_dbm.c revision 2a0856243f54fbda1e6dda8c047d322a90e59b73
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd/* Licensed to the Apache Software Foundation (ASF) under one or more
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd * contributor license agreements. See the NOTICE file distributed with
dc0d8d65d35787d30a275895ccad8d8e1b58a5ednd * this work for additional information regarding copyright ownership.
#define APR_WANT_STRFUNC
#include "apr_want.h"
#include "apr_strings.h"
#include "apr_dbm.h"
#include "ap_provider.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_protocol.h"
#include "mod_auth.h"
const char *pwfile;
const char *dbmtype;
return conf;
void *dir_config,
const char *arg)
return NULL;
NULL,
{NULL}
apr_dbm_t *f;
return rv;
#ifndef NETSCAPE_DBM_COMPAT
apr_dbm_close(f);
return rv;
const char *password)
char *dbm_password;
char *colon_pw;
r->pool);
return AUTH_GENERAL_ERROR;
if (!dbm_password) {
return AUTH_USER_NOT_FOUND;
if (colon_pw) {
return AUTH_DENIED;
return AUTH_GRANTED;
char *dbm_hash;
char *colon_hash;
return AUTH_GENERAL_ERROR;
if (!dbm_hash) {
return AUTH_USER_NOT_FOUND;
if (colon_hash) {
return AUTH_USER_FOUND;