]> granicus.if.org Git - apache/commitdiff
Providers defined in <AuthnProviderAlias have not been usable under
authorEric Covener <covener@apache.org>
Fri, 3 Jan 2014 01:59:12 +0000 (01:59 +0000)
committerEric Covener <covener@apache.org>
Fri, 3 Jan 2014 01:59:12 +0000 (01:59 +0000)
in virtual hosts since migrating from mod_authn_alias to mod_authn_core.
PR 55622.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1554995 13f79535-47bb-0310-9956-ffa450edef68

modules/aaa/mod_authn_core.c

index 29d1988fb6df64f1bec8d75f61ab5cd4d9dff5df..1f1163ec086280e63c03f22e9c032edcd26f6251 100644 (file)
@@ -179,6 +179,12 @@ static void *create_authn_alias_svr_config(apr_pool_t *p, server_rec *s)
     return (void *) authcfg;
 }
 
+/* Only per-server directive we have is GLOBAL_ONLY */
+static void *merge_authn_alias_svr_config(apr_pool_t *p, void *basev, void *overridesv)
+{
+    return basev;
+}
+
 static const authn_provider authn_alias_provider =
 {
     &authn_alias_check_password,
@@ -373,7 +379,7 @@ AP_DECLARE_MODULE(authn_core) =
     create_authn_core_dir_config,   /* dir config creater */
     merge_authn_core_dir_config,    /* dir merger --- default is to override */
     create_authn_alias_svr_config,  /* server config */
-    NULL,                           /* merge server config */
+    merge_authn_alias_svr_config,   /* merge server config */
     authn_cmds,
     register_hooks                  /* register hooks */
 };