-diff -ur mod_fastcgi-2.4.2-o/mod_fastcgi.c mod_fastcgi-2.4.2/mod_fastcgi.c
---- mod_fastcgi-2.4.2-o/mod_fastcgi.c 2005-12-25 02:45:12.000000000 -0700
-+++ mod_fastcgi-2.4.2/mod_fastcgi.c 2005-12-25 12:14:31.000000000 -0700
-@@ -2657,10 +2657,15 @@
+diff -Nur mod_fastcgi-2.4.6.orig/mod_fastcgi.c mod_fastcgi-2.4.6.apache22/mod_fastcgi.c
+--- mod_fastcgi-2.4.6.orig/mod_fastcgi.c 2007-12-28 21:00:46.000000000 -0700
++++ mod_fastcgi-2.4.6.apache22/mod_fastcgi.c 2007-12-28 21:00:58.000000000 -0700
+@@ -82,6 +82,10 @@
+
+ #include "unixd.h"
+
++#ifdef APACHE22
++#include "mod_auth.h"
++#endif
++
+ #endif
+ #endif
+
+@@ -2697,10 +2701,15 @@
fcgi_request *fr;
const fcgi_dir_config * const dir_config =
(const fcgi_dir_config *)ap_get_module_config(r->per_dir_config, &fastcgi_module);
fcgi_request *fr;
const fcgi_dir_config * const dir_config =
(const fcgi_dir_config *)ap_get_module_config(r->per_dir_config, &fastcgi_module);
+ /* @@@ Probably should support custom_responses */
+ ap_note_basic_auth_failure(r);
+ ap_log_rerror(FCGI_LOG_ERR_NOERRNO, r,
+ /* @@@ Probably should support custom_responses */
+ ap_note_basic_auth_failure(r);
+ ap_log_rerror(FCGI_LOG_ERR_NOERRNO, r,
static void register_hooks(apr_pool_t * p)
{
/* ap_hook_pre_config(x_pre_config, NULL, NULL, APR_HOOK_MIDDLE); */
static void register_hooks(apr_pool_t * p)
{
/* ap_hook_pre_config(x_pre_config, NULL, NULL, APR_HOOK_MIDDLE); */
+ ap_hook_post_config(init_module, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_child_init(fcgi_child_init, NULL, NULL, APR_HOOK_MIDDLE);
+ ap_hook_handler(content_handler, NULL, NULL, APR_HOOK_MIDDLE);
+- ap_hook_check_user_id(check_user_authentication, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_access_checker(check_access, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_auth_checker(check_user_authorization, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_fixups(fixups, NULL, NULL, APR_HOOK_MIDDLE);
+#ifdef APACHE22
+ ap_register_provider(p, AUTHN_PROVIDER_GROUP, "fastcgi", "0",
+ &authn_fastcgi_provider);
ap_hook_access_checker(check_access, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_auth_checker(check_user_authorization, NULL, NULL, APR_HOOK_MIDDLE);
ap_hook_fixups(fixups, NULL, NULL, APR_HOOK_MIDDLE);
+#ifdef APACHE22
+ ap_register_provider(p, AUTHN_PROVIDER_GROUP, "fastcgi", "0",
+ &authn_fastcgi_provider);