mod_authn_dbd.c revision 14e0c468a75ddee46ced5c55ea2287642d907ca2
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin/* Licensed to the Apache Software Foundation (ASF) under one or more
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * contributor license agreements. See the NOTICE file distributed with
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * this work for additional information regarding copyright ownership.
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * The ASF licenses this file to You under the Apache License, Version 2.0
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * (the "License"); you may not use this file except in compliance with
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * the License. You may obtain a copy of the License at
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * Unless required by applicable law or agreed to in writing, software
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * distributed under the License is distributed on an "AS IS" BASIS,
109b93ded5941c5c5fdbc05a2a16286ed4f7e5c8minfrin * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#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"
const char *user;
const char *realm;
const char *label;
const char *query;
return ret;
return ret;
static unsigned int label_num = 0;
char *label;
if (err)
return err;
{NULL}
const char *password)
int ret;
return AUTH_GENERAL_ERROR;
return AUTH_GENERAL_ERROR;
return AUTH_GENERAL_ERROR;
return AUTH_GENERAL_ERROR;
if (rv != 0) {
return AUTH_GENERAL_ERROR;
const char *name;
name,
NULL);
while (str[j]) {
if (!dbd_password) {
return AUTH_USER_NOT_FOUND;
return AUTH_DENIED;
return AUTH_GRANTED;
int ret;
return AUTH_GENERAL_ERROR;
return AUTH_GENERAL_ERROR;
return AUTH_GENERAL_ERROR;
return AUTH_GENERAL_ERROR;
if (rv != 0) {
return AUTH_GENERAL_ERROR;
const char *name;
name,
NULL);
while (str[j]) {
if (!dbd_hash) {
return AUTH_USER_NOT_FOUND;
return AUTH_USER_FOUND;
static void opt_retr(void)
NULL,
NULL,