mod_authn_core.c revision d6e81217d873dc3b87fc4ffa5fbac2fad4191a15
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu/* Licensed to the Apache Software Foundation (ASF) under one or more
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * contributor license agreements. See the NOTICE file distributed with
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * this work for additional information regarding copyright ownership.
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * The ASF licenses this file to You under the Apache License, Version 2.0
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * (the "License"); you may not use this file except in compliance with
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * the License. You may obtain a copy of the License at
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * Unless required by applicable law or agreed to in writing, software
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * distributed under the License is distributed on an "AS IS" BASIS,
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * See the License for the specific language governing permissions and
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * limitations under the License.
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * Security options etc.
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu * Module derived from code originally written by Rob McCool
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu- Track down all of the references to r->ap_auth_type
a9cc955b0a33e631b9ce3404e4e25b62cd067a77Christian Maeder and change them to ap_auth_type()
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu- Remove ap_auth_type and ap_auth_name from the
a9cc955b0a33e631b9ce3404e4e25b62cd067a77Christian Maedertypedef struct {
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescumodule AP_MODULE_DECLARE_DATA authn_core_module;
a9cc955b0a33e631b9ce3404e4e25b62cd067a77Christian Maederstatic void *create_authn_core_dir_config(apr_pool_t *p, char *dummy)
a77aecc59cee605ea48e33b65a627e0aa0a245e0Mihai Codescu (authn_core_dir_conf *)apr_pcalloc(p, sizeof(authn_core_dir_conf));
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu return (void *)conf;
a9cc955b0a33e631b9ce3404e4e25b62cd067a77Christian Maederstatic void *merge_authn_core_dir_config(apr_pool_t *a, void *basev, void *newv)
2e0e43889f746e31eacf8eeccdeaa4032a65b07eMihai Codescu authn_core_dir_conf *base = (authn_core_dir_conf *)basev;
return (void*)conf;
const char *password)
if (provider_name) {
if (prvdraliasrec) {
return ret;
if (provider_name) {
if (prvdraliasrec) {
return ret;
return (void *) authcfg;
const char *args;
char *provider_alias;
char *provider_name;
const char *errmsg;
return err;
if (!args[0]) {
if (provider) {
NULL);
if (!errmsg) {
return errmsg;
const char *word1)
return NULL;
{NULL}