]> git.pld-linux.org Git - packages/apache-mod_fastcgi.git/commitdiff
- authenticators work
authoraredridel <aredridel@pld-linux.org>
Mon, 26 Dec 2005 10:01:15 +0000 (10:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- authorizers and access checkers still need to be ported

Changed files:
    apache-mod_fastcgi-apache22.patch -> 1.2

apache-mod_fastcgi-apache22.patch

index 925ea7c5422aac95bf10d53ab5a55a01b81aebe1..605aa847de2ee66d191198051e75ba3c7e2e0287 100644 (file)
@@ -1,7 +1,18 @@
 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 @@
++++ mod_fastcgi-2.4.2/mod_fastcgi.c    2005-12-26 02:58:58.000000000 -0700
+@@ -82,6 +82,10 @@
+ #include "unixd.h"
++#ifdef APACHE22
++#include "mod_auth.h"
++#endif
++
+ #endif
+ #endif
+@@ -2657,10 +2661,15 @@
      r->status_line = NULL;
  }
  
@@ -18,7 +29,7 @@ diff -ur mod_fastcgi-2.4.2-o/mod_fastcgi.c mod_fastcgi-2.4.2/mod_fastcgi.c
      fcgi_request *fr;
      const fcgi_dir_config * const dir_config =
          (const fcgi_dir_config *)ap_get_module_config(r->per_dir_config, &fastcgi_module);
-@@ -2668,9 +2673,11 @@
+@@ -2668,9 +2677,11 @@
      if (dir_config->authenticator == NULL)
          return DECLINED;
  
@@ -31,18 +42,15 @@ diff -ur mod_fastcgi-2.4.2-o/mod_fastcgi.c mod_fastcgi-2.4.2/mod_fastcgi.c
  
      res = create_fcgi_request(r, dir_config->authenticator, &fr);
      if (res)
-@@ -2704,6 +2711,23 @@
+@@ -2704,6 +2715,20 @@
          goto AuthenticationFailed;
      }
  
 +#ifdef APACHE22
 +    if (authenticated)
-+        return OK;
++        return AUTH_GRANTED;
 +
 +AuthenticationFailed:
-+    if (!(dir_config->authenticator_options & FCGI_AUTHORITATIVE))
-+        return AUTH_DENIED; // FIXME -- should be decline?
-+
 +    /* @@@ Probably should support custom_responses */
 +    ap_note_basic_auth_failure(r);
 +    ap_log_rerror(FCGI_LOG_ERR_NOERRNO, r,
@@ -55,7 +63,7 @@ diff -ur mod_fastcgi-2.4.2-o/mod_fastcgi.c mod_fastcgi-2.4.2/mod_fastcgi.c
      if (authenticated)
          return OK;
  
-@@ -2722,6 +2746,7 @@
+@@ -2722,6 +2747,7 @@
  #endif
  
          return (res == OK) ? HTTP_UNAUTHORIZED : res;
@@ -63,14 +71,14 @@ diff -ur mod_fastcgi-2.4.2-o/mod_fastcgi.c mod_fastcgi-2.4.2/mod_fastcgi.c
  }
  
  static int check_user_authorization(request_rec *r)
-@@ -2913,6 +2938,15 @@
+@@ -2913,6 +2939,15 @@
  
  #ifdef APACHE2
  
 +#ifdef APACHE22
 +static const authn_provider authn_fastcgi_provider =
 +{
-+    &check_password,
++    &check_user_authentication,
 +              NULL,
 +};
 +#endif /* APACHE22 */
@@ -79,7 +87,7 @@ diff -ur mod_fastcgi-2.4.2-o/mod_fastcgi.c mod_fastcgi-2.4.2/mod_fastcgi.c
  static void register_hooks(apr_pool_t * p)
  {
      /* ap_hook_pre_config(x_pre_config, NULL, NULL, APR_HOOK_MIDDLE); */
-@@ -2923,6 +2957,11 @@
+@@ -2923,6 +2958,11 @@
      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); 
This page took 0.095278 seconds and 4 git commands to generate.