Menu

#2 mod_auth_shadow doesn't work with Apache 2.0.48

open
nobody
None
5
2003-11-18
2003-11-18
Anonymous
No

Apache's authentication handling has changed in version
2.0.48. Here's the patch to make mod_auth_shadow
compatible with new Apache:
=======================
65c65
< {
---
> {
107c107
<
ap_hook_check_user_id(auth_shadow_handler,NULL,aszpost,APR_HOOK_FIRST/*APR_HOOK_MIDDLE*/);
---
>
ap_hook_check_user_id(auth_shadow_handler,NULL,aszpost,APR_HOOK_MIDDLE);
109c109
< ap_hook_auth_checker(auth_shadow_valid_user, NULL,
aszpost, APR_HOOK_FIRST/*APR_HOOK_MIDDLE*/);
---
> ap_hook_auth_checker(auth_shadow_valid_user, NULL,
aszpost, APR_HOOK_MIDDLE);
=======================

--------
alexy@izh.com

Discussion

  • Bernard du Breuil

    Logged In: YES
    user_id=668968

    I am putting this change into version 2.2.

     
  • Bernard du Breuil

    Logged In: YES
    user_id=668968

    I did more research on this change and I don't see why it
    would be necessary. The module works with or without the
    change in Apache 2.0.55. Mod_auth is listed under aszpost
    so mod_auth_shadow already runs before that. Are there
    other modules that must run before or after mod_auth_shadow?

     
  • Jason Weathered

    Jason Weathered - 2007-03-31

    Logged In: YES
    user_id=514150
    Originator: NO

    This patch causes mod_auth_shadow to fail with "(9)Bad file descriptor: Could not open password file: (null)" with Apache 2.2.3-4 on Debian etch.

    Applying this patch in reverse to mod_auth_shadow-2.1 gives me a working configuration.

     

Log in to post a comment.